Skip to content

Commit 3a175bb

Browse files
dimodidimodi
authored andcommitted
polishing
1 parent 0b5425d commit 3a175bb

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

knowledge-base/lineargauge-align-gauges-with-different-min-max.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ To achieve consistent width of multiple LinearGauges, set larger `Width` to the
4141
>caption Align linear Gauges with different Min and Max values
4242
4343
````RAZOR
44+
<div class="example-container">
45+
4446
Width Correction Multiplier:
4547
<TelerikNumericTextBox @bind-Value="@WidthMultiplier"
4648
Min="@(0.1m)" Max="@(10m)"
@@ -134,23 +136,34 @@ Gauge Widths:
134136
</TelerikLinearGauge>
135137
</div>
136138
137-
<div style="position:absolute;top:125px;left:105px;width:390px;height:230px;border:solid red;border-width:0 1px;"></div>
139+
<div class="alignment-checker"></div>
140+
141+
</div>
138142
139143
<style>
140144
/* Use monospace font for easier and consistent width adjustments. */
141145
div.k-gauge text {
142146
font-family: monospace !important;
143147
}
144148
145-
body {
146-
padding: 0 !important;
149+
.example-container {
150+
position: relative;
147151
}
148152
.gauge-container {
149153
display: flex;
150154
justify-content: center;
151155
width: 600px;
152156
background: lime;
153157
}
158+
.alignment-checker {
159+
position: absolute;
160+
top: 125px;
161+
left: 105px;
162+
width: 390px;
163+
height: 230px;
164+
border: solid red;
165+
border-width: 0 1px;
166+
}
154167
div.k-gauge {
155168
background: yellow;
156169
}

0 commit comments

Comments
 (0)