<!DOCTYPE html><htmllang=en><head><metacharset=utf-8><metacontent="IE=edge"http-equiv=X-UA-Compatible><metacontent="width=device-width,initial-scale=1"name=viewport><metacontent="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development."name=description><metacontent="Mark Otto, Jacob Thornton, and Bootstrap contributors"name=author><title> Components · Bootstrap </title><linkhref=../dist/css/bootstrap.min.cssrel=stylesheet><linkhref="data:text/css;charset=utf-8,"rel=stylesheetdata-href=../dist/css/bootstrap-theme.min.cssid=bs-theme-stylesheet><linkhref=../assets/css/docs.min.cssrel=stylesheet><!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--><scriptsrc=../assets/js/ie-emulation-modes-warning.js></script><!--[if lt IE 9]> <script src=https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js></script> <script src=https://oss.maxcdn.com/respond/1.4.2/respond.min.js></script> <![endif]--><linkhref=/apple-touch-icon.pngrel=apple-touch-icon><linkhref=/favicon.icorel=icon><script>!function(e,t,a,n,c,o,s){e.GoogleAnalyticsObject=c,e[c]=e[c]||function(){(e[c].q=e[c].q||[]).push(arguments)},e[c].l=1*newDate,o=t.createElement(a),s=t.getElementsByTagName(a)[0],o.async=1,o.src=n,s.parentNode.insertBefore(o,s)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-146052-10","getbootstrap.com"),ga("send","pageview")</script></head><body><ahref=#contentclass="sr-only sr-only-focusable"id=skippy><divclass=container><spanclass=skiplink-text>Skip to main content</span></div></a><ahref=http://blog.getbootstrap.com/2016/09/05/bootstrap-4-alpha-4/class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a><headerclass="bs-docs-nav navbar navbar-static-top"id=top><divclass=container><divclass=navbar-header><buttonaria-controls=bs-navbararia-expanded=falseclass="collapsed navbar-toggle"data-target=#bs-navbardata-toggle=collapsetype=button><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=../class=navbar-brand>Bootstrap</a></div><navclass="collapse navbar-collapse"id=bs-navbar><ulclass="nav navbar-nav"><li><ahref=../getting-started/>Getting started</a></li><li><ahref=../css/>CSS</a></li><liclass=active><ahref=../components/>Components</a></li><li><ahref=../javascript/>JavaScript</a></li><li><ahref=../customize/>Customize</a></li></ul><ulclass="nav navbar-nav navbar-right"><li><ahref=http://themes.getbootstrap.comonclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li><li><ahref=http://expo.getbootstrap.comonclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li><li><ahref=http://blog.getbootstrap.comonclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li></ul></nav></div></header><divclass=bs-docs-headerid=contenttabindex=-1><divclass=container><h1>Components</h1><p>Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.</p><divid=carbonads-container><divclass=carbonad><divid=azcarbon></div><script>varz=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";vars=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div></div></div><divclass="container bs-docs-container"><divclass=row><divclass=col-md-9role=main><divclass=bs-docs-section><h1class=page-headerid=glyphicons>Glyphicons</h1><h2id=glyphicons-glyphs>Available glyphs</h2><p>Includes over 250 glyphs in font format from the Glyphicon Halflings set. <ahref=http://glyphicons.com/>Glyphicons</a> 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 <ahref=http://glyphicons.com/
<spanclass=nt><span</span><spanclass=na>class=</span><spanclass=s>"glyphicon glyphicon-star"</span><spanclass=na>aria-hidden=</span><spanclass=s>"true"</span><spanclass=nt>></span></span> Star
<spanclass=nt></button></span></code></pre></figure><p>An icon used in an <ahref=#alerts>alert</a> to convey that it's an error message, with additional <code>.sr-only</code> text to convey this hint to users of assistive technologies.</p><divclass=bs-exampledata-example-id=glyphicons-accessibility><divclass="alert alert-danger"role=alert><spanclass="glyphicon glyphicon-exclamation-sign"aria-hidden=true></span><spanclass=sr-only>Error:</span> Enter a valid email address </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"alert alert-danger"</span><spanclass=na>role=</span><spanclass=s>"alert"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=dropdowns>Dropdowns</h1><pclass=lead>Toggleable, contextual menu for displaying lists of links. Made interactive with the <ahref=../javascript/#dropdowns>dropdown JavaScript plugin</a>.</p><h2id=dropdowns-example>Example</h2><p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p><divclass=bs-exampledata-example-id=static-dropdown><divclass="dropdown clearfix"><buttonclass="btn btn-default dropdown-toggle"type=buttonid=dropdownMenu1data-toggle=dropdownaria-haspopup=truearia-expanded=true> Dropdown <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=dropdownMenu1><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"dropdown"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><p>Dropdown menus can be changed to expand upwards (instead of downwards) by adding <code>.dropup</code> to the parent.</p><divclass=bs-exampledata-example-id=static-dropup><divclass="dropup clearfix"><buttonclass="btn btn-default dropdown-toggle"type=buttonid=dropdownMenu2data-toggle=dropdownaria-haspopup=truearia-expanded=false> Dropup <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=dropdownMenu2><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"dropup"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=dropdowns-alignment>Alignment</h2><p>By default, a dropdown menu is automatically positioned 100% from the top and along the left side of its parent. Add <code>.dropdown-menu-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p><divclass="bs-callout bs-callout-warning"id=callout-dropdown-positioning><h4>May require additional positioning</h4><p>Dropdowns are automatically positioned via CSS within the normal flow of the document. This means dropdowns may be cropped by parents with certain <code>overflow</code> properties or appear out of bounds of the viewport. Address these issues on your own as they arise.</p></div><divclass="bs-callout bs-callout-warning"id=callout-dropdown-pull-right><h4>Deprecated <code>.pull-right</code> alignment</h4><p>As of v3.1.0, we've deprecated <code>.pull-right</code> on dropdown menus. To right-align a menu, use <code>.dropdown-menu-right</code>. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use <code>.dropdown-menu-left</code>.</p></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"dropdown-menu dropdown-menu-right"</span><spanclass=na>aria-labelledby=</span><spanclass=s>"dLabel"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=dropdowns-headers>Headers</h2><p>Add a header to label sections of actions in any dropdown menu.</p><divclass=bs-example><divclass="dropdown clearfix"><buttonclass="btn btn-default dropdown-toggle"type=buttonid=dropdownMenu3data-toggle=dropdownaria-haspopup=truearia-expanded=true> Dropdown <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=dropdownMenu3><liclass=dropdown-header>Dropdown header</li><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><liclass=dropdown-header>Dropdown header</li><li><ahref=#>Separated link</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"dropdown-menu"</span><spanclass=na>aria-labelledby=</span><spanclass=s>"dropdownMenu3"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=dropdowns-divider>Divider</h2><p>Add a divider to separate series of links in a dropdown menu.</p><divclass=bs-example><divclass="dropdown clearfix"><buttonclass="btn btn-default dropdown-toggle"type=buttonid=dropdownMenuDividerdata-toggle=dropdownaria-haspopup=truearia-expanded=true> Dropdown <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=dropdownMenuDivider><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"dropdown-menu"</span><spanclass=na>aria-labelledby=</span><spanclass=s>"dropdownMenuDivider"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=dropdowns-disabled>Disabled menu items</h2><p>Add <code>.disabled</code> to a <code><li></code> in the dropdown to disable the link.</p><divclass=bs-example><divclass="dropdown clearfix"><buttonclass="btn btn-default dropdown-toggle"type=buttonid=dropdownMenu4data-toggle=dropdownaria-haspopup=truearia-expanded=true> Dropdown <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=dropdownMenu4><li><ahref=#>Regular link</a></li><liclass=disabled><ahref=#>Disabled link</a></li><li><ahref=#>Another link</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"dropdown-menu"</span><spanclass=na>aria-labelledby=</span><spanclass=s>"dropdownMenu4"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=btn-groups>Button groups</h1><pclass=lead>Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <ahref=../javascript/#buttons>our buttons plugin</a>.</p><divclass="bs-callout bs-callout-warning"id=callout-btn-group-tooltips><h4>Tooltips & popovers in button groups require special setting</h4><p>When using tooltips or popovers on elements within a <code>.btn-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p></div><divclass="bs-callout bs-callout-warning"id=callout-btn-group-accessibility><h4>Ensure correct <code>role</code> and provide a label</h4><p>In order for assistive technologies – such as screen readers – to convey that a series of buttons is grouped, an appropriate <code>role</code> attribute needs to be provided. For button groups, this would be <code>role="group"</code>, while toolbars should have a <code>role="toolbar"</code>.</p><p>One exception are groups which only contain a single control (for instance the <ahref=#btn-groups-justified>justified button groups</a> with <code><button></code> elements) or a dropdown.</p><p>In addition, groups and toolbars should be given an explicit label, as most assistive technologies will otherwise not announce them, despite the presence of the correct <code>role</code> attribute. In the examples provided here, we use <code>aria-label</code>, but alternatives such as <code>aria-labelledby</code> can also be used.</p></div><h2id=btn-groups-single>Basic example</h2><p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p><divclass=bs-exampledata-example-id=simple-button-group><divclass=btn-grouprole=grouparia-label="Basic example"><buttontype=buttonclass="btn btn-default">Left</button><buttontype=buttonclass="btn btn-default">Middle</button><buttontype=buttonclass="btn btn-default">Right</button></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=btn-groups-toolbar>Button toolbar</h2><p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p><divclass=bs-exampledata-example-id=simple-button-toolbar><divclass=btn-toolbarrole=toolbararia-label="Toolbar with button groups"><divclass=btn-grouprole=grouparia-label="First group"><buttontype=buttonclass="btn btn-default">1</button><buttontype=buttonclass="btn btn-default">2</button><buttontype=buttonclass="btn btn-default">3</button><buttontype=buttonclass="btn btn-default">4</button></div><divclass=btn-grouprole=grouparia-label="Second group"><buttontype=buttonclass="btn btn-default">5</button><buttontype=buttonclass="btn btn-default">6</button><buttontype=buttonclass="btn btn-default">7</button></div><divclass=btn-grouprole=grouparia-label="Third group"><buttontype=buttonclass="btn btn-default">8</button></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-toolbar"</span><spanclass=na>role=</span><spanclass=s>"toolbar"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=btn-groups-sizing>Sizing</h2><p>Instead of applying button sizing classes to every button in a group, just add <code>.btn-group-*</code> to each <code>.btn-group</code>, including when nesting multiple groups.</p><divclass=bs-exampledata-example-id=button-group-sizing><divclass="btn-group btn-group-lg"role=grouparia-label="Large button group"><buttontype=buttonclass="btn btn-default">Left</button><buttontype=buttonclass="btn btn-default">Middle</button><buttontype=buttonclass="btn btn-default">Right</button></div><br><divclass=btn-grouprole=grouparia-label="Default button group"><buttontype=buttonclass="btn btn-default">Left</button><buttontype=buttonclass="btn btn-default">Middle</button><buttontype=buttonclass="btn btn-default">Right</button></div><br><divclass="btn-group btn-group-sm"role=grouparia-label="Small button group"><buttontype=buttonclass="btn btn-default">Left</button><buttontype=buttonclass="btn btn-default">Middle</button><buttontype=buttonclass="btn btn-default">Right</button></div><br><divclass="btn-group btn-group-xs"role=grouparia-label="Extra-small button group"><buttontype=buttonclass="btn btn-default">Left</button><buttontype=buttonclass="btn btn-default">Middle</button><buttontype=buttonclass="btn btn-default">Right</button></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group btn-group-lg"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>...<spanclass=nt></div></span>
<spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group btn-group-xs"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure><h2id=btn-groups-nested>Nesting</h2><p>Place a <code>.btn-group</code> within another <code>.btn-group</code> when you want dropdown menus mixed with a series of buttons.</p><divclass=bs-exampledata-example-id=button-group-nesting><divclass=btn-grouprole=grouparia-label="Button group with nested dropdown"><buttontype=buttonclass="btn btn-default">1</button><buttontype=buttonclass="btn btn-default">2</button><divclass=btn-grouprole=group><buttonid=btnGroupDrop1type=buttonclass="btn btn-default dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false> Dropdown <spanclass=caret></span></button><ulclass=dropdown-menuaria-labelledby=btnGroupDrop1><li><ahref=#>Dropdown link</a></li><li><ahref=#>Dropdown link</a></li></ul></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=btn-groups-justified>Justified button groups</h2><p>Make a group of buttons stretch at equal sizes to span the entire width of its parent. Also works with button dropdowns within the button group.</p><divclass="bs-callout bs-callout-warning"id=callout-btn-group-justified-dbl-border><h4>Handling borders</h4><p>Due to the specific HTML and CSS used to justify buttons (namely <code>display: table-cell</code>), the borders between them are doubled. In regular button groups, <code>margin-left: -1px</code> is used to stack the borders instead of removing them. However, <code>margin</code> doesn't work with <code>display: table-cell</code>. As a result, depending on your customizations to Bootstrap, you may wish to remove or re-color the borders.</p></div><divclass="bs-callout bs-callout-warning"id=callout-btn-group-ie8-border><h4>IE8 and borders</h4><p>Internet Explorer 8 doesn't render borders on buttons in a justified button group, whether it's on <code><a></code> or <code><button></code> elements. To get around that, wrap each button in another <code>.btn-group</code>.</p><p>See <ahref=https://github.com/twbs/bootstrap/issues/12476>#12476</a> for more information.</p></div><h4>With <code><a></code> elements</h4><p>Just wrap a series of <code>.btn</code>s in <code>.btn-group.btn-group-justified</code>.</p><divclass=bs-exampledata-example-id=simple-justified-button-group><divclass="btn-group btn-group-justified"role=grouparia-label="Justified button group"><ahref=#class="btn btn-default"role=button>Left</a><ahref=#class="btn btn-default"role=button>Middle</a><ahref=#class="btn btn-default"role=button>Right</a></div><br><divclass="btn-group btn-group-justified"role=grouparia-label="Justified button group with nested dropdown"><ahref=#class="btn btn-default"role=button>Left</a><ahref=#class="btn btn-default"role=button>Middle</a><divclass=btn-grouprole=group><ahref=#class="btn btn-default dropdown-toggle"data-toggle=dropdownrole=buttonaria-haspopup=truearia-expanded=false> Dropdown <spanclass=caret></span></a><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group btn-group-justified"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><divclass="bs-callout bs-callout-warning"id=callout-btn-group-anchor-btn><h4>Links acting as buttons</h4><p>If the <code><a></code> elements are used to act as buttons – triggering in-page functionality, rather than navigating to another document or section within the current page – they should also be given an appropriate <code>role="button"</code>.</p></div><h4>With <code><button></code> elements</h4><p>To use justified button groups with <code><button></code> elements, <strongclass=text-danger>you must wrap each button in a button group</strong>. Most browsers don't properly apply our CSS for justification to <code><button></code> elements, but since we support button dropdowns, we can work around that.</p><divclass=bs-exampledata-example-id=button-tag-button-group-justified><divclass="btn-group btn-group-justified"role=grouparia-label="Justified button group"><divclass=btn-grouprole=group><buttontype=buttonclass="btn btn-default">Left</button></div><divclass=btn-grouprole=group><buttontype=buttonclass="btn btn-default">Middle</button></div><divclass=btn-grouprole=group><buttontype=buttonclass="btn btn-default">Right</button></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"btn-group btn-group-justified"</span><spanclass=na>role=</span><spanclass=s>"group"</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=btn-dropdowns>Button dropdowns</h1><pclass=lead>Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p><divclass="bs-callout bs-callout-danger"id=callout-btndropdown-dependency><h4>Plugin dependency</h4><p>Button dropdowns require the <ahref=../javascript/#dropdowns>dropdown plugin</a> to be included in your version of Bootstrap.</p></div><h2id=btn-dropdowns-single>Single button dropdowns</h2><p>Turn a button into a dropdown toggle with some basic markup changes.</p><divclass=bs-exampledata-example-id=single-button-dropdown><divclass=btn-group><buttontype=buttonclass="btn btn-default dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Default <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div><divclass=btn-group><buttontype=buttonclass="btn btn-primary dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Primary <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div><divclass=btn-group><buttontype=buttonclass="btn btn-success dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Success <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div><divclass=btn-group><buttontype=buttonclass="btn btn-info dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Info <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div><divclass=btn-group><buttontype=buttonclass="btn btn-warning dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Warning <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div><divclass=btn-group><buttontype=buttonclass="btn btn-danger dropdown-toggle"data-toggle=dropdownaria-haspopup=truearia-expanded=false>Danger <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=c><!-- Single button --></span>
<spanclass=nt></div></span></code></pre></figure><h2id=btn-dropdowns-sizing>Sizing</h2><p>Button dropdowns work with buttons of all sizes.</p><divclass=bs-exampledata-example-id=button-dropdown-sizing><divclass=btn-toolbarrole=toolbar><divclass=btn-group><buttonclass="btn btn-default btn-lg dropdown-toggle"type=buttondata-toggle=dropdownaria-haspopup=truearia-expanded=false> Large button <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div><divclass=btn-toolbarrole=toolbar><divclass=btn-group><buttonclass="btn btn-default btn-sm dropdown-toggle"type=buttondata-toggle=dropdownaria-haspopup=truearia-expanded=false> Small button <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div><divclass=btn-toolbarrole=toolbar><divclass=btn-group><buttonclass="btn btn-default btn-xs dropdown-toggle"type=buttondata-toggle=dropdownaria-haspopup=truearia-expanded=false> Extra small button <spanclass=caret></span></button><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=c><!-- Large button group --></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=input-groups>Input groups</h1><pclass=lead>Extend form controls by adding text or buttons before, after, or on both sides of any text-based <code><input></code>. Use <code>.input-group</code> with an <code>.input-group-addon</code> or <code>.input-group-btn</code> to prepend or append elements to a single <code>.form-control</code>.</p><divclass="bs-callout bs-callout-danger"id=callout-inputgroup-text-input-only><h4>Textual <code><input></code>s only</h4><p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p><p>Avoid using <code><textarea></code> elements here as their <code>rows</code> attribute will not be respected in some cases.</p></div><divclass="bs-callout bs-callout-warning"id=callout-inputgroup-container-body><h4>Tooltips & popovers in input groups require special setting</h4><p>When using tooltips or popovers on elements within an <code>.input-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p></div><divclass="bs-callout bs-callout-warning"id=callout-inputgroup-dont-mix><h4>Don't mix with other components</h4><p>Do not mix form groups or grid column classes directly with input groups. Instead, nest the input group inside of the form group or grid-related element.</p></div><divclass="bs-callout bs-callout-warning"id=callout-inputgroup-form-labels><h4>Always add labels</h4><p>Screen readers will have trouble with your forms if you don't include a label for every input. For these input groups, ensure that any additional label or functionality is conveyed to assistive technologies.</p><p>The exact technique to be used (visible <code><label></code> elements, <code><label></code> elements hidden using the <code>.sr-only</code> class, or use of the <code>aria-label</code>, <code>aria-labelledby</code>, <code>aria-describedby</code>, <code>title</code> or <code>placeholder</code> attribute) and what additional information will need to be conveyed will vary depending on the exact type of interface widget you're implementing. The examples in this section provide a few suggested, case-specific approaches.</p></div><h2id=input-groups-basic>Basic example</h2><p>Place one add-on or button on either side of an input. You may also place one on both sides of an input.</p><p><strongclass=text-danger>We do not support multiple add-ons (<code>.input-group-addon</code> or <code>.input-group-btn</code>) on a single side.</strong></p><p><strongclass=text-danger>We do not support multiple form-controls in a single input group.</strong></p><formclass="bs-example bs-example-form"data-example-id=simple-input-groups><divclass=input-group><spanclass=input-group-addonid=basic-addon1>@</span><inputclass=form-controlplaceholder=Usernamearia-describedby=basic-addon1></div><br><divclass=input-group><inputclass=form-controlplaceholder="Recipient's username"aria-describedby=basic-addon2><spanclass=input-group-addonid=basic-addon2>@example.com</span></div><br><divclass=input-group><spanclass=input-group-addon>$</span><inputclass=form-controlaria-label="Amount (to the nearest dollar)"><spanclass=input-group-addon>.00</span></div><br><labelfor=basic-url>Your vanity URL</label><divclass=input-group><spanclass=input-group-addonid=basic-addon3>https://example.com/users/</span><inputclass=form-controlid=basic-urlaria-describedby=basic-addon3></div></form><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"input-group"</span><spanclass=nt>></span>
<spanclass=nt><input</span><spanclass=na>type=</span><spanclass=s>"text"</span><spanclass=na>class=</span><spanclass=s>"form-control"</span><spanclass=na>aria-label=</span><spanclass=s>"Amount (to the nearest dollar)"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=input-groups-sizing>Sizing</h2><p>Add the relative form sizing classes to the <code>.input-group</code> itself and contents within will automatically resize—no need for repeating the form control size classes on each element.</p><formclass="bs-example bs-example-form"data-example-id=input-group-sizing><divclass="input-group input-group-lg"><spanclass=input-group-addonid=sizing-addon1>@</span><inputclass=form-controlplaceholder=Usernamearia-describedby=sizing-addon1></div><br><divclass=input-group><spanclass=input-group-addonid=sizing-addon2>@</span><inputclass=form-controlplaceholder=Usernamearia-describedby=sizing-addon2></div><br><divclass="input-group input-group-sm"><spanclass=input-group-addonid=sizing-addon3>@</span><inputclass=form-controlplaceholder=Usernamearia-describedby=sizing-addon3></div></form><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"input-group input-group-lg"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=input-groups-checkboxes-radios>Checkboxes and radio addons</h2><p>Place any checkbox or radio option within an input group's addon instead of text.</p><formclass="bs-example bs-example-form"data-example-id=input-group-with-checkbox-radio><divclass=row><divclass=col-lg-6><divclass=input-group><spanclass=input-group-addon><inputtype=checkboxaria-label="Checkbox for following text input"></span><inputclass=form-controlaria-label="Text input with checkbox"></div></div><divclass=col-lg-6><divclass=input-group><spanclass=input-group-addon><inputtype=radioaria-label="Radio button for following text input"></span><inputclass=form-controlaria-label="Text input with radio button"></div></div></div></form><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"row"</span><spanclass=nt>></span>
<spanclass=nt></div></span><spanclass=c><!-- /.row --></span></code></pre></figure><h2id=input-groups-buttons>Button addons</h2><p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p><formclass="bs-example bs-example-form"data-example-id=input-group-with-button><divclass=row><divclass=col-lg-6><divclass=input-group><spanclass=input-group-btn><buttonclass="btn btn-default"type=button>Go!</button></span><inputclass=form-controlplaceholder="Search for..."></div></div><divclass=col-lg-6><divclass=input-group><inputclass=form-controlplaceholder="Search for..."><spanclass=input-group-btn><buttonclass="btn btn-default"type=button>Go!</button></span></div></div></div></form><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"row"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=input-groups-buttons-multiple>Multiple buttons</h2><p>While you can only have one add-on per side, you can have multiple buttons inside a single <code>.input-group-btn</code>.</p><formclass="bs-example bs-example-form"data-example-id=input-group-multiple-buttons><divclass=row><divclass=col-lg-6><divclass=input-group><divclass=input-group-btn><buttontype=buttonclass="btn btn-default"aria-label=Bold><spanclass="glyphicon glyphicon-bold"></span></button><buttontype=buttonclass="btn btn-default"aria-label=Italic><spanclass="glyphicon glyphicon-italic"></span></button></div><inputclass=form-controlaria-label="Text input with multiple buttons"></div></div><divclass=col-lg-6><divclass=input-group><inputclass=form-controlaria-label="Text input with multiple buttons"><divclass=input-group-btn><buttontype=buttonclass="btn btn-default"aria-label=Help><spanclass="glyphicon glyphicon-question-sign"></span></button><buttontype=buttonclass="btn btn-default">Action</button></div></div></div></div></form><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"input-group"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=nav>Navs</h1><pclass=lead>Navs available in Bootstrap have shared markup, starting with the base <code>.nav</code> class, as well as shared states. Swap modifier classes to switch between each style.</p><divclass="bs-callout bs-callout-info"id=callout-navs-tabs-plugin><h4>Using navs for tab panels requires JavaScript tabs plugin</h4><p>For tabs with tabbable areas, you must use the <ahref=../javascript/#tabs>tabs JavaScript plugin</a>. The markup will also require additional <code>role</code> and ARIA attributes – see the plugin's <ahref=../javascript/#tabs-usage>example markup</a> for further details.</p></div><divclass="bs-callout bs-callout-warning"id=callout-navs-accessibility><h4>Make navs used as navigation accessible</h4><p>If you are using navs to provide a navigation bar, be sure to add a <code>role="navigation"</code> to the most logical parent container of the <code><ul></code>, or wrap a <code><nav></code> element around the whole navigation. Do not add the role to the <code><ul></code> itself, as this would prevent it from being announced as an actual list by assistive technologies.</p></div><h2id=nav-tabs>Tabs</h2><p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p><divclass=bs-exampledata-example-id=simple-nav-tabs><ulclass="nav nav-tabs"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages</a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-tabs"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=nav-pills>Pills</h2><p>Take that same HTML, but use <code>.nav-pills</code> instead:</p><divclass=bs-exampledata-example-id=simple-nav-pills><ulclass="nav nav-pills"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages</a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-pills"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p><divclass=bs-exampledata-example-id=simple-nav-stacked><ulclass="nav nav-pills nav-stacked nav-pills-stacked-example"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages</a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-pills nav-stacked"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=nav-justified>Justified</h2><p>Easily make tabs or pills equal widths of their parent at screens wider than 768px with <code>.nav-justified</code>. On smaller screens, the nav links are stacked.</p><p><strongclass=text-danger>Justified navbar nav links are currently not supported.</strong></p><divclass="bs-callout bs-callout-warning"id=callout-navs-justified-safari><h4>Safari and responsive justified navs</h4><p>As of v9.1.2, Safari exhibits a bug in which resizing your browser horizontally causes rendering errors in the justified nav that are cleared upon refreshing. This bug is also shown in the <ahref=../examples/justified-nav/>justified nav example</a>.</p></div><divclass=bs-exampledata-example-id=simple-nav-justified><ulclass="nav nav-tabs nav-justified"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages</a></li></ul><br><ulclass="nav nav-pills nav-justified"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages</a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-tabs nav-justified"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=nav-disabled-links>Disabled links</h2><p>For any nav component (tabs or pills), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>.</p><divclass="bs-callout bs-callout-warning"id=callout-navs-anchor-disabled><h4>Link functionality not impacted</h4><p>This class will only change the <code><a></code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p></div><divclass=bs-exampledata-example-id=disabled-nav-link><ulclass="nav nav-pills"><lirole=presentation><ahref=#>Clickable link</a></li><lirole=presentation><ahref=#>Clickable link</a></li><lirole=presentationclass=disabled><ahref=#>Disabled link</a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-pills"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=nav-dropdowns>Using dropdowns</h2><p>Add dropdown menus with a little extra HTML and the <ahref=../javascript/#dropdowns>dropdowns JavaScript plugin</a>.</p><h3>Tabs with dropdowns</h3><divclass=bs-exampledata-example-id=nav-tabs-with-dropdown><ulclass="nav nav-tabs"><lirole=presentationclass=active><ahref=#>Home</a></li><lirole=presentation><ahref=#>Help</a></li><lirole=presentationclass=dropdown><ahref=#class=dropdown-toggledata-toggle=dropdownrole=buttonaria-haspopup=truearia-expanded=false> Dropdown <spanclass=caret></span></a><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li></ul></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-tabs"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=navbar>Navbar</h1><h2id=navbar-default>Default navbar</h2><p>Navbars are responsive meta components that serve as navigation headers for your application or site. They begin collapsed (and are toggleable) in mobile views and become horizontal as the available viewport width increases.</p><p><strongclass=text-danger>Justified navbar nav links are currently not supported.</strong></p><divclass="bs-callout bs-callout-warning"id=callout-navbar-overflow><h4>Overflowing content</h4><p>Since Bootstrap doesn't know how much space the content in your navbar needs, you might run into issues with content wrapping into a second row. To resolve this, you can:</p><oltype=a><li>Reduce the amount or width of navbar items.</li><li>Hide certain navbar items at certain screen sizes using <ahref=../css/#responsive-utilities>responsive utility classes</a>.</li><li>Change the point at which your navbar switches between collapsed and horizontal mode. Customize the <code>@grid-float-breakpoint</code> variable or add your own media query.</li></ol></div><divclass="bs-callout bs-callout-danger"id=callout-navbar-js><h4>Requires JavaScript plugin</h4><p>If JavaScript is disabled and the viewport is narrow enough that the navbar collapses, it will be impossible to expand the navbar and view the content within the <code>.navbar-collapse</code>.</p><p>The responsive navbar requires the <ahref=../javascript/#collapse>collapse plugin</a> to be included in your version of Bootstrap.</p></div><divclass="bs-callout bs-callout-info"id=callout-navbar-breakpoint><h4>Changing the collapsed mobile navbar breakpoint</h4><p>The navbar collapses into its vertical mobile view when the viewport is narrower than <code>@grid-float-breakpoint</code>, and expands into its horizontal non-mobile view when the viewport is at least <code>@grid-float-breakpoint</code> in width. Adjust this variable in the Less source to control when the navbar collapses/expands. The default value is <code>768px</code> (the smallest "small" or "tablet" screen).</p></div><divclass="bs-callout bs-callout-warning"id=callout-navbar-role><h4>Make navbars accessible</h4><p>Be sure to use a <code><nav></code> element or, if using a more generic element such as a <code><div></code>, add a <code>role="navigation"</code> to every navbar to explicitly identify it as a landmark region for users of assistive technologies.</p></div><divclass=bs-exampledata-example-id=default-navbar><navclass="navbar navbar-default"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-1aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-1><ulclass="nav navbar-nav"><liclass=active><ahref=#>Link <spanclass=sr-only>(current)</span></a></li><li><ahref=#>Link</a></li><liclass=dropdown><ahref=#class=dropdown-toggledata-toggle=dropdownrole=buttonaria-haspopup=truearia-expanded=false>Dropdown <spanclass=caret></span></a><ulclass=dropdown-menu><li><ahref=#>Action</a></li><li><ahref=#>Another action</a></li><li><ahref=#>Something else here</a></li><lirole=separatorclass=divider></li><li><ahref=#>Separated link</a></li><lirole=separatorclass=divider></li><li><ahref=#>One more separated link</a></li></ul></li></ul><formclass="navbar-form navbar-left"><divclass=form-group><inputclass=form-controlplaceholder=Search></div><buttontype=submitclass="btn btn-default">Submit</button></form><ulclass="nav navbar-nav navbar-right"><li><ahref=#>Link</a></li><liclass=dropdown><ahref=#class=dropdown-toggledata-toggle=dropdownrole=buttonaria-haspopup=truearia-expanded=false>Dropdown <
<spanclass=nt><li><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=nt>></span>One more separated link<spanclass=nt></a></li></span>
<spanclass=nt></nav></span></code></pre></figure><h2id=navbar-brand-image>Brand image</h2><p>Replace the navbar brand with your own image by swapping the text for an <code><img></code>. Since the <code>.navbar-brand</code> has its own padding and height, you may need to override some CSS depending on your image.</p><divclass=bs-exampledata-example-id=navbar-with-image-brand><navclass="navbar navbar-default"><divclass=container-fluid><divclass=navbar-header><ahref=#class=navbar-brand><imgalt=Brandheight=20src=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAB+0lEQVR4AcyYg5LkUBhG+1X2PdZGaW3btm3btm3bHttWrPomd1r/2Jn/VJ02TpxcH4CQ/dsuazWgzbIdrm9dZVd4pBz4zx2igTaFHrhvjneVXNHCSqIlFEjiwMyyyOBilRgGSqLNF1jnwNQdIvAt48C3IlBmHCiLQHC2zoHDu6zG1iXn6+y62ScxY9AODO6w0pvAqf23oSE4joOfH6OxfMoRnoGUm+de8wykbFt6wZtA07QwtNOqKh3ZbS3Wzz2F+1c/QJY0UCJ/J3kXWJfv7VhxCRRV1jGw7XI+gcO7rEFFRvdYxydwcPsVsC0bQdKScngt4iUTD4Fy/8p7PoHzRu1DclwmgmiqgUXjD3oTKHbAt869qdJ7l98jNTEblPTkXMwetpvnftA0LLHb4X8kiY9Kx6Q+W7wJtG0HR7fdrtYz+x7iya0vkEtUULIzCjC21wY+W/GYXusRH5kGytWTLxgEEhePPwhKYb7EK3BQuxWwTBuUkd3X8goUn6fMHLyTT+DCsQdAEXNzSMeVPAJHdF2DmH8poCREp3uwm7HsGq9J9q69iuunX6EgrwQVObjpBt8z6rdPfvE8kiiyhsvHnomrQx6BxYUyYiNS8f75H1w4/ISepDZLoDhNJ9cdNUquhRsv+6EP9oNH7Iff2A9g8h8CLt1gH0Qf9NMQAFnO60BJFQe0AAAAAElFTkSuQmCCwidth=20></a></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>class=</span><spanclass=s>"navbar navbar-default"</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><h2id=navbar-forms>Forms</h2><p>Place form content within <code>.navbar-form</code> for proper vertical alignment and collapsed behavior in narrow viewports. Use the alignment options to decide where it resides within the navbar content.</p><p>As a heads up, <code>.navbar-form</code> shares much of its code with <code>.form-inline</code> via mixin. <strongclass=text-danger>Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p><divclass=bs-exampledata-example-id=navbar-form><navclass="navbar navbar-default"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-2aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-2><formclass="navbar-form navbar-left"><divclass=form-group><inputclass=form-controlplaceholder=Search></div><buttontype=submitclass="btn btn-default">Submit</button></form></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><form</span><spanclass=na>class=</span><spanclass=s>"navbar-form navbar-left"</span><spanclass=na>role=</span><spanclass=s>"search"</span><spanclass=nt>></span>
<spanclass=nt></form></span></code></pre></figure><divclass="bs-callout bs-callout-warning"id=callout-navbar-mobile-caveats><h4>Mobile device caveats</h4><p>There are some caveats regarding using form controls within fixed elements on mobile devices. <ahref=../getting-started/#support-fixed-position-keyboards>See our browser support docs</a> for details.</p></div><divclass="bs-callout bs-callout-warning"id=callout-navbar-form-labels><h4>Always add labels</h4><p>Screen readers will have trouble with your forms if you don't include a label for every input. For these inline forms, you can hide the labels using the <code>.sr-only</code> class. There are further alternative methods of providing a label for assistive technologies, such as the <code>aria-label</code>, <code>aria-labelledby</code> or <code>title</code> attribute. If none of these is present, screen readers may resort to using the <code>placeholder</code> attribute, if present, but note that use of <code>placeholder</code> as a replacement for other labelling methods is not advised.</p></div><h2id=navbar-buttons>Buttons</h2><p>Add the <code>.navbar-btn</code> class to <code><button></code> elements not residing in a <code><form></code> to vertically center them in the navbar.</p><divclass=bs-exampledata-example-id=navbar-button><navclass="navbar navbar-default"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-3aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-3><buttontype=buttonclass="btn btn-default navbar-btn">Sign in</button></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><button</span><spanclass=na>type=</span><spanclass=s>"button"</span><spanclass=na>class=</span><spanclass=s>"btn btn-default navbar-btn"</span><spanclass=nt>></span>Sign in<spanclass=nt></button></span></code></pre></figure><divclass="bs-callout bs-callout-warning"id=callout-navbar-btn-context><h4>Context-specific usage</h4><p>Like the standard <ahref=../css/#buttons>button classes</a>, <code>.navbar-btn</code> can be used on <code><a></code> and <code><input></code> elements. However, neither <code>.navbar-btn</code> nor the standard button classes should be used on <code><a></code> elements within <code>.navbar-nav</code>.</p></div><h2id=navbar-text>Text</h2><p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p><divclass=bs-exampledata-example-id=navbar-text><navclass="navbar navbar-default"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-4aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-4><pclass=navbar-text>Signed in as Mark Otto</p></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><p</span><spanclass=na>class=</span><spanclass=s>"navbar-text"</span><spanclass=nt>></span>Signed in as Mark Otto<spanclass=nt></p></span></code></pre></figure><h2id=navbar-links>Non-nav links</h2><p>For folks using standard links that are not within the regular navbar navigation component, use the <code>.navbar-link</code> class to add the proper colors for the default and inverse navbar options.</p><divclass=bs-exampledata-example-id=navbar-link><navclass="navbar navbar-default"><divclas
<spanclass=nt></nav></span></code></pre></figure><divclass="bs-callout bs-callout-danger"id=callout-navbar-fixed-top-padding><h4>Body padding required</h4><p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the top of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p><figureclass=highlight><pre><codeclass=language-scssdata-lang=scss><spanclass=nt>body</span><spanclass=p>{</span><spanclass=nl>padding-top</span><spanclass=p>:</span><spanclass=m>70px</span><spanclass=p>;</span><spanclass=p>}</span></code></pre></figure><p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p></div><h2id=navbar-fixed-bottom>Fixed to bottom</h2><p>Add <code>.navbar-fixed-bottom</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p><divclass="bs-example bs-navbar-bottom-example"data-example-id=navbar-fixed-to-bottom><navclass="navbar navbar-default navbar-fixed-bottom"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-7aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-7><ulclass="nav navbar-nav"><liclass=active><ahref=#>Home</a></li><li><ahref=#>Link</a></li><li><ahref=#>Link</a></li></ul></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>class=</span><spanclass=s>"navbar navbar-default navbar-fixed-bottom"</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><divclass="bs-callout bs-callout-danger"id=callout-navbar-fixed-bottom-padding><h4>Body padding required</h4><p>The fixed navbar will overlay your other content, unless you add <code>padding</code> to the bottom of the <code><body></code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p><figureclass=highlight><pre><codeclass=language-scssdata-lang=scss><spanclass=nt>body</span><spanclass=p>{</span><spanclass=nl>padding-bottom</span><spanclass=p>:</span><spanclass=m>70px</span><spanclass=p>;</span><spanclass=p>}</span></code></pre></figure><p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p></div><h2id=navbar-static-top>Static top</h2><p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p><p>Unlike the <code>.navbar-fixed-*</code> classes, you do not need to change any padding on the <code>body</code>.</p><divclass="bs-example bs-navbar-top-example"data-example-id=navbar-static-top><navclass="navbar navbar-default navbar-static-top"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-8aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-8><ulclass="nav navbar-nav"><liclass=active><ahref=#>Home</a></li><li><ahref=#>Link</a></li><li><ahref=#>Link</a></li></ul></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>class=</span><spanclass=s>"navbar navbar-default navbar-static-top"</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><h2id=navbar-inverted>Inverted navbar</h2><p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p><divclass=bs-exampledata-example-id=inverted-navbar><navclass="navbar navbar-inverse"><divclass=container-fluid><divclass=navbar-header><buttontype=buttonclass="collapsed navbar-toggle"data-toggle=collapsedata-target=#bs-example-navbar-collapse-9aria-expanded=false><spanclass=sr-only>Toggle navigation</span><spanclass=icon-bar></span><spanclass=icon-bar></span><spanclass=icon-bar></span></button><ahref=#class=navbar-brand>Brand</a></div><divclass="collapse navbar-collapse"id=bs-example-navbar-collapse-9><ulclass="nav navbar-nav"><liclass=active><ahref=#>Home</a></li><li><ahref=#>Link</a></li><li><ahref=#>Link</a></li></ul></div></div></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>class=</span><spanclass=s>"navbar navbar-inverse"</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=breadcrumbs>Breadcrumbs</h1><pclass=lead>Indicate the current page's location within a navigational hierarchy.</p><p>Separators are automatically added in CSS through <code>:before</code> and <code>content</code>.</p><divclass=bs-exampledata-example-id=simple-breadcrumbs><olclass=breadcrumb><liclass=active>Home</li></ol><olclass=breadcrumb><li><ahref=#>Home</a></li><liclass=active>Library</li></ol><olclass=breadcrumb><li><ahref=#>Home</a></li><li><ahref=#>Library</a></li><liclass=active>Data</li></ol></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ol</span><spanclass=na>class=</span><spanclass=s>"breadcrumb"</span><spanclass=nt>></span>
<spanclass=nt></ol></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=pagination>Pagination</h1><pclass=lead>Provide pagination links for your site or app with the multi-page pagination component, or the simpler <ahref=#pagination-pager>pager alternative</a>.</p><h2id=pagination-default>Default pagination</h2><p>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.</p><divclass=bs-exampledata-example-id=simple-pagination><navaria-label="Page navigation"><ulclass=pagination><li><ahref=#aria-label=Previous><spanaria-hidden=true>«</span></a></li><li><ahref=#>1</a></li><li><ahref=#>2</a></li><li><ahref=#>3</a></li><li><ahref=#>4</a></li><li><ahref=#>5</a></li><li><ahref=#aria-label=Next><spanaria-hidden=true>»</span></a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"Page navigation"</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><divclass="bs-callout bs-callout-info"id=callout-pagination-label><h4>Labelling the pagination component</h4><p>The pagination component should be wrapped in a <code><nav></code> element to identify it as a navigation section to screen readers and other assistive technologies. In addition, as a page is likely to have more than one such navigation section already (such as the primary navigation in the header, or a sidebar navigation), it is advisable to provide a descriptive <code>aria-label</code> for the <code><nav></code> which reflects its purpose. For example, if the pagination component is used to navigate between a set of search results, an appropriate label could be <code>aria-label="Search results pages"</code>.</p></div><h3>Disabled and active states</h3><p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p><divclass=bs-exampledata-example-id=disabled-active-pagination><navaria-label=...><ulclass=pagination><liclass=disabled><ahref=#aria-label=Previous><spanaria-hidden=true>«</span></a></li><liclass=active><ahref=#>1 <spanclass=sr-only>(current)</span></a></li><li><ahref=#>2</a></li><li><ahref=#>3</a></li><li><ahref=#>4</a></li><li><ahref=#>5</a></li><li><ahref=#aria-label=Next><spanaria-hidden=true>»</span></a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><p>We recommend that you swap out active or disabled anchors for <code><span></code>, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles.</p><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><h3>Sizing</h3><p>Fancy larger or smaller pagination? Add <code>.pagination-lg</code> or <code>.pagination-sm</code> for additional sizes.</p><divclass=bs-exampledata-example-id=pagination-sizing><navaria-label=...><ulclass="pagination pagination-lg"><li><ahref=#aria-label=Previous><spanaria-hidden=true>«</span></a></li><li><ahref=#>1</a></li><li><ahref=#>2</a></li><li><ahref=#>3</a></li><li><ahref=#>4</a></li><li><ahref=#>5</a></li><li><ahref=#aria-label=Next><spanaria-hidden=true>»</span></a></li></ul></nav><navaria-label=...><ulclass=pagination><li><ahref=#aria-label=Previous><spanaria-hidden=true>«</span></a></li><li><ahref=#>1</a></li><li><ahref=#>2</a></li><li><ahref=#>3</a></li><li><ahref=#>4</a></li><li><ahref=#>5</a></li><li><ahref=#aria-label=Next><spanaria-hidden=true>»</span></a></li></ul></nav><navaria-label=...><ulclass="pagination pagination-sm"><li><ahref=#aria-label=Previous><spanaria-hidden=true>«</span></a></li><li><ahref=#>1</a></li><li><ahref=#>2</a></li><li><ahref=#>3</a></li><li><ahref=#>4</a></li><li><ahref=#>5</a></li><li><ahref=#aria-label=Next><spanaria-hidden=true>»</span></a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>><ul</span><spanclass=na>class=</span><spanclass=s>"pagination pagination-lg"</span><spanclass=nt>></span>...<spanclass=nt></ul></nav></span>
<spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>><ul</span><spanclass=na>class=</span><spanclass=s>"pagination pagination-sm"</span><spanclass=nt>></span>...<spanclass=nt></ul></nav></span></code></pre></figure><h2id=pagination-pager>Pager</h2><p>Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.</p><h3>Default example</h3><p>By default, the pager centers links.</p><divclass=bs-exampledata-example-id=simple-pager><navaria-label=...><ulclass=pager><li><ahref=#>Previous</a></li><li><ahref=#>Next</a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><h3>Aligned links</h3><p>Alternatively, you can align each link to the sides:</p><divclass=bs-exampledata-example-id=aligned-pager-links><navaria-label=...><ulclass=pager><liclass=previous><ahref=#><spanaria-hidden=true>←</span> Older</a></li><liclass=next><ahref=#>Newer <spanaria-hidden=true>→</span></a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt></nav></span></code></pre></figure><h3>Optional disabled state</h3><p>Pager links also use the general <code>.disabled</code> utility class from the pagination.</p><divclass=bs-exampledata-example-id=disabled-pager><navaria-label=...><ulclass=pager><liclass="previous disabled"><ahref=#><spanaria-hidden=true>←</span> Older</a></li><liclass=next><ahref=#>Newer <spanaria-hidden=true>→</span></a></li></ul></nav></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><nav</span><spanclass=na>aria-label=</span><spanclass=s>"..."</span><spanclass=nt>></span>
<spanclass=nt><span</span><spanclass=na>class=</span><spanclass=s>"label label-danger"</span><spanclass=nt>></span>Danger<spanclass=nt></span></span></code></pre></figure><divclass="bs-callout bs-callout-info"id=callout-labels-inline-block><h4>Have tons of labels?</h4><p>Rendering problems can arise when you have dozens of inline labels within a narrow container, each containing its own <code>inline-block</code> element (like an icon). The way around this is setting <code>display: inline-block;</code>. For context and an example, <ahref=https://github.com/twbs/bootstrap/issues/13219>see #13219</a>.</p></div></div><divclass=bs-docs-section><h1class=page-headerid=badges>Badges</h1><pclass=lead>Easily highlight new or unread items by adding a <code><span class="badge"></code> to links, Bootstrap navs, and more.</p><divclass=bs-exampledata-example-id=simple-badges><ahref=#>Inbox <spanclass=badge>42</span></a><br><br><buttonclass="btn btn-primary"type=button> Messages <spanclass=badge>4</span></button></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=nt>></span>Inbox <spanclass=nt><span</span><spanclass=na>class=</span><spanclass=s>"badge"</span><spanclass=nt>></span>42<spanclass=nt></span></a></span>
<spanclass=nt></button></span></code></pre></figure><h4>Self collapsing</h4><p>When there are no new or unread items, badges will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p><divclass="bs-callout bs-callout-danger"id=callout-badges-ie8-empty><h4>Cross-browser compatibility</h4><p>Badges won't self collapse in Internet Explorer 8 because it lacks support for the <code>:empty</code> selector.</p></div><h4>Adapts to active nav states</h4><p>Built-in styles are included for placing badges in active states in pill navigations.</p><divclass=bs-exampledata-example-id=badges-in-pills><ulclass="nav nav-pills"role=tablist><lirole=presentationclass=active><ahref=#>Home <spanclass=badge>42</span></a></li><lirole=presentation><ahref=#>Profile</a></li><lirole=presentation><ahref=#>Messages <spanclass=badge>3</span></a></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"nav nav-pills"</span><spanclass=na>role=</span><spanclass=s>"tablist"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=jumbotron>Jumbotron</h1><p>A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.</p><divclass=bs-exampledata-example-id=simple-jumbotron><divclass=jumbotron><h1>Hello, world!</h1><p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p><p><ahref=#class="btn btn-primary btn-lg"role=button>Learn more</a></p></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"jumbotron"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><p>To make the jumbotron full width, and without rounded corners, place it outside all <code>.container</code>s and instead add a <code>.container</code> within.</p><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"jumbotron"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=page-header>Page header</h1><p>A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code> element, as well as most other components (with additional styles).</p><divclass=bs-exampledata-example-id=simple-page-header><divclass=page-header><h1>Example page header <small>Subtext for header</small></h1></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"page-header"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=thumbnails>Thumbnails</h1><pclass=lead>Extend Bootstrap's <ahref=../css/#grid>grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p><p>If you're looking for Pinterest-like presentation of thumbnails of varying heights and/or widths, you'll need to use a third-party plugin such as <ahref=http://masonry.desandro.com>Masonry</a>, <ahref=http://isotope.metafizzy.co>Isotope</a>, or <ahref=http://salvattore.com>Salvattore</a>.</p><h2id=thumbnails-default>Default example</h2><p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p><divclass=bs-exampledata-example-id=simple-thumbnails><divclass=row><divclass="col-md-3 col-xs-6"><ahref=#class=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x180></a></div><divclass="col-md-3 col-xs-6"><ahref=#class=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x180></a></div><divclass="col-md-3 col-xs-6"><ahref=#class=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x180></a></div><divclass="col-md-3 col-xs-6"><ahref=#class=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x180></a></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"row"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=thumbnails-custom-content>Custom content</h2><p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p><divclass=bs-exampledata-example-id=thumbnails-with-custom-content><divclass=row><divclass="col-sm-6 col-md-4"><divclass=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x200><divclass=caption><h3>Thumbnail label</h3><p>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.</p><p><ahref=#class="btn btn-primary"role=button>Button</a><ahref=#class="btn btn-default"role=button>Button</a></p></div></div></div><divclass="col-sm-6 col-md-4"><divclass=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x200><divclass=caption><h3>Thumbnail label</h3><p>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.</p><p><ahref=#class="btn btn-primary"role=button>Button</a><ahref=#class="btn btn-default"role=button>Button</a></p></div></div></div><divclass="col-sm-6 col-md-4"><divclass=thumbnail><imgalt="Generic placeholder thumbnail"data-src=holder.js/100%x200><divclass=caption><h3>Thumbnail label</h3><p>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.</p><p><ahref=#class="btn btn-primary"role=button>Button</a><ahref=#class="btn btn-default"role=button>Button</a></p></div></div></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"row"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=alerts>Alerts</h1><pclass=lead>Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.</p><h2id=alerts-examples>Examples</h2><p>Wrap any text and an optional dismiss button in <code>.alert</code> and one of the four contextual classes (e.g., <code>.alert-success</code>) for basic alert messages.</p><divclass="bs-callout bs-callout-info"id=callout-alerts-no-default><h4>No default class</h4><p>Alerts don't have default classes, only base and modifier classes. A default gray alert doesn't make too much sense, so you're required to specify a type via contextual class. Choose from success, info, warning, or danger.</p></div><divclass=bs-exampledata-example-id=simple-alerts><divclass="alert alert-success"role=alert><strong>Well done!</strong> You successfully read this important alert message. </div><divclass="alert alert-info"role=alert><strong>Heads up!</strong> This alert needs your attention, but it's not super important. </div><divclass="alert alert-warning"role=alert><strong>Warning!</strong> Better check yourself, you're not looking too good. </div><divclass="alert alert-danger"role=alert><strong>Oh snap!</strong> Change a few things up and try submitting again. </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"alert alert-success"</span><spanclass=na>role=</span><spanclass=s>"alert"</span><spanclass=nt>></span>...<spanclass=nt></div></span>
<spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"alert alert-danger"</span><spanclass=na>role=</span><spanclass=s>"alert"</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure><h2id=alerts-dismissible>Dismissible alerts</h2><p>Build on any alert by adding an optional <code>.alert-dismissible</code> and close button.</p><divclass="bs-callout bs-callout-info"id=callout-alerts-dismiss-plugin><h4>Requires JavaScript alert plugin</h4><p>For fully functioning, dismissible alerts, you must use the <ahref=../javascript/#alerts>alerts JavaScript plugin</a>.</p></div><divclass=bs-exampledata-example-id=dismissible-alert-css><divclass="alert alert-warning alert-dismissible"role=alert><buttontype=buttonclass=closedata-dismiss=alertaria-label=Close><spanaria-hidden=true>×</span></button><strong>Warning!</strong> Better check yourself, you're not looking too good. </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"alert alert-warning alert-dismissible"</span><spanclass=na>role=</span><spanclass=s>"alert"</span><spanclass=nt>></span>
<spanclass=nt><strong></span>Warning!<spanclass=nt></strong></span> Better check yourself, you're not looking too good.
<spanclass=nt></div></span></code></pre></figure><divclass="bs-callout bs-callout-warning"id=callout-alerts-dismiss-use-button><h4>Ensure proper behavior across all devices</h4><p>Be sure to use the <code><button></code> element with the <code>data-dismiss="alert"</code> data attribute.</p></div><h2id=alerts-links>Links in alerts</h2><p>Use the <code>.alert-link</code> utility class to quickly provide matching colored links within any alert.</p><divclass=bs-exampledata-example-id=alerts-with-links><divclass="alert alert-success"role=alert><strong>Well done!</strong> You successfully read <ahref=#class=alert-link>this important alert message</a>. </div><divclass="alert alert-info"role=alert><strong>Heads up!</strong> This <ahref=#class=alert-link>alert needs your attention</a>, but it's not super important. </div><divclass="alert alert-warning"role=alert><strong>Warning!</strong> Better check yourself, you're <ahref=#class=alert-link>not looking too good</a>. </div><divclass="alert alert-danger"role=alert><strong>Oh snap!</strong><ahref=#class=alert-link>Change a few things up</a> and try submitting again. </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"alert alert-success"</span><spanclass=na>role=</span><spanclass=s>"alert"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=progress>Progress bars</h1><pclass=lead>Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p><divclass="bs-callout bs-callout-danger"id=callout-progress-animation-css3><h4>Cross-browser compatibility</h4><p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.</p></div><divclass="bs-callout bs-callout-info"><h4id=callout-progress-csp>Content Security Policy (CSP) compatibility</h4><p>If your website has a <ahref=https://developer.mozilla.org/en-US/docs/Web/Security/CSP>Content Security Policy (CSP)</a> which doesn't allow <code>style-src 'unsafe-inline'</code>, then you won't be able to use inline <code>style</code> attributes to set progress bar widths as shown in our examples below. Alternative methods for setting the widths that are compatible with strict CSPs include using a little custom JavaScript (that sets <code>element.style.width</code>) or using custom CSS classes.</p></div><h2id=progress-basic>Basic example</h2><p>Default progress bar.</p><divclass=bs-exampledata-example-id=simple-progress-bar><divclass=progress><divclass=progress-barrole=progressbararia-valuenow=60aria-valuemin=0aria-valuemax=100style=width:60%><spanclass=sr-only>60% Complete</span></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=progress-label>With label</h2><p>Remove the <code><span></code> with <code>.sr-only</code> class from within the progress bar to show a visible percentage.</p><divclass=bs-exampledata-example-id=progress-bar-with-label><divclass=progress><divclass=progress-barrole=progressbararia-valuenow=60aria-valuemin=0aria-valuemax=100style=width:60%> 60% </div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><p>To ensure that the label text remains legible even for low percentages, consider adding a <code>min-width</code> to the progress bar.</p><divclass=bs-exampledata-example-id=progress-bar-at-low-percentage><divclass=progress><divclass=progress-barrole=progressbararia-valuenow=0aria-valuemin=0aria-valuemax=100style=min-width:2em> 0% </div></div><divclass=progress><divclass=progress-barrole=progressbararia-valuenow=2aria-valuemin=0aria-valuemax=100style=min-width:2em;width:2%> 2% </div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=progress-alternatives>Contextual alternatives</h2><p>Progress bars use some of the same button and alert classes for consistent styles.</p><divclass=bs-exampledata-example-id=contextual-progress-bar><divclass=progress><divclass="progress-bar progress-bar-success"role=progressbararia-valuenow=40aria-valuemin=0aria-valuemax=100style=width:40%><spanclass=sr-only>40% Complete (success)</span></div></div><divclass=progress><divclass="progress-bar progress-bar-info"role=progressbararia-valuenow=20aria-valuemin=0aria-valuemax=100style=width:20%><spanclass=sr-only>20% Complete</span></div></div><divclass=progress><divclass="progress-bar progress-bar-warning"role=progressbararia-valuenow=60aria-valuemin=0aria-valuemax=100style=width:60%><spanclass=sr-only>60% Complete (warning)</span></div></div><divclass=progress><divclass="progress-bar progress-bar-danger"role=progressbararia-valuenow=80aria-valuemin=0aria-valuemax=100style=width:80%><spanclass=sr-only>80% Complete (danger)</span></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=progress-striped>Striped</h2><p>Uses a gradient to create a striped effect. Not available in IE9 and below.</p><divclass=bs-exampledata-example-id=striped-progress-bar><divclass=progress><divclass="progress-bar progress-bar-success progress-bar-striped"role=progressbararia-valuenow=40aria-valuemin=0aria-valuemax=100style=width:40%><spanclass=sr-only>40% Complete (success)</span></div></div><divclass=progress><divclass="progress-bar progress-bar-info progress-bar-striped"role=progressbararia-valuenow=20aria-valuemin=0aria-valuemax=100style=width:20%><spanclass=sr-only>20% Complete</span></div></div><divclass=progress><divclass="progress-bar progress-bar-warning progress-bar-striped"role=progressbararia-valuenow=60aria-valuemin=0aria-valuemax=100style=width:60%><spanclass=sr-only>60% Complete (warning)</span></div></div><divclass=progress><divclass="progress-bar progress-bar-danger progress-bar-striped"role=progressbararia-valuenow=80aria-valuemin=0aria-valuemax=100style=width:80%><spanclass=sr-only>80% Complete (danger)</span></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=progress-animated>Animated</h2><p>Add <code>.active</code> to <code>.progress-bar-striped</code> to animate the stripes right to left. Not available in IE9 and below.</p><divclass=bs-exampledata-example-id=animated-progress-bar><divclass=progress><divclass="progress-bar progress-bar-striped"role=progressbararia-valuenow=45aria-valuemin=0aria-valuemax=100style=width:45%><spanclass=sr-only>45% Complete</span></div></div><buttontype=buttonclass="btn btn-default bs-docs-activate-animated-progressbar"data-toggle=buttonaria-pressed=falseautocomplete=off>Toggle animation</button></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=progress-stacked>Stacked</h2><p>Place multiple bars into the same <code>.progress</code> to stack them.</p><divclass=bs-exampledata-example-id=stacked-progress-bar><divclass=progress><divclass="progress-bar progress-bar-success"style=width:35%><spanclass=sr-only>35% Complete (success)</span></div><divclass="progress-bar progress-bar-warning progress-bar-striped"style=width:20%><spanclass=sr-only>20% Complete (warning)</span></div><divclass="progress-bar progress-bar-danger"style=width:10%><spanclass=sr-only>10% Complete (danger)</span></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"progress"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=media>Media object</h1><pclass=lead>Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</p><h2id=media-default>Default media</h2><p>The default media displays a media object (images, video, audio) to the left or right of a content block.</p><divclass=bs-exampledata-example-id=default-media><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. </div></div><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. <divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. </div></div></div></div><divclass=media><divclass=media-body><h4class=media-heading>Media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. </div><divclass=media-right><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div></div><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. </div><divclass=media-right><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"media"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><p>The classes <code>.pull-left</code> and <code>.pull-right</code> also exist and were previously used as part of the media component, but are deprecated for that use as of v3.3.0. They are approximately equivalent to <code>.media-left</code> and <code>.media-right</code>, except that <code>.media-right</code> should be placed after the <code>.media-body</code> in the html.</p><h2id=media-alignment>Media alignment</h2><p>The images or other media can be aligned top, middle, or bottom. The default is top aligned.</p><divclass=bs-exampledata-example-id=media-alignment><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Top aligned media</h4><p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p><p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p></div></div><divclass=media><divclass="media-left media-middle"><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Middle aligned media</h4><p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p><p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p></div></div><divclass=media><divclass="media-left media-bottom"><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Bottom aligned media</h4><p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.</p><p>Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"media"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=media-list>Media list</h2><p>With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).</p><divclass=bs-exampledata-example-id=media-list><ulclass=media-list><liclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Media heading</h4><p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. <divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. </div></div></div></div><divclass=media><divclass=media-left><ahref=#><imgalt="Generic placeholder image"class=media-objectdata-src=holder.js/64x64></a></div><divclass=media-body><h4class=media-heading>Nested media heading</h4> Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. </div></div></div></li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"media-list"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=list-group>List group</h1><pclass=lead>List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.</p><h2id=list-group-basic>Basic example</h2><p>The most basic list group is simply an unordered list with list items, and the proper classes. Build upon it with the options that follow, or your own CSS as needed.</p><divclass=bs-exampledata-example-id=simple-list-group><ulclass=list-group><liclass=list-group-item>Cras justo odio</li><liclass=list-group-item>Dapibus ac facilisis in</li><liclass=list-group-item>Morbi leo risus</li><liclass=list-group-item>Porta ac consectetur ac</li><liclass=list-group-item>Vestibulum at eros</li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Morbi leo risus<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></li></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=list-group-badges>Badges</h2><p>Add the badges component to any list group item and it will automatically be positioned on the right.</p><divclass=bs-exampledata-example-id=list-group-badges><ulclass=list-group><liclass=list-group-item><spanclass=badge>14</span> Cras justo odio </li><liclass=list-group-item><spanclass=badge>2</span> Dapibus ac facilisis in </li><liclass=list-group-item><spanclass=badge>1</span> Morbi leo risus </li></ul></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt></ul></span></code></pre></figure><h2id=list-group-linked>Linked items</h2><p>Linkify list group items by using anchor tags instead of list items (that also means a parent <code><div></code> instead of an <code><ul></code>). No need for individual parents around each element.</p><divclass=bs-exampledata-example-id=list-group-anchors><divclass=list-group><ahref=#class="list-group-item active"> Cras justo odio </a><ahref=#class=list-group-item>Dapibus ac facilisis in</a><ahref=#class=list-group-item>Morbi leo risus</a><ahref=#class=list-group-item>Porta ac consectetur ac</a><ahref=#class=list-group-item>Vestibulum at eros</a></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Morbi leo risus<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></a></span>
<spanclass=nt></div></span></code></pre></figure><h2id=list-group-buttons>Button items</h2><p>List group items may be buttons instead of list items (that also means a parent <code><div></code> instead of an <code><ul></code>). No need for individual parents around each element. <strongclass=text-danger>Don't use the standard <code>.btn</code> classes here.</strong></p><divclass=bs-exampledata-example-id=list-group-btns><divclass=list-group><buttontype=buttonclass=list-group-item>Cras justo odio</button><buttontype=buttonclass=list-group-item>Dapibus ac facilisis in</button><buttontype=buttonclass=list-group-item>Morbi leo risus</button><buttontype=buttonclass=list-group-item>Porta ac consectetur ac</button><buttontype=buttonclass=list-group-item>Vestibulum at eros</button></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><button</span><spanclass=na>type=</span><spanclass=s>"button"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></button></span>
<spanclass=nt><button</span><spanclass=na>type=</span><spanclass=s>"button"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Morbi leo risus<spanclass=nt></button></span>
<spanclass=nt><button</span><spanclass=na>type=</span><spanclass=s>"button"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></button></span>
<spanclass=nt><button</span><spanclass=na>type=</span><spanclass=s>"button"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></button></span>
<spanclass=nt></div></span></code></pre></figure><h2id=list-group-disabled>Disabled items</h2><p>Add <code>.disabled</code> to a <code>.list-group-item</code> to gray it out to appear disabled.</p><divclass=bs-exampledata-example-id=list-group-disabled><divclass=list-group><ahref=#class="list-group-item disabled"> Cras justo odio </a><ahref=#class=list-group-item>Dapibus ac facilisis in</a><ahref=#class=list-group-item>Morbi leo risus</a><ahref=#class=list-group-item>Porta ac consectetur ac</a><ahref=#class=list-group-item>Vestibulum at eros</a></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Morbi leo risus<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></a></span>
<spanclass=nt></div></span></code></pre></figure><h2id=list-group-contextual-classes>Contextual classes</h2><p>Use contextual classes to style list items, default or linked. Also includes <code>.active</code> state.</p><divclass=bs-exampledata-example-id=list-group-variants><divclass=row><divclass=col-sm-6><ulclass=list-group><liclass="list-group-item list-group-item-success">Dapibus ac facilisis in</li><liclass="list-group-item list-group-item-info">Cras sit amet nibh libero</li><liclass="list-group-item list-group-item-warning">Porta ac consectetur ac</li><liclass="list-group-item list-group-item-danger">Vestibulum at eros</li></ul></div><divclass=col-sm-6><divclass=list-group><ahref=#class="list-group-item list-group-item-success">Dapibus ac facilisis in</a><ahref=#class="list-group-item list-group-item-info">Cras sit amet nibh libero</a><ahref=#class="list-group-item list-group-item-warning">Porta ac consectetur ac</a><ahref=#class="list-group-item list-group-item-danger">Vestibulum at eros</a></div></div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><ul</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-success"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-info"</span><spanclass=nt>></span>Cras sit amet nibh libero<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-warning"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-danger"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></li></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-success"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-info"</span><spanclass=nt>></span>Cras sit amet nibh libero<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-warning"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></a></span>
<spanclass=nt><a</span><spanclass=na>href=</span><spanclass=s>"#"</span><spanclass=na>class=</span><spanclass=s>"list-group-item list-group-item-danger"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></a></span>
<spanclass=nt></div></span></code></pre></figure><h2id=list-group-custom-content>Custom content</h2><p>Add nearly any HTML within, even for linked list groups like the one below.</p><divclass=bs-exampledata-example-id=list-group-custom-content><divclass=list-group><ahref=#class="list-group-item active"><h4class=list-group-item-heading>List group item heading</h4><pclass=list-group-item-text>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p></a><ahref=#class=list-group-item><h4class=list-group-item-heading>List group item heading</h4><pclass=list-group-item-text>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p></a><ahref=#class=list-group-item><h4class=list-group-item-heading>List group item heading</h4><pclass=list-group-item-text>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p></a></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"list-group"</span><spanclass=nt>></span>
<spanclass=nt><h4</span><spanclass=na>class=</span><spanclass=s>"list-group-item-heading"</span><spanclass=nt>></span>List group item heading<spanclass=nt></h4></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=panels>Panels</h1><pclass=lead>While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p><h2id=panels-basic>Basic example</h2><p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p><divclass=bs-exampledata-example-id=simple-panel><divclass="panel panel-default"><divclass=panel-body> Basic panel example </div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=panels-heading>Panel with heading</h2><p>Easily add a heading container to your panel with <code>.panel-heading</code>. You may also include any <code><h1></code>-<code><h6></code> with a <code>.panel-title</code> class to add a pre-styled heading. However, the font sizes of <code><h1></code>-<code><h6></code> are overridden by <code>.panel-heading</code>.</p><p>For proper link coloring, be sure to place links in headings within <code>.panel-title</code>.</p><divclass=bs-exampledata-example-id=panel-with-heading><divclass="panel panel-default"><divclass=panel-heading>Panel heading without title</div><divclass=panel-body> Panel content </div></div><divclass="panel panel-default"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel-heading"</span><spanclass=nt>></span>Panel heading without title<spanclass=nt></div></span>
<spanclass=nt></div></span></code></pre></figure><h2id=panels-footer>Panel with footer</h2><p>Wrap buttons or secondary text in <code>.panel-footer</code>. Note that panel footers <strong>do not</strong> inherit colors and borders when using contextual variations as they are not meant to be in the foreground.</p><divclass=bs-exampledata-example-id=panel-with-footer><divclass="panel panel-default"><divclass=panel-body> Panel content </div><divclass=panel-footer>Panel footer</div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=panels-alternatives>Contextual alternatives</h2><p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p><divclass=bs-exampledata-example-id=contextual-panels><divclass="panel panel-primary"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div><divclass="panel panel-success"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div><divclass="panel panel-info"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div><divclass="panel panel-warning"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div><divclass="panel panel-danger"><divclass=panel-heading><h3class=panel-title>Panel title</h3></div><divclass=panel-body> Panel content </div></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-primary"</span><spanclass=nt>></span>...<spanclass=nt></div></span>
<spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-danger"</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure><h2id=panels-tables>With tables</h2><p>Add any non-bordered <code>.table</code> within a panel for a seamless design. If there is a <code>.panel-body</code>, we add an extra border to the top of the table for separation.</p><divclass=bs-exampledata-example-id=table-within-panel><divclass="panel panel-default"><divclass=panel-heading>Panel heading</div><divclass=panel-body><p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div><tableclass=table><thead><tr><th>#</th><th>First Name</th><th>Last Name</th><th>Username</th></tr></thead><tbody><tr><thscope=row>1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope=row>2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope=row>3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><p>If there is no panel body, the component moves from panel header to table without interruption.</p><divclass=bs-exampledata-example-id=panel-without-body-with-table><divclass="panel panel-default"><divclass=panel-heading>Panel heading</div><tableclass=table><thead><tr><th>#</th><th>First Name</th><th>Last Name</th><th>Username</th></tr></thead><tbody><tr><thscope=row>1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope=row>2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope=row>3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt></div></span></code></pre></figure><h2id=panels-list-group>With list groups</h2><p>Easily include full-width <ahref=#list-group>list groups</a> within any panel.</p><divclass=bs-exampledata-example-id=panel-with-list-group><divclass="panel panel-default"><divclass=panel-heading>Panel heading</div><divclass=panel-body><p>Some default panel content here. Nulla vitae elit libero, a pharetra augue. Aenean lacinia bibendum nulla sed consectetur. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Nullam id dolor id nibh ultricies vehicula ut id elit.</p></div><ulclass=list-group><liclass=list-group-item>Cras justo odio</li><liclass=list-group-item>Dapibus ac facilisis in</li><liclass=list-group-item>Morbi leo risus</li><liclass=list-group-item>Porta ac consectetur ac</li><liclass=list-group-item>Vestibulum at eros</li></ul></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"panel panel-default"</span><spanclass=nt>></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Dapibus ac facilisis in<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Morbi leo risus<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Porta ac consectetur ac<spanclass=nt></li></span>
<spanclass=nt><li</span><spanclass=na>class=</span><spanclass=s>"list-group-item"</span><spanclass=nt>></span>Vestibulum at eros<spanclass=nt></li></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=responsive-embed>Responsive embed</h1><p>Allow browsers to determine video or slideshow dimensions based on the width of their containing block by creating an intrinsic ratio that will properly scale on any device.</p><p>Rules are directly applied to <code><iframe></code>, <code><embed></code>, <code><video></code>, and <code><object></code> elements; optionally use an explicit descendant class <code>.embed-responsive-item</code> when you want to match the styling for other attributes.</p><p><strong>Pro-Tip!</strong> You don't need to include <code>frameborder="0"</code> in your <code><iframe></code>s as we override that for you.</p><divclass=bs-exampledata-example-id=responsive-embed-16by9-iframe-youtube><divclass="embed-responsive embed-responsive-16by9"><iframeclass=embed-responsive-itemsrc="//www.youtube.com/embed/zpOULjyy-n8?rel=0"allowfullscreen></iframe></div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=c><!-- 16:9 aspect ratio --></span>
<spanclass=nt></div></span></code></pre></figure></div><divclass=bs-docs-section><h1class=page-headerid=wells>Wells</h1><h2>Default well</h2><p>Use the well as a simple effect on an element to give it an inset effect.</p><divclass=bs-exampledata-example-id=default-well><divclass=well> Look, I'm in a well! </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"well"</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure><h2>Optional classes</h2><p>Control padding and rounded corners with two optional modifier classes.</p><divclass=bs-exampledata-example-id=large-well><divclass="well well-lg"> Look, I'm in a large well! </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"well well-lg"</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure><divclass=bs-exampledata-example-id=small-well><divclass="well well-sm"> Look, I'm in a small well! </div></div><figureclass=highlight><pre><codeclass=language-htmldata-lang=html><spanclass=nt><div</span><spanclass=na>class=</span><spanclass=s>"well well-sm"</span><spanclass=nt>></span>...<spanclass=nt></div></span></code></pre></figure></div></div><divclass=col-md-3role=complementary><navclass="bs-docs-sidebar hidden-print hidden-sm hidden-xs"><ulclass="nav bs-docs-sidenav"><li><ahref=#glyphicons>Glyphicons</a><ulclass=nav><li><ahref=#glyphicons-glyphs>Available glyphs</a></li><li><ahref=#glyphicons-how-to-use>How to use</a></li><li><ahref=#glyphicons-examples>Examples</a></li></ul></li><li><ahref=#dropdowns>Dropdowns</a><ulclass=nav><li><ahref=#dropdowns-example>Example</a></li><li><ahref=#dropdowns-alignment>Alignment</a></li><li><ahref=#dropdowns-headers>Headers</a></li><li><ahref=#dropdowns-divider>Divider</a></li><li><ahref=#dropdowns-disabled>Disabled menu items</a></li></ul></li><li><ahref=#btn-groups>Button groups</a><ulclass=nav><li><ahref=#btn-groups-single>Basic example</a></li><li><ahref=#btn-groups-toolbar>Button toolbar</a></li><li><ahref=#btn-groups-sizing>Sizing</a></li><li><ahref=#btn-groups-nested>Nesting</a></li><li><ahref=#btn-groups-vertical>Vertical variation</a></li><li><ahref=#btn-groups-justified>Justified button groups</a></li></ul></li><li><ahref=#btn-dropdowns>Button dropdowns</a><ulclass=nav><li><ahref=#btn-dropdowns-single>Single button dropdowns</a></li><li><ahref=#btn-dropdowns-split>Split button dropdowns</a></li><li><ahref=#btn-dropdowns-sizing>Sizing</a></li><li><ahref=#btn-dropdowns-dropup>Dropup variation</a></li></ul></li><li><ahref=#input-groups>Input groups</a><ulclass=nav><li><ahref=#input-groups-basic>Basic example</a></li><li><ahref=#input-groups-sizing>Sizing</a></li><li><ahref=#input-groups-checkboxes-radios>Checkbox and radios addons</a></li><li><ahref=#input-groups-buttons>Button addons</a></li><li><ahref=#input-groups-buttons-dropdowns>Buttons with dropdowns</a></li><li><ahref=#input-groups-buttons-segmented>Segmented buttons</a></li><li><ahref=#input-groups-buttons-multiple>Multiple buttons</a></li></ul></li><li><ahref=#nav>Navs</a><ulclass=nav><li><ahref=#nav-tabs>Tabs</a></li><li><ahref=#nav-pills>Pills</a></li><li><ahref=#nav-justified>Justified</a></li><li><ahref=#nav-disabled-links>Disabled links</a></li><li><ahref=#nav-dropdowns>Using dropdowns</a></li></ul></li><li><ahref=#navbar>Navbar</a><ulclass=nav><li><ahref=#navbar-default>Default navbar</a></li><li><ahref=#navbar-brand-image>Brand image</a></li><li><ahref=#navbar-forms>Forms</a></li><li><ahref=#navbar-buttons>Buttons</a></li><li><ahref=#navbar-text>Text</a></li><li><ahref=#navbar-links>Non-nav links</a></li><li><ahref=#navbar-component-alignment>Component alignment</a></li><li><ahref=#navbar-fixed-top>Fixed to top</a>