buzz
16 Apr 2007, 8:40 AM
I am unable to align a checkbox in the center of a label field. I have taken the example html from examples/form/form.html and changed the input type of one first text field from "text" to checkbox. I want the label on the left side of the checkbox and aligned with the other labels I have on the form. The layout code I am using is
<div class="x-form-item">
<label for="combo-local">Local Data:</label>
<div class="x-form-element">
<input type="checkbox" name="combo-local" id="combo-local" />
</div>
</div>
If you look at the attachment you will notice that the checkbox is slightly above the label.
<div class="x-form-item">
<label for="combo-local">Local Data:</label>
<div class="x-form-element">
<input type="checkbox" name="combo-local" id="combo-local" />
</div>
</div>
If you look at the attachment you will notice that the checkbox is slightly above the label.