Form Elements page header description goes here...
INPUTS
Most common form control, text-based input fields. Includes support for all HTML5 types: text
, password
, datetime
, datetime-local
, date
, month
, time
, week
, number
, email
, url
, search
, tel
, and color
.
TEXTAREA
Form control which supports multiple lines of text. Change rows
attribute as necessary.
SELECT
Note that many native select menus—namely in Safari and Chrome—have rounded corners that cannot be modified via border-radius
properties.
CHECKBOXES
Checkboxes are for selecting one or several options in a list and we styled it with CSS and Glyphicon.
RADIOS
Radios use for selecting one option from many. You may add .disabled
class to the wrapper of the radios.
VALIDATION STATES
CONTROL SIZING
Set heights using classes like .input-lg
, and set widths using grid column classes like .col-lg-*
.
DEFAULT FORM
All textual <input>
, <textarea>
, and <select>
elements with .form-control
are set to width: 100%;
by default.
HORIZONTAL FORM
Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding .form-horizontal
to the form.
INLINE FORM
Add .form-inline
to your form (which doesn't have to be a <form>
) for left-aligned and inline-block controls. This only applies to forms within viewports that are at least 768px wide.