This morning I changed from Bootstrap 3.0.0 to 3.2.0 because I need some new features for my web application. Everything seemed to work as expected until I noticed a problem with vertically aligning .form-horizontal in .form-horizontal form.
An example is available at http://www.bootply.com/AYN64feYze . The markup for this minimal example is:
<div class="form-horizontal"> <div class="form-group"> <label class="col-sm-2 control-label">With label text</label> <div class="col-sm-10"> <div class="checkbox"> <label> <input type="checkbox"> label text </label> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label">Without label text</label> <div class="col-sm-10"> <div class="checkbox"> <label> <input type="checkbox"> </label> </div> </div> </div> </div>
If the flag does not have the following text, it moves below the line in which it should appear.
Is there a solution to this problem? Since I already have a leading label, I do not need the following text for my checkboxes. My current workaround is to add text to the <label> that contains <input type="checkbox"> , and use the background color as the font color to hide the text.
Thank you for your help.
html css checkbox vertical-alignment twitter-bootstrap
Thylossus
source share