Form Patterns
Vertical form elements please see Bootstrap forms
Vertical form elements assume 100% width by default. The form elements may be placed inside containers with a specified col-sm-#
class to control the layout, or the col-sm-#
class may be applied to individual DIVs within the form-group
for greater control over the layout of the individual form elements.
Example
Horizontal form see Bootstrap horizontal form
Horisontal forms should have a wrapper class form-horizontal
Form layout is built using Bootstrap grid system:
<form class="form-horizontal">
<div class="form-group row">
<label for="input-id" class="col-sm-3 control-label required">Input label</label>
<div class="col-sm-6">
<input id="input-id" type="text" class="form-control" placeholder="" value="" />
</div>
</div>
</form>
Use Bootstrap col-sm-#
classes in order to align form fields and labels in 12-column grid.