Utilities
v3.xUtilities are a group of Bootstrap classes for efficiently adding style and functionality.
-
align-{baseline|bottom|middle}
align-text-{bottom|top}
Use
alignandalign-textto easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.Vertical-align only affects inline, inline-block, inline-table, and table cell elements.
-
bg-{primary|info|success|warning|danger}
Use
bgwith a selected color to change the background of the element. -
btn-{default|primary|info|success|warning|danger}
btn-{link}
btn-{xs|sm|lg}
btn-{block}
Use
btnmodifiers to change the background of the button, set its size, or set it to fill its parent container with 'block'.To force a button to resemble a plain link, use the
btn-linkclass. -
caret
Add the
caretclass to a span element to add a caret character to any other element. -
container-{fluid}
Add
containerto a wrapper element to add significant left and right gutters to the page. Addingfluidwill reduce the gutters significantly and fill more of the page with content. -
show
hidden
hidden-{xs|sm|md|lg|print}
Add
hiddento any element you want not to display. Analogous to "display: none."Visibleandshowshows the element.Add
hidden-printto make the element visible only in browsers, and hidden when printed. -
img-{responsive|rounded|thumbnail|circle}
Add display types to the
imgelement to change its border-radius property. -
lead
Lead text is larger. Typographically, it's somewhere between a paragraph and a heading.
-
list-{unstyled|inline}
Use
list-unstyledand remove bullet points. Uselist-inlineto convert a vertical list (default) to horizontal. -
pull-{left|right}
Add
pulland a direction to float an element left or right. -
sr-only
sr-only-focusable
Use the
sr-onlyto hide elements from all but screen readers. Use thesr-only-focusableto show an element only while it has focus. -
table-{bordered|condensed|hover|striped}
sr-only-focusable
Combine the
table-*classes to format your tables. -
text-{muted|primary|info|success|warning|danger}
text-{left|center|right|justify|nowrap}
text-{lowercase|uppercase|capitalize}
text-hide
Use
textwith a selected color to change the color of the text node.Use
textwith a selected alignment to change the alignment and/or wrapping property of the text node.Use
textwith a case assignment to change the case (capitalization) of the text node.Use
text-hideto replace text with an image. -
visible
visible-{xs|sm|md|lg|print}
visible-{xs|sm|md|lg|print}-{inline|inline-block|block}
Use
visibleand a size to make an element visible and/or at specific sizes and above.Add
inline,inline-block, orblockto also set the display attribute.