I have an asp checkbox with a label, but the label is not aligned with the checkbox:
<div class="row checkbox">
<label for="phcontent_2$cbStayInTouch"><asp:Label id="LabelStayInTouch" runat="server"></asp:Label></label>
<asp:CheckBox runat="server" ID="cbStayInTouch"/>
</div>
I tried using inline-block to get the checkbox and label ("Send me emails") next to each other, but it didn't do anything.
I tried wrapping the checkbox in a div and putting inline-block on the div and elements inside, like so:
<div style="display: inline-block;">
<input id="phcontent_1_cbStayInTouch" type="checkbox" name="phcontent_1$cbStayInTouch" style="display: inline-block;">
<label for="phcontent_1_cbStayInTouch" style="display: inline-block;">Send me emails</label>
</div>
but they still aren't aligned:
Aucun commentaire:
Enregistrer un commentaire