content
Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
Includes 200 glyphs in font format from the Glyphicon Halflings set. Glyphicons Halflings are normally not available for free, but their creator has made them available for Bootstrap free of cost. As a thank you, we only ask that you include a link back to Glyphicons whenever possible.
For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.
<span>
and apply the icon classes to the <span>
.|search| |star|
Separators are automatically added in CSS through :before
and content.
.. class:: breadcrumb * Home .. class:: breadcrumb * Home * Library .. class:: breadcrumb * Home * Library * Data
Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
.. class:: pagination * `« <#>`_ * `1 <#>`_ * `2 <#>`_ * `3 <#>`_ * `4 <#>`_ * `5 <#>`_ * `» <#>`_
Links are customizable for different circumstances. Use .disabled
for
unclickable links and .active
to indicate the current page.
.. class:: pagination * .. item-class:: disabled `« <#>`_ * .. item-class:: active `1 <#>`_ * `2 <#>`_ * `3 <#>`_ * `4 <#>`_ * `5 <#>`_ * `» <#>`_
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
By default, the pager centers links.
.. class:: pager * `Previous <#>`_ * `Next <#>`_
Alternatively, you can align each link to the sides:
.. class:: pager * .. item-class:: previous `← Older <#>`_ * .. item-class:: next `Newer → <#>`_
h1. Example heading :label-default:`New` ======================================== h2. Example heading :label-default:`New` ---------------------------------------- h3. Example heading :label-default:`New` ++++++++++++++++++++++++++++++++++++++++ h4. Example heading :label-default:`New` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ h5. Example heading :label-default:`New` **************************************** h6. Example heading :label-default:`New` ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨
:label-default:`Default` :label-primary:`Primary` :label-success:`Success` :label-info:`Info` :label-warning:`Warning` :label-danger:`Danger`
Self collapsing
When there are no new or unread items, badges will simply collapse (via CSS's
:empty
selector) provided no content exists within.
A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
.. jumbotron:: :h1:`Hello, world!` This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information. .. button:: Learn more :class: primary large
To make the jumbotron full width, and without rounded corners, place it outside all .containers and instead add a .container within.
.. jumbotron:: .. container:: ...
A simple shell for an h1
to appropriately space out and segment sections of
content on a page. It can utilize the h1
's default small
element, as well as
most other components (with additional styles).
.. page-header:: :h1:`Example page header <small>Subtext for header</small>`
By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.
.. column:: :width: 3 .. image:: 171x180.png :class: thumbnail .. column:: :width: 3 .. image:: 171x180.png :class: thumbnail .. column:: :width: 3 .. image:: 171x180.png :class: thumbnail .. column:: :width: 3 .. image:: 171x180.png :class: thumbnail
With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.
.. thumbnail:: .. image:: 300x200.png .. caption:: :h3:`Thumbnail label` Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit. .. button:: Button :class: primary .. button:: Button
Wrap any text and an optional dismiss button in .alert
and one of the four
contextual classes (e.g., .alert-success
) for basic alert messages.
.. alert:: **Well done!** You successfully read this important alert message. :type: success .. alert:: **Heads up!** This alert needs your attention, but it's not super important. :type: info .. alert:: **Warning!** Better check yourself, you're not looking too good. :type: warning .. alert:: **Oh snap!** Change a few things up and try submitting again. :type: danger
Build on any alert by adding an optional .alert-dismissable
and close button.
<button>
element with the data-dismiss="alert"
data
attribute.Default progress bar.
.. progress:: 60%
Remove the .sr-only
class from within the progress bar to show a visible
percentage. For low percentages, consider adding a min-width
to ensure the
label's text is fully visible.
.. progress:: 60% :label: 60%
Progress bars use some of the same button and alert classes for consistent styles.
.. progress:: 40% :class: success .. progress:: 20% :class: info .. progress:: 60% :class: warning .. progress:: 80% :class: danger
Uses a gradient to create a striped effect. Not available in IE8.
.. progress:: 40% :class: success striped .. progress:: 20% :class: info striped .. progress:: 60% :class: warning striped .. progress:: 80% :class: danger striped
Add .active
to .progress-striped
to animate the stripes right to left. Not
available in IE9 and below.
.. progress:: 45% :class: active
N/A
Use the well as a simple effect on an element to give it an inset effect.
Look, I'm in a well!
.. class:: well Look, I'm in a well!
Control padding and rounded corners with two optional modifier classes.
Look, I'm in a well!
.. class:: well well-lg Look, I'm in a well!
Look, I'm in a well!
.. class:: well well-sm Look, I'm in a well!