diff --git a/docs/components.html b/docs/components.html index 719a8ad48b..fec662d47e 100644 --- a/docs/components.html +++ b/docs/components.html @@ -68,43 +68,17 @@
Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.
-An isolated (without dropdown toggle) dropdown menu example, designed to be used with the dropdown javascript plugin.
-An isolated (without dropdown toggle) dropdown menu example, designed to be used with the dropdown javascript plugin.
+<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"> <li><a tabindex="-1" href="#">Action</a></li> @@ -159,11 +133,11 @@-
Dropdowns require...
+Dropdowns require...
<ul class="nav nav-pills"> @@ -185,50 +159,50 @@ </ul>-
...
+...
-...
+...
-...
+...
-...
+...
-Two basic options, along with two more specific variations.
+Two basic options, along with two more specific variations.
-Wrap a series of buttons with .btn
in .btn-group
.
Wrap a series of buttons with .btn
in .btn-group
.
<div class="btn-group"> <button class="btn">1</button> @@ -237,26 +211,26 @@ </div>-
Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.
Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.
<div class="btn-toolbar"> <div class="btn-group"> @@ -265,16 +239,16 @@ </div>-
Make a set of buttons appear vertically stacked rather than horizontally.
-Make a set of buttons appear vertically stacked rather than horizontally.
+<div class="btn-group btn-group-vertical"> ... @@ -282,102 +256,102 @@-
Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.
+Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.
-Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.
Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.
Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.
Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.
<div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> @@ -390,134 +364,134 @@ </div>-
Button dropdowns work at any size. your button sizes to .btn-large
, .btn-small
, or .btn-mini
.
Button dropdowns work at any size. your button sizes to .btn-large
, .btn-small
, or .btn-mini
.
Button dropdowns require the Bootstrap dropdown plugin to function.
-In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.
+Button dropdowns require the Bootstrap dropdown plugin to function.
+In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.
-Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.
-Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.
+<div class="btn-group"> <button class="btn">Action</button> @@ -530,49 +504,49 @@ </div>-
Utilize the extra button classes .btn-mini
, .btn-small
, or .btn-large
for sizing.
Utilize the extra button classes .btn-mini
, .btn-small
, or .btn-large
for sizing.
<div class="btn-group"> <button class="btn btn-mini">Action</button> @@ -585,34 +559,34 @@ </div>-
Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu
. It will flip the direction of the .caret
and reposition the menu itself to move from the bottom up instead of top down.
Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu
. It will flip the direction of the .caret
and reposition the menu itself to move from the bottom up instead of top down.
<div class="btn-group dropup"> <button class="btn">Dropup</button> @@ -625,29 +599,29 @@ </div>-
All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav
class.
All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav
class.
Take a regular <ul>
of links and add .nav-tabs
:
Take a regular <ul>
of links and add .nav-tabs
:
<ul class="nav nav-tabs"> <li class="active"> @@ -658,15 +632,15 @@ </ul>-
Take that same HTML, but use .nav-pills
instead:
Take that same HTML, but use .nav-pills
instead:
<ul class="nav nav-pills"> <li class="active"> @@ -677,15 +651,15 @@ </ul>-
For any nav component (tabs, pills, or list), add .disabled
for gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.
For any nav component (tabs, pills, or list), add .disabled
for gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.
<ul class="nav nav-pills"> ... @@ -694,38 +668,38 @@ </ul>-
To align nav links, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.
To align nav links, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.
As tabs and pills are horizontal by default, just add a second class, .nav-stacked
, to make them appear vertically stacked.
As tabs and pills are horizontal by default, just add a second class, .nav-stacked
, to make them appear vertically stacked.
<ul class="nav nav-tabs nav-stacked"> ... </ul>-
<ul class="nav nav-pills nav-stacked"> ... @@ -733,29 +707,29 @@-
Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.
+Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.
-<ul class="nav nav-tabs"> <li class="dropdown"> @@ -772,23 +746,23 @@ </ul>-
<ul class="nav nav-pills"> <li class="dropdown"> @@ -806,29 +780,29 @@-
A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.
+A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.
-Take a list of links and add class="nav nav-list"
:
Take a list of links and add class="nav nav-list"
:
<ul class="nav nav-list"> <li class="nav-header">List header</li> @@ -837,50 +811,50 @@ ... </ul>-
- Note
- For nesting within a nav list, include class="nav nav-list"
on any nested <ul>
.
-
+ Note
+ For nesting within a nav list, include class="nav nav-list"
on any nested <ul>
.
+
Add a horizontal divider by creating an empty list item with the class .divider
, like so:
Add a horizontal divider by creating an empty list item with the class .divider
, like so:
<ul class="nav nav-list"> ... <li class="divider"></li> ... </ul> -+ -
Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.
+Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.
-To make tabs tabbable, create a .tab-pane
with unique ID for every tab and wrap them in .tab-content
.
I'm in Section 1.
-Howdy, I'm in Section 2.
-What up girl, this is Section 3.
-To make tabs tabbable, create a .tab-pane
with unique ID for every tab and wrap them in .tab-content
.
<div class="tabbable"> <!-- Only required for left/right tabs --> <ul class="nav nav-tabs"> @@ -898,36 +872,36 @@ </div>-
To make tabs fade in, add .fade
to each .tab-pane
.
To make tabs fade in, add .fade
to each .tab-pane
.
All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.
+All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.
-Flip the order of the HTML and add a class to put tabs on the bottom.
-I'm in Section A.
-Howdy, I'm in Section B.
-What up girl, this is Section C.
-Flip the order of the HTML and add a class to put tabs on the bottom.
+<div class="tabbable tabs-below"> <div class="tab-content"> @@ -939,28 +913,28 @@ </div>-
Swap the class to put tabs on the left.
-I'm in Section A.
-Howdy, I'm in Section B.
-What up girl, this is Section C.
-Swap the class to put tabs on the left.
+ -<div class="tabbable tabs-left"> <ul class="nav nav-tabs"> @@ -972,28 +946,28 @@ </div>-
Swap the class to put tabs on the right.
-I'm in Section A.
-Howdy, I'm in Section B.
-What up girl, this is Section C.
-Swap the class to put tabs on the right.
+ -<div class="tabbable tabs-right"> <ul class="nav nav-tabs"> @@ -1005,32 +979,32 @@ </div>- + - -
To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container
, which sets the width of your site and content.
To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container
, which sets the width of your site and content.
<div class="navbar"> <div class="navbar-inner"> @@ -1045,19 +1019,19 @@-
A simple link to show your brand or project name only requires an anchor tag.
+A simple link to show your brand or project name only requires an anchor tag.
<a class="brand" href="#">Project name</a>-
Nav items are simple to add via unordered lists.
+Nav items are simple to add via unordered lists.
<ul class="nav"> <li class="active"> @@ -1067,7 +1041,7 @@ <li><a href="#">Link</a></li> </ul>-
You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:
+You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:
<ul class="nav"> ... @@ -1076,27 +1050,27 @@ </ul>-
To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form
and either .pull-left
or .pull-right
to properly align it.
To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form
and either .pull-left
or .pull-right
to properly align it.
<form class="navbar-form pull-left"> <input type="text" class="span2"> </form>-
For a more customized search form, add .navbar-search
to the form
and .search-query
to the input for specialized styles in the navbar.
For a more customized search form, add .navbar-search
to the form
and .search-query
to the input for specialized styles in the navbar.
<form class="navbar-search pull-left"> <input type="text" class="search-query" placeholder="Search"> </form>-
Align nav links, search form, or text, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.
Align nav links, search form, or text, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.
Add dropdowns and dropups to the nav with a bit of markup and the dropdowns javascript plugin.
+Add dropdowns and dropups to the nav with a bit of markup and the dropdowns javascript plugin.
<ul class="nav"> <li class="dropdown"> @@ -1110,56 +1084,56 @@ </li> </ul>-
Visit the javascript dropdowns documentation for more markup and information on calling dropdowns.
+Visit the javascript dropdowns documentation for more markup and information on calling dropdowns.
-Wrap strings of text in an element with .navbar-text
, usually on a <p>
tag for proper leading and color.
Wrap strings of text in an element with .navbar-text
, usually on a <p>
tag for proper leading and color.
Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar
.
Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar
.
Add .navbar-fixed-top
and remember to account for the hidden area underneath it by adding at least 40px padding
to the <body>
. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.
Add .navbar-fixed-top
and remember to account for the hidden area underneath it by adding at least 40px padding
to the <body>
. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.
<div class="navbar navbar-fixed-top"> ... </div>-
Add .navbar-fixed-bottom
instead.
<div class="navbar navbar-fixed-bottom"> ... @@ -1167,61 +1141,61 @@-
To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.
To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.
<div class="navbar"> <div class="navbar-inner"> @@ -1246,94 +1220,94 @@ </div> </div>-
To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.
To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.
A single example shown as it might be displayed across multiple pages.
- +A single example shown as it might be displayed across multiple pages.
+<ul class="breadcrumb"> <li><a href="#">Home</a> <span class="divider">/</span></li> @@ -1342,32 +1316,32 @@ </ul>-
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.
- +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.
+<div class="pagination"> <ul> @@ -1382,26 +1356,26 @@-
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
<div class="pagination "> <ul> @@ -1412,39 +1386,39 @@ </div>-
Add one of two optional classes to change the alignment of pagination links: .pagination-centered
and .pagination-right
.
Add one of two optional classes to change the alignment of pagination links: .pagination-centered
and .pagination-right
.
<div class="pagination pagination-centered"> ... </div>- +
<div class="pagination pagination-right"> ... @@ -1452,20 +1426,20 @@-
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
+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.
- +By default, the pager centers links.
+<ul class="pager"> <li> @@ -1477,14 +1451,14 @@ </ul>-
Alternatively, you can align each link to the sides:
- +Alternatively, you can align each link to the sides:
+<ul class="pager"> <li class="previous"> @@ -1496,14 +1470,14 @@ </ul>-
Pager links also use the general .disabled
utility class from the pagination.
Pager links also use the general .disabled
utility class from the pagination.
<ul class="pager"> <li class="previous disabled"> @@ -1513,187 +1487,187 @@ </ul>-
Labels | -Markup | -
---|---|
- Default - | -
- <span class="label">Default</span>
- |
-
- Success - | -
- <span class="label label-success">Success</span>
- |
-
- Warning - | -
- <span class="label label-warning">Warning</span>
- |
-
- Important - | -
- <span class="label label-important">Important</span>
- |
-
- Info - | -
- <span class="label label-info">Info</span>
- |
-
- Inverse - | -
- <span class="label label-inverse">Inverse</span>
- |
-
Labels | +Markup | +
---|---|
+ Default + | +
+ <span class="label">Default</span>
+ |
+
+ Success + | +
+ <span class="label label-success">Success</span>
+ |
+
+ Warning + | +
+ <span class="label label-warning">Warning</span>
+ |
+
+ Important + | +
+ <span class="label label-important">Important</span>
+ |
+
+ Info + | +
+ <span class="label label-info">Info</span>
+ |
+
+ Inverse + | +
+ <span class="label label-inverse">Inverse</span>
+ |
+
Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.
+Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.
-Name | -Example | -Markup | -
---|---|---|
- Default - | -- 1 - | -
- <span class="badge">1</span>
- |
-
- Success - | -- 2 - | -
- <span class="badge badge-success">2</span>
- |
-
- Warning - | -- 4 - | -
- <span class="badge badge-warning">4</span>
- |
-
- Important - | -- 6 - | -
- <span class="badge badge-important">6</span>
- |
-
- Info - | -- 8 - | -
- <span class="badge badge-info">8</span>
- |
-
- Inverse - | -- 10 - | -
- <span class="badge badge-inverse">10</span>
- |
-
Name | +Example | +Markup | +
---|---|---|
+ Default + | ++ 1 + | +
+ <span class="badge">1</span>
+ |
+
+ Success + | ++ 2 + | +
+ <span class="badge badge-success">2</span>
+ |
+
+ Warning + | ++ 4 + | +
+ <span class="badge badge-warning">4</span>
+ |
+
+ Important + | ++ 6 + | +
+ <span class="badge badge-important">6</span>
+ |
+
+ Info + | ++ 8 + | +
+ <span class="badge badge-info">8</span>
+ |
+
+ Inverse + | ++ 10 + | +
+ <span class="badge badge-inverse">10</span>
+ |
+
A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.
-This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
- -A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.
+This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
+ +<div class="hero-unit"> <h1>Heading</h1> @@ -1706,105 +1680,105 @@ </div>-
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 most other components (with additional styles).
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 most other components (with additional styles).
<div class="page-header"> <h1>Example page header</h1> </div>-
By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.
- +By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.
+ -With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.
-With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.
+Thumbnails (previously .media-grid
up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.
Thumbnails (previously .media-grid
up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.
Thumbnail markup is simple—a ul
with any number of li
elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.
Thumbnail markup is simple—a ul
with any number of li
elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.
Lastly, the thumbnails component uses existing grid system classes—like .span2
or .span3
—for control of thumbnail dimensions.
Lastly, the thumbnails component uses existing grid system classes—like .span2
or .span3
—for control of thumbnail dimensions.
As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:
+As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:
<ul class="thumbnails"> <li class="span4"> @@ -1815,7 +1789,7 @@ ... </ul>-
For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a>
for a <div>
like so:
For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a>
for a <div>
like so:
<ul class="thumbnails"> <li class="span4"> @@ -1829,65 +1803,65 @@ </ul>-
Explore all your options with the various grid classes available to you. You can also mix and match different sizes.
- +Explore all your options with the various grid classes available to you. You can also mix and match different sizes.
+ -Wrap any text and an optional dismiss button in .alert
for a basic warning alert message.
Wrap any text and an optional dismiss button in .alert
for a basic warning alert message.
<div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> @@ -1895,32 +1869,32 @@ </div>-
Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert"
attribute, require an href="#"
for the dismissal of alerts when using an <a>
tag.
Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert"
attribute, require an href="#"
for the dismissal of alerts when using an <a>
tag.
<a href="#" class="close" data-dismiss="alert">×</button>-
Alternatively, you may use a <button>
element with the data attribute, which we have opted to do for our docs. When using <button>
, you must include type="button"
or your forms may not submit.
Alternatively, you may use a <button>
element with the data attribute, which we have opted to do for our docs. When using <button>
, you must include type="button"
or your forms may not submit.
<button type="button" class="close" data-dismiss="alert">×</button>-
Use the alerts jQuery plugin for quick and easy dismissal of alerts.
+Use the alerts jQuery plugin for quick and easy dismissal of alerts.
-For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block
.
Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
-For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block
.
Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
+<div class="alert alert-block"> <a class="close" data-dismiss="alert" href="#">×</a> @@ -1930,97 +1904,97 @@-
Add optional classes to change an alert's connotation.
+Add optional classes to change an alert's connotation.
-<div class="alert alert-error"> ... </div>-
<div class="alert alert-success"> ... </div>-
<div class="alert alert-info"> ... </div>-
Default progress bar with a vertical gradient.
-Default progress bar with a vertical gradient.
+<div class="progress"> <div class="bar" style="width: 60%;"></div> </div>-
Uses a gradient to create a striped effect. Not available in IE7-8.
-Uses a gradient to create a striped effect. Not available in IE7-8.
+<div class="progress progress-striped"> <div class="bar" style="width: 20%;"></div> </div>-
Add .active
to .progress-striped
to animate the stripes right to left. Not available in all versions of IE.
Add .active
to .progress-striped
to animate the stripes right to left. Not available in all versions of IE.
<div class="progress progress-striped active"> <div class="bar" style="width: 40%;"></div> @@ -2028,27 +2002,27 @@-
Progress bars use some of the same button and alert classes for consistent styles.
-Progress bars use some of the same button and alert classes for consistent styles.
+<div class="progress progress-info"> <div class="bar" style="width: 20%"></div> @@ -2064,22 +2038,22 @@ </div>-
Similar to the solid colors, we have varied striped progress bars.
-Similar to the solid colors, we have varied striped progress bars.
+<div class="progress progress-info progress-striped"> <div class="bar" style="width: 20%"></div> @@ -2096,74 +2070,74 @@-
Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.
-Opera and IE do not support animations at this time.
+Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.
+Opera and IE do not support animations at this time.
-Use the well as a simple effect on an element to give it an inset effect.
-Use the well as a simple effect on an element to give it an inset effect.
+<div class="well"> ... </div>-
Control padding and rounded corners with two optional modifier classes.
-Control padding and rounded corners with two optional modifier classes.
+<div class="well well-large"> ... </div>-
<div class="well well-small"> ... </div>-
Use the generic close icon for dismissing content like modals and alerts.
-Use the generic close icon for dismissing content like modals and alerts.
+<button class="close">×</button>
iOS devices require an href="#" for click events if you rather use an anchor.
<a class="close" href="#">×</a>-
Simple, focused classes for small display or behavior tweaks.
+Simple, focused classes for small display or behavior tweaks.
-Float an element left
+Float an element left
class="pull-left"@@ -2173,8 +2147,8 @@ class="pull-left" } -
Float an element right
+Float an element right
class="pull-right"@@ -2184,8 +2158,8 @@ class="pull-right" } -
Change an element's color to #999
Change an element's color to #999
class="muted"@@ -2195,8 +2169,8 @@ class="muted" } -
Clear the float
on any element
Clear the float
on any element
class="clearfix"@@ -2214,7 +2188,9 @@ class="clearfix" } -
{{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}
-{{_i}}An isolated (without dropdown toggle) dropdown menu example, designed to be used with the dropdown javascript plugin.{{/i}}
-{{_i}}An isolated (without dropdown toggle) dropdown menu example, designed to be used with the dropdown javascript plugin.{{/i}}
+<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"> <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li> @@ -89,11 +63,11 @@-
{{_i}}Dropdowns require...{{/i}}
+{{_i}}Dropdowns require...{{/i}}
<ul class="nav nav-pills"> @@ -115,50 +89,50 @@ </ul>-
{{_i}}...{{/i}}
+{{_i}}...{{/i}}
-{{_i}}...{{/i}}
+{{_i}}...{{/i}}
-{{_i}}...{{/i}}
+{{_i}}...{{/i}}
-{{_i}}...{{/i}}
+{{_i}}...{{/i}}
-{{_i}}Two basic options, along with two more specific variations.{{/i}}
+{{_i}}Two basic options, along with two more specific variations.{{/i}}
-{{_i}}Wrap a series of buttons with .btn
in .btn-group
.{{/i}}
{{_i}}Wrap a series of buttons with .btn
in .btn-group
.{{/i}}
<div class="btn-group"> <button class="btn">1</button> @@ -167,26 +141,26 @@ </div>-
{{_i}}Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.{{/i}}
{{_i}}Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.{{/i}}
<div class="btn-toolbar"> <div class="btn-group"> @@ -195,16 +169,16 @@ </div>-
{{_i}}Make a set of buttons appear vertically stacked rather than horizontally.{{/i}}
-{{_i}}Make a set of buttons appear vertically stacked rather than horizontally.{{/i}}
+<div class="btn-group btn-group-vertical"> ... @@ -212,102 +186,102 @@-
{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.{{/i}}
+{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.{{/i}}
-{{_i}}Heads up!{{/i}} {{_i}}Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.{{/i}}
{{_i}}Heads up!{{/i}} {{_i}}Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.{{/i}}
{{_i}}Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.{{/i}}
{{_i}}Use any button to trigger a dropdown menu by placing it within a .btn-group
and providing the proper menu markup.{{/i}}
<div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> @@ -320,134 +294,134 @@ </div>-
{{_i}}Button dropdowns work at any size. your button sizes to .btn-large
, .btn-small
, or .btn-mini
.{{/i}}
{{_i}}Button dropdowns work at any size. your button sizes to .btn-large
, .btn-small
, or .btn-mini
.{{/i}}
{{_i}}Button dropdowns require the Bootstrap dropdown plugin to function.{{/i}}
-{{_i}}In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}
+{{_i}}Button dropdowns require the Bootstrap dropdown plugin to function.{{/i}}
+{{_i}}In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}
-{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}
-{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}
+<div class="btn-group"> <button class="btn">{{_i}}Action{{/i}}</button> @@ -460,49 +434,49 @@ </div>-
{{_i}}Utilize the extra button classes .btn-mini
, .btn-small
, or .btn-large
for sizing.{{/i}}
{{_i}}Utilize the extra button classes .btn-mini
, .btn-small
, or .btn-large
for sizing.{{/i}}
<div class="btn-group"> <button class="btn btn-mini">{{_i}}Action{{/i}}</button> @@ -515,34 +489,34 @@ </div>-
{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu
. It will flip the direction of the .caret
and reposition the menu itself to move from the bottom up instead of top down.{{/i}}
{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of .dropdown-menu
. It will flip the direction of the .caret
and reposition the menu itself to move from the bottom up instead of top down.{{/i}}
<div class="btn-group dropup"> <button class="btn">{{_i}}Dropup{{/i}}</button> @@ -555,29 +529,29 @@ </div>-
{{_i}}All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav
class.{{/i}}
{{_i}}All nav components here—tabs, pills, and lists—share the same base markup and styles through the .nav
class.{{/i}}
{{_i}}Take a regular <ul>
of links and add .nav-tabs
:{{/i}}
{{_i}}Take a regular <ul>
of links and add .nav-tabs
:{{/i}}
<ul class="nav nav-tabs"> <li class="active"> @@ -588,15 +562,15 @@ </ul>-
{{_i}}Take that same HTML, but use .nav-pills
instead:{{/i}}
{{_i}}Take that same HTML, but use .nav-pills
instead:{{/i}}
<ul class="nav nav-pills"> <li class="active"> @@ -607,15 +581,15 @@ </ul>-
{{_i}}For any nav component (tabs, pills, or list), add .disabled
for gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.{{/i}}
{{_i}}For any nav component (tabs, pills, or list), add .disabled
for gray links and no hover effects. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.{{/i}}
<ul class="nav nav-pills"> ... @@ -624,38 +598,38 @@ </ul>-
{{_i}}To align nav links, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.{{/i}}
{{_i}}To align nav links, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.{{/i}}
{{_i}}As tabs and pills are horizontal by default, just add a second class, .nav-stacked
, to make them appear vertically stacked.{{/i}}
{{_i}}As tabs and pills are horizontal by default, just add a second class, .nav-stacked
, to make them appear vertically stacked.{{/i}}
<ul class="nav nav-tabs nav-stacked"> ... </ul>-
<ul class="nav nav-pills nav-stacked"> ... @@ -663,29 +637,29 @@-
{{_i}}Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.{{/i}}
+{{_i}}Add dropdown menus with a little extra HTML and the dropdowns javascript plugin.{{/i}}
-<ul class="nav nav-tabs"> <li class="dropdown"> @@ -702,23 +676,23 @@ </ul>-
<ul class="nav nav-pills"> <li class="dropdown"> @@ -736,29 +710,29 @@-
{{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}
+{{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}
-{{_i}}Take a list of links and add class="nav nav-list"
:{{/i}}
{{_i}}Take a list of links and add class="nav nav-list"
:{{/i}}
<ul class="nav nav-list"> <li class="nav-header">{{_i}}List header{{/i}}</li> @@ -767,50 +741,50 @@ ... </ul>-
- {{_i}}Note{{/i}}
- {{_i}}For nesting within a nav list, include class="nav nav-list"
on any nested <ul>
.{{/i}}
-
+ {{_i}}Note{{/i}}
+ {{_i}}For nesting within a nav list, include class="nav nav-list"
on any nested <ul>
.{{/i}}
+
{{_i}}Add a horizontal divider by creating an empty list item with the class .divider
, like so:{{/i}}
{{_i}}Add a horizontal divider by creating an empty list item with the class .divider
, like so:{{/i}}
<ul class="nav nav-list"> ... <li class="divider"></li> ... </ul> -+ -
{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}
+{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}
-{{_i}}To make tabs tabbable, create a .tab-pane
with unique ID for every tab and wrap them in .tab-content
.{{/i}}
{{_i}}I'm in Section 1.{{/i}}
-{{_i}}Howdy, I'm in Section 2.{{/i}}
-{{_i}}What up girl, this is Section 3.{{/i}}
-{{_i}}To make tabs tabbable, create a .tab-pane
with unique ID for every tab and wrap them in .tab-content
.{{/i}}
{{_i}}I'm in Section 1.{{/i}}
+{{_i}}Howdy, I'm in Section 2.{{/i}}
+{{_i}}What up girl, this is Section 3.{{/i}}
+<div class="tabbable"> <!-- Only required for left/right tabs --> <ul class="nav nav-tabs"> @@ -828,36 +802,36 @@ </div>-
{{_i}}To make tabs fade in, add .fade
to each .tab-pane
.{{/i}}
{{_i}}To make tabs fade in, add .fade
to each .tab-pane
.{{/i}}
{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}
+{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}
-{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}
-{{_i}}I'm in Section A.{{/i}}
-{{_i}}Howdy, I'm in Section B.{{/i}}
-{{_i}}What up girl, this is Section C.{{/i}}
-{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}
+{{_i}}I'm in Section A.{{/i}}
+{{_i}}Howdy, I'm in Section B.{{/i}}
+{{_i}}What up girl, this is Section C.{{/i}}
+<div class="tabbable tabs-below"> <div class="tab-content"> @@ -869,28 +843,28 @@ </div>-
{{_i}}Swap the class to put tabs on the left.{{/i}}
-{{_i}}I'm in Section A.{{/i}}
-{{_i}}Howdy, I'm in Section B.{{/i}}
-{{_i}}What up girl, this is Section C.{{/i}}
-{{_i}}Swap the class to put tabs on the left.{{/i}}
+{{_i}}I'm in Section A.{{/i}}
+{{_i}}Howdy, I'm in Section B.{{/i}}
+{{_i}}What up girl, this is Section C.{{/i}}
+<div class="tabbable tabs-left"> <ul class="nav nav-tabs"> @@ -902,28 +876,28 @@ </div>-
{{_i}}Swap the class to put tabs on the right.{{/i}}
-{{_i}}I'm in Section A.{{/i}}
-{{_i}}Howdy, I'm in Section B.{{/i}}
-{{_i}}What up girl, this is Section C.{{/i}}
-{{_i}}Swap the class to put tabs on the right.{{/i}}
+{{_i}}I'm in Section A.{{/i}}
+{{_i}}Howdy, I'm in Section B.{{/i}}
+{{_i}}What up girl, this is Section C.{{/i}}
+<div class="tabbable tabs-right"> <ul class="nav nav-tabs"> @@ -935,32 +909,32 @@ </div>-
{{_i}}To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container
, which sets the width of your site and content.{{/i}}
{{_i}}To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a .container
, which sets the width of your site and content.{{/i}}
<div class="navbar"> <div class="navbar-inner"> @@ -975,19 +949,19 @@-
{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}
+{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}
<a class="brand" href="#">{{_i}}Project name{{/i}}</a>-
{{_i}}Nav items are simple to add via unordered lists.{{/i}}
+{{_i}}Nav items are simple to add via unordered lists.{{/i}}
<ul class="nav"> <li class="active"> @@ -997,7 +971,7 @@ <li><a href="#">{{_i}}Link{{/i}}</a></li> </ul>-
{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}
+{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}
<ul class="nav"> ... @@ -1006,27 +980,27 @@ </ul>-
{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form
and either .pull-left
or .pull-right
to properly align it.{{/i}}
{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include .navbar-form
and either .pull-left
or .pull-right
to properly align it.{{/i}}
<form class="navbar-form pull-left"> <input type="text" class="span2"> </form>-
{{_i}}For a more customized search form, add .navbar-search
to the form
and .search-query
to the input for specialized styles in the navbar.{{/i}}
{{_i}}For a more customized search form, add .navbar-search
to the form
and .search-query
to the input for specialized styles in the navbar.{{/i}}
<form class="navbar-search pull-left"> <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}"> </form>-
{{_i}}Align nav links, search form, or text, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.{{/i}}
{{_i}}Align nav links, search form, or text, use the .pull-left
or .pull-right
utility classes. Both classes will add a CSS float in the specified direction.{{/i}}
{{_i}}Add dropdowns and dropups to the nav with a bit of markup and the dropdowns javascript plugin.{{/i}}
+{{_i}}Add dropdowns and dropups to the nav with a bit of markup and the dropdowns javascript plugin.{{/i}}
<ul class="nav"> <li class="dropdown"> @@ -1040,56 +1014,56 @@ </li> </ul>-
{{_i}}Visit the javascript dropdowns documentation for more markup and information on calling dropdowns.{{/i}}
+{{_i}}Visit the javascript dropdowns documentation for more markup and information on calling dropdowns.{{/i}}
-{{_i}}Wrap strings of text in an element with .navbar-text
, usually on a <p>
tag for proper leading and color.{{/i}}
{{_i}}Wrap strings of text in an element with .navbar-text
, usually on a <p>
tag for proper leading and color.{{/i}}
{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar
.{{/i}}
{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, .navbar
.{{/i}}
{{_i}}Add .navbar-fixed-top
and remember to account for the hidden area underneath it by adding at least 40px padding
to the <body>
. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}
{{_i}}Add .navbar-fixed-top
and remember to account for the hidden area underneath it by adding at least 40px padding
to the <body>
. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}
<div class="navbar navbar-fixed-top"> ... </div>-
{{_i}}Add .navbar-fixed-bottom
instead.{{/i}}
{{_i}}Add .navbar-fixed-bottom
instead.{{/i}}
<div class="navbar navbar-fixed-bottom"> ... @@ -1097,61 +1071,61 @@-
{{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.{{/i}}
{{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.{{/i}}
<div class="navbar"> <div class="navbar-inner"> @@ -1176,94 +1150,94 @@ </div> </div>-
{{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.{{/i}}
{{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, .nav-collapse.collapse
, and add the navbar toggle button, .btn-navbar
.{{/i}}
{{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}
-{{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}
+<ul class="breadcrumb"> <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li> @@ -1272,32 +1246,32 @@ </ul>-
{{_i}}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.{{/i}}
- +{{_i}}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.{{/i}}
+<div class="pagination"> <ul> @@ -1312,26 +1286,26 @@-
{{_i}}Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.{{/i}}
{{_i}}Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.{{/i}}
<div class="pagination "> <ul> @@ -1342,39 +1316,39 @@ </div>-
{{_i}}Add one of two optional classes to change the alignment of pagination links: .pagination-centered
and .pagination-right
.{{/i}}
{{_i}}Add one of two optional classes to change the alignment of pagination links: .pagination-centered
and .pagination-right
.{{/i}}
<div class="pagination pagination-centered"> ... </div>- +
<div class="pagination pagination-right"> ... @@ -1382,20 +1356,20 @@-
{{_i}}Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.{{/i}}
+{{_i}}Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.{{/i}}
-{{_i}}By default, the pager centers links.{{/i}}
-{{_i}}By default, the pager centers links.{{/i}}
+<ul class="pager"> <li> @@ -1407,14 +1381,14 @@ </ul>-
{{_i}}Alternatively, you can align each link to the sides:{{/i}}
-{{_i}}Alternatively, you can align each link to the sides:{{/i}}
+<ul class="pager"> <li class="previous"> @@ -1426,14 +1400,14 @@ </ul>-
{{_i}}Pager links also use the general .disabled
utility class from the pagination.{{/i}}
{{_i}}Pager links also use the general .disabled
utility class from the pagination.{{/i}}
<ul class="pager"> <li class="previous disabled"> @@ -1443,187 +1417,187 @@ </ul>-
{{_i}}Labels{{/i}} | -{{_i}}Markup{{/i}} | -
---|---|
- {{_i}}Default{{/i}} - | -
- <span class="label">{{_i}}Default{{/i}}</span>
- |
-
- {{_i}}Success{{/i}} - | -
- <span class="label label-success">{{_i}}Success{{/i}}</span>
- |
-
- {{_i}}Warning{{/i}} - | -
- <span class="label label-warning">{{_i}}Warning{{/i}}</span>
- |
-
- {{_i}}Important{{/i}} - | -
- <span class="label label-important">{{_i}}Important{{/i}}</span>
- |
-
- {{_i}}Info{{/i}} - | -
- <span class="label label-info">{{_i}}Info{{/i}}</span>
- |
-
- {{_i}}Inverse{{/i}} - | -
- <span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
- |
-
{{_i}}Labels{{/i}} | +{{_i}}Markup{{/i}} | +
---|---|
+ {{_i}}Default{{/i}} + | +
+ <span class="label">{{_i}}Default{{/i}}</span>
+ |
+
+ {{_i}}Success{{/i}} + | +
+ <span class="label label-success">{{_i}}Success{{/i}}</span>
+ |
+
+ {{_i}}Warning{{/i}} + | +
+ <span class="label label-warning">{{_i}}Warning{{/i}}</span>
+ |
+
+ {{_i}}Important{{/i}} + | +
+ <span class="label label-important">{{_i}}Important{{/i}}</span>
+ |
+
+ {{_i}}Info{{/i}} + | +
+ <span class="label label-info">{{_i}}Info{{/i}}</span>
+ |
+
+ {{_i}}Inverse{{/i}} + | +
+ <span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
+ |
+
{{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}
+{{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}
-{{_i}}Name{{/i}} | -{{_i}}Example{{/i}} | -{{_i}}Markup{{/i}} | -
---|---|---|
- {{_i}}Default{{/i}} - | -- 1 - | -
- <span class="badge">1</span>
- |
-
- {{_i}}Success{{/i}} - | -- 2 - | -
- <span class="badge badge-success">2</span>
- |
-
- {{_i}}Warning{{/i}} - | -- 4 - | -
- <span class="badge badge-warning">4</span>
- |
-
- {{_i}}Important{{/i}} - | -- 6 - | -
- <span class="badge badge-important">6</span>
- |
-
- {{_i}}Info{{/i}} - | -- 8 - | -
- <span class="badge badge-info">8</span>
- |
-
- {{_i}}Inverse{{/i}} - | -- 10 - | -
- <span class="badge badge-inverse">10</span>
- |
-
{{_i}}Name{{/i}} | +{{_i}}Example{{/i}} | +{{_i}}Markup{{/i}} | +
---|---|---|
+ {{_i}}Default{{/i}} + | ++ 1 + | +
+ <span class="badge">1</span>
+ |
+
+ {{_i}}Success{{/i}} + | ++ 2 + | +
+ <span class="badge badge-success">2</span>
+ |
+
+ {{_i}}Warning{{/i}} + | ++ 4 + | +
+ <span class="badge badge-warning">4</span>
+ |
+
+ {{_i}}Important{{/i}} + | ++ 6 + | +
+ <span class="badge badge-important">6</span>
+ |
+
+ {{_i}}Info{{/i}} + | ++ 8 + | +
+ <span class="badge badge-info">8</span>
+ |
+
+ {{_i}}Inverse{{/i}} + | ++ 10 + | +
+ <span class="badge badge-inverse">10</span>
+ |
+
{{_i}}A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}
-{{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}
- -{{_i}}A lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}
+{{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}
+ +<div class="hero-unit"> <h1>{{_i}}Heading{{/i}}</h1> @@ -1636,105 +1610,105 @@ </div>-
{{_i}}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 most other components (with additional styles).{{/i}}
{{_i}}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 most other components (with additional styles).{{/i}}
<div class="page-header"> <h1>{{_i}}Example page header{{/i}}</h1> </div>-
{{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}
- +{{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}
+ -{{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}
-{{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}
+{{_i}}Thumbnails (previously .media-grid
up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}
{{_i}}Thumbnails (previously .media-grid
up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}
{{_i}}Thumbnail markup is simple—a ul
with any number of li
elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}
{{_i}}Thumbnail markup is simple—a ul
with any number of li
elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}
{{_i}}Lastly, the thumbnails component uses existing grid system classes—like .span2
or .span3
—for control of thumbnail dimensions.{{/i}}
{{_i}}Lastly, the thumbnails component uses existing grid system classes—like .span2
or .span3
—for control of thumbnail dimensions.{{/i}}
{{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:{{/i}}
+{{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup for linked images:{{/i}}
<ul class="thumbnails"> <li class="span4"> @@ -1745,7 +1719,7 @@ ... </ul>-
{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a>
for a <div>
like so:{{/i}}
{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <a>
for a <div>
like so:{{/i}}
<ul class="thumbnails"> <li class="span4"> @@ -1759,65 +1733,65 @@ </ul>-
{{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}
- +{{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}
+ -{{_i}}Wrap any text and an optional dismiss button in .alert
for a basic warning alert message.{{/i}}
{{_i}}Wrap any text and an optional dismiss button in .alert
for a basic warning alert message.{{/i}}
<div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button> @@ -1825,32 +1799,32 @@ </div>-
{{_i}}Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert"
attribute, require an href="#"
for the dismissal of alerts when using an <a>
tag.{{/i}}
{{_i}}Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert"
attribute, require an href="#"
for the dismissal of alerts when using an <a>
tag.{{/i}}
<a href="#" class="close" data-dismiss="alert">×</button>-
{{_i}}Alternatively, you may use a <button>
element with the data attribute, which we have opted to do for our docs. When using <button>
, you must include type="button"
or your forms may not submit.{{/i}}
{{_i}}Alternatively, you may use a <button>
element with the data attribute, which we have opted to do for our docs. When using <button>
, you must include type="button"
or your forms may not submit.{{/i}}
<button type="button" class="close" data-dismiss="alert">×</button>-
{{_i}}Use the alerts jQuery plugin for quick and easy dismissal of alerts.{{/i}}
+{{_i}}Use the alerts jQuery plugin for quick and easy dismissal of alerts.{{/i}}
-{{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block
.{{/i}}
{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
-{{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding .alert-block
.{{/i}}
{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
+<div class="alert alert-block"> <a class="close" data-dismiss="alert" href="#">×</a> @@ -1860,97 +1834,97 @@-
{{_i}}Add optional classes to change an alert's connotation.{{/i}}
+{{_i}}Add optional classes to change an alert's connotation.{{/i}}
-<div class="alert alert-error"> ... </div>-
<div class="alert alert-success"> ... </div>-
<div class="alert alert-info"> ... </div>-
{{_i}}Default progress bar with a vertical gradient.{{/i}}
-{{_i}}Default progress bar with a vertical gradient.{{/i}}
+<div class="progress"> <div class="bar" style="width: 60%;"></div> </div>-
{{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}
-{{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}
+<div class="progress progress-striped"> <div class="bar" style="width: 20%;"></div> </div>-
{{_i}}Add .active
to .progress-striped
to animate the stripes right to left. Not available in all versions of IE.{{/i}}
{{_i}}Add .active
to .progress-striped
to animate the stripes right to left. Not available in all versions of IE.{{/i}}
<div class="progress progress-striped active"> <div class="bar" style="width: 40%;"></div> @@ -1958,27 +1932,27 @@-
{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}
-{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}
+<div class="progress progress-info"> <div class="bar" style="width: 20%"></div> @@ -1994,22 +1968,22 @@ </div>-
{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}
-{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}
+<div class="progress progress-info progress-striped"> <div class="bar" style="width: 20%"></div> @@ -2026,74 +2000,74 @@-
{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}
-{{_i}}Opera and IE do not support animations at this time.{{/i}}
+{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}
+{{_i}}Opera and IE do not support animations at this time.{{/i}}
-{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}
-{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}
+<div class="well"> ... </div>-
{{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}
-{{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}
+<div class="well well-large"> ... </div>-
<div class="well well-small"> ... </div>-
{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}
-{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}
+<button class="close">×</button>
{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}
<a class="close" href="#">×</a>-
{{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}
+{{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}
-{{_i}}Float an element left{{/i}}
+{{_i}}Float an element left{{/i}}
class="pull-left"@@ -2103,8 +2077,8 @@ class="pull-left" } -
{{_i}}Float an element right{{/i}}
+{{_i}}Float an element right{{/i}}
class="pull-right"@@ -2114,8 +2088,8 @@ class="pull-right" } -
{{_i}}Change an element's color to #999
{{/i}}
{{_i}}Change an element's color to #999
{{/i}}
class="muted"@@ -2125,8 +2099,8 @@ class="muted" } -
{{_i}}Clear the float
on any element{{/i}}
{{_i}}Clear the float
on any element{{/i}}
class="clearfix"@@ -2144,7 +2118,9 @@ class="clearfix" } -