btn-m
to button or anchor to do default template style.
Add .form-inline
for left-aligned labels and inline-block controls for a compact layout.
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. Doing so changes .form-group
s to behave as grid rows, so no need for .row
.
Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.
Use .checkbox-inline
or .radio-inline
class to a series of checkboxes or radios for controls appear on the same line.
Use the default option, or add multiple
to show multiple options at once.
Extend form controls by adding text or buttons before, after, or on both sides of any text-based input. Use .input-group
with an .input-group-addon
to prepend or append elements to a .form-control
.
Place any checkbox or radio option within an input group's addon instead of text.
Buttons in input groups are a bit different and require one extra level of nesting. Instead of .input-group-addon
, you'll need to use .input-group-btn
to wrap the buttons. This is required due to default browser styles that cannot be overridden.
2013 © Boss. ALL Rights Reserved.