.form-group class is the easiest way to add some structure to forms. It provides a flexible class that encourages proper grouping of labels, controls, optional help text, and form validation messaging. By default it only applies
margin-bottom, but it picks up additional styles in
.form-inline as needed. Use it with
<div>s, or nearly any other element.
More complex forms can be built using our grid classes. Use these for form layouts that require multiple columns, varied widths, and additional alignment options.
You may also swap
.form-row, a variation of our standard grid row that overrides the default column gutters for tighter and more compact layouts.
More complex layouts can also be created with the grid system.
Create horizontal forms with the grid by utilizing the grid classes. Be sure to add
.col-form-label to your
<label>s as well so they’re vertically centered with their associated form controls.
Horizontal form label sizing
Be sure to use
.col-form-label-lg to your
<legend>s to correctly follow the size of