By utilizing the .form-inline
class on the surrounding form element, I have successfully resolved various vertical alignment issues in the past. However, it may not always be suitable for all scenarios.
Update:
In addition to the aforementioned solution, Bootstrap now offers specific classes that can be applied to a parent block to align checkboxes and radio buttons with adjacent text. As per their guidelines:
<label class="checkbox">
<input type="checkbox" value="">
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
Option one is this and that—be sure to include why it's great
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
This alignment feature is not limited to labels and should function well with any block-level element.
For more details, visit: (Checkboxes and radios section).