Forms

All form controls automatically receive some global styling. Form elements with .form-control are set to width: 100%; by default. Wrap labels and controls in .form-group for optimum spacing.

Example:

Example block-level help text here.

Source Code:


Example block-level help text here.

Sample contact form:

Source Code:


<textarea id="exampleInputComment" class="form-control" rows="10" cols="80"></textarea>

Form states and sizes:

Looks Good.
Please choose a username.

Source Code:


Looks Good.
Please choose a username.

Custom file input:

Source Code:



Custom radio buttons and checkboxes:

Source Code:

 

Custom select:

Source Code: