]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
add some redirects
authorMark Otto <markdotto@gmail.com>
Fri, 11 Aug 2017 04:29:36 +0000 (21:29 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 11 Aug 2017 04:29:36 +0000 (21:29 -0700)
about/index.html
browser-bugs/index.html
components/index.html
css/index.html
customize/index.html
getting-started/index.html
index.html
javascript/index.html

index 1c3a5365b34bcc363a9a5feb2f8e7e55000858d3..a172c45ee8a37ee4380e59708db26396a77bfd58 100644 (file)
@@ -1 +1,10 @@
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> About &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>About</h1> <p>Learn about the project's history, meet the maintaining teams, and find out how to use the Bootstrap brand.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <div class=bs-docs-section> <h1 class=page-header id=history>History</h1> <p class=lead>Originally created by a designer and a developer at Twitter, Bootstrap has become one of the most popular front-end frameworks and open source projects in the world.</p> <p>Bootstrap was created at Twitter in mid-2010 by <a href=https://twitter.com/mdo>@mdo</a> and <a href=https://twitter.com/fat>@fat</a>. Prior to being an open-sourced framework, Bootstrap was known as <em>Twitter Blueprint</em>. A few months into development, Twitter held its <a href=https://blog.twitter.com/2010/hack-week>first Hack Week</a> and the project exploded as developers of all skill levels jumped in without any external guidance. It served as the style guide for internal tools development at the company for over a year before its public release, and continues to do so today.</p> <p>Originally <a href=https://blog.twitter.com/2011/bootstrap-twitter>released</a> on <a href=https://twitter.com/mdo/statuses/104620039650557952><time datetime="2011-08-19 11:25">Friday, August 19, 2011</time></a>, we've since had over <a href=https://github.com/twbs/bootstrap/releases>twenty releases</a>, including two major rewrites with v2 and v3. With Bootstrap 2, we added responsive functionality to the entire framework as an optional stylesheet. Building on that with Bootstrap 3, we rewrote the library once more to make it responsive by default with a mobile first approach.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=team>Team</h1> <p class=lead>Bootstrap is maintained by the founding team and a small group of invaluable core contributors, with the massive support and involvement of our community.</p> <h2 id=team-core>Core team</h2> <div class="bs-team list-group"> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=mdo&amp;type=follow"></iframe> <a href=https://github.com/mdo class=team-member> <img alt="@mdo avatar" height=32 src="https://secure.gravatar.com/avatar/bc4ab438f7a4ce1c406aadc688427f2c.jpg?s=32" width=32> <strong>Mark Otto</strong> <small>@mdo</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=fat&amp;type=follow"></iframe> <a href=https://github.com/fat class=team-member> <img alt="@fat avatar" height=32 src="https://secure.gravatar.com/avatar/a98244cbdacaf1c0b55499466002f7a8.jpg?s=32" width=32> <strong>Jacob Thornton</strong> <small>@fat</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=cvrebert&amp;type=follow"></iframe> <a href=https://github.com/cvrebert class=team-member> <img alt="@cvrebert avatar" height=32 src="https://secure.gravatar.com/avatar/edec428c425453955f770095a7d26c50.jpg?s=32" width=32> <strong>Chris Rebert</strong> <small>@cvrebert</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=juthilo&amp;type=follow"></iframe> <a href=https://github.com/juthilo class=team-member> <img alt="@juthilo avatar" height=32 src="https://secure.gravatar.com/avatar/0f7dd3ce58a416be5685ea6194f82b11.jpg?s=32" width=32> <strong>Julian Thilo</strong> <small>@juthilo</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=xhmikosr&amp;type=follow"></iframe> <a href=https://github.com/xhmikosr class=team-member> <img alt="@xhmikosr avatar" height=32 src="https://secure.gravatar.com/avatar/e37759b1ea0125d4e97b1e00b5eed26f.jpg?s=32" width=32> <strong>XhmikosR</strong> <small>@xhmikosr</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=hnrch02&amp;type=follow"></iframe> <a href=https://github.com/hnrch02 class=team-member> <img alt="@hnrch02 avatar" height=32 src="https://secure.gravatar.com/avatar/0d53f5d3d3d28bd470f394d98f7ef48f.jpg?s=32" width=32> <strong>Heinrich Fenkart</strong> <small>@hnrch02</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=patrickhlauke&amp;type=follow"></iframe> <a href=https://github.com/patrickhlauke class=team-member> <img alt="@patrickhlauke avatar" height=32 src="https://secure.gravatar.com/avatar/357f279672db832fc41a5a2f36559fcb.jpg?s=32" width=32> <strong>Patrick H. Lauke</strong> <small>@patrickhlauke</small> </a> </div> </div> <p>Get involved with Bootstrap development by <a href=https://github.com/twbs/bootstrap/issues/new>opening an issue</a> or submitting a pull request. Read our <a href=https://github.com/twbs/bootstrap/blob/master/CONTRIBUTING.md>contributing guidelines</a> for information on how we develop.</p> <h2 id=team-sass>Sass team</h2> <div class="bs-team list-group"> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=thomas-mcdonald&amp;type=follow"></iframe> <a href=https://github.com/thomas-mcdonald class=team-member> <img alt="@thomas-mcdonald avatar" height=32 src="https://secure.gravatar.com/avatar/24cd55ab1a62ffb113ab8c02f64c9301.jpg?s=32" width=32> <strong>Thomas McDonald</strong> <small>@thomas-mcdonald</small> </a> </div> <div class=list-group-item> <iframe class=github-btn src="https://ghbtns.com/github-btn.html?user=glebm&amp;type=follow"></iframe> <a href=https://github.com/glebm class=team-member> <img alt="@glebm avatar" height=32 src="https://secure.gravatar.com/avatar/729f685b8e8d7e9feed18c177c82e59b.jpg?s=32" width=32> <strong>Gleb Mazovetskiy</strong> <small>@glebm</small> </a> </div> </div> <p>The <a href=https://github.com/twbs/bootstrap-sass>official Sass port of Bootstrap</a> was created and is maintained by this team. It became part of Bootstrap's organization with v3.1.0. Read the Sass <a href=https://github.com/twbs/bootstrap-sass/blob/master/CONTRIBUTING.md>contributing guidelines</a> for information on how the Sass port is developed.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=brand>Brand guidelines</h1> <p class=lead>Have a need for Bootstrap's brand resources? Great! We have only a few guidelines we follow, and in turn ask you to follow as well. These guidelines were inspired by MailChimp's <a href=http://mailchimp.com/about/brand-assets/ target=_blank>Brand Assets</a>.</p> <h2>Mark and logo</h2> <p>Use either the Bootstrap mark (a capital <strong>B</strong>) or the standard logo (just <strong>Bootstrap</strong>). It should always appear in Helvetica Neue Bold. <strong>Do not use the Twitter bird</strong> in association with Bootstrap.</p> <div class=bs-brand-logos> <div class=bs-brand-item> <div class="bs-docs-booticon bs-docs-booticon-lg">B</div> </div> <div class="bs-brand-item inverse"> <div class="bs-docs-booticon bs-docs-booticon-lg bs-docs-booticon-inverse">B</div> </div> </div> <div class=bs-brand-logos> <div class=bs-brand-item> <h1>Bootstrap</h1> </div> <div class="bs-brand-item inverse"> <h1>Bootstrap</h1> </div> </div> <h2>Download mark</h2> <p>Download the Bootstrap mark in one of three styles, each available as an SVG file. Right click, Save as.</p> <div class=bs-brand-logos> <div class=bs-brand-item> <img alt=Bootstrap height=144 src=../assets/brand/bootstrap-solid.svg width=144 class=svg> </div> <div class="bs-brand-item inverse"> <img alt=Bootstrap height=144 src=../assets/brand/bootstrap-outline.svg width=144 class=svg> </div> <div class="bs-brand-item inverse"> <img alt=Bootstrap height=144 src=../assets/brand/bootstrap-punchout.svg width=144 class=svg> </div> </div> <h2>Name</h2> <p>The project and framework should always be referred to as <strong>Bootstrap</strong>. No Twitter before it, no capital <em>s</em>, and no abbreviations except for one, a capital <strong>B</strong>.</p> <div class=bs-brand-logos> <div class=bs-brand-item> <h3>Bootstrap</h3> <span class="glyphicon glyphicon-ok" aria-hidden=true></span> <span class=sr-only>(correct)</span> </div> <div class=bs-brand-item> <h3 class=text-muted>BootStrap</h3> <span class="glyphicon glyphicon-remove" aria-hidden=true></span> <span class=sr-only>(incorrect)</span> </div> <div class=bs-brand-item> <h3 class=text-muted>Twitter Bootstrap</h3> <span class="glyphicon glyphicon-remove" aria-hidden=true></span> <span class=sr-only>(incorrect)</span> </div> </div> <h2>Colors</h2> <p>Our docs and branding use a handful of primary colors to differentiate what <em>is</em> Bootstrap from what <em>is in</em> Bootstrap. In other words, if it's purple, it's representative of Bootstrap.</p> <div class=bs-brand> <div class=color-swatches> <div class="color-swatch bs-purple"></div> <div class="color-swatch bs-purple-light"></div> <div class="color-swatch bs-purple-lighter"></div> <div class="color-swatch bs-gray"></div> </div> </div> </div> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li> <a href=#history>History</a> </li> <li> <a href=#team>Team</a> </li> <li> <a href=#brand>Brand guidelines</a> </li> </ul> <a href=#top class=back-to-top> Back to top </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/about/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/about/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/about/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/about/"</script>
+</html>
index 06fa63178116c8fac337106a728fb1b9d4f68f76..61cad84cb09354bde668e9269142da1aa6632472 100644 (file)
@@ -1 +1,10 @@
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> Wall of browser bugs &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>Wall of browser bugs</h1> <p>A list of the browser bugs that Bootstrap is currently grappling with.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-12 role=main> <div class=bs-docs-section> <h1 class=page-header id=browser-bugs>Browser bugs</h1> <p class=lead>Bootstrap currently works around several outstanding browser bugs in major browsers to deliver the best cross-browser experience possible. Some bugs, like those listed below, cannot be solved by us.</p> <p>We publicly list browser bugs that are impacting us here, in the hopes of expediting the process of fixing them. For information on Bootstrap's browser compatibility, <a href=../getting-started/#support>see our browser compatibility docs</a>.</p> <p>See also:</p> <ul> <li><a href="https://code.google.com/p/chromium/issues/detail?id=536263">Chromium issue 536263: [meta] Issues affecting Bootstrap</a></li> <li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1230801">Mozilla bug 1230801: Fix the issues that affect Bootstrap</a></li> <li><a href="https://bugs.webkit.org/show_bug.cgi?id=159753">WebKit bug 159753: [meta] Issues affecting Bootstrap</a></li> <li><a href=https://docs.google.com/document/d/1LPaPA30bLUB_publLIMF0RlhdnPx_ePXm7oW02iiT6o>jQuery's browser bug workarounds</a></li> </ul> <div class=table-responsive> <table class="bs-docs-browser-bugs table table-bordered table-hover"> <thead> <tr> <th>Browser(s)</th> <th>Summary of bug</th> <th>Upstream bug(s)</th> <th>Bootstrap issue(s)</th> </tr> </thead> <tbody> <tr> <td>Microsoft Edge </td> <td><p>Native browser tooltip for <code class=highlighter-rouge>title</code> shows on first keyboard focus (in addition to custom tooltip component)</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6793560>Edge issue #6793560</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18692>#18692</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>Hovered element still remains in <code class=highlighter-rouge>:hover</code> state after scrolling away.</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5381673>Edge issue #5381673</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14211>#14211</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>When hovering over a <code class=highlighter-rouge>&lt;select&gt;</code> menu item, the cursor for the element underneath the menu is displayed.</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/817822>Edge issue #817822</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14528>#14528</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>CSS <code class=highlighter-rouge>border-radius</code> sometimes causes lines of bleed-through of the <code class=highlighter-rouge>background-color</code> of the parent element.</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3342037>Edge issue #3342037</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/16671>#16671</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p><code class=highlighter-rouge>background</code> of <code class=highlighter-rouge>&lt;tr&gt;</code> is only applied to first child cell instead of all cells in the row</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5865620>Edge issue #5865620</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18504>#18504</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p><code class=highlighter-rouge>@-ms-viewport{width: device-width;}</code> has side-effect of making scrollbars auto-hide</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7165383>Edge issue #7165383</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18543>#18543</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>Background color from lower layer bleeds through transparent border in some cases</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6274505>Edge issue #6274505</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18228>#18228</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>Hovering over descendant SVG element fires <code class=highlighter-rouge>mouseleave</code> event at ancestor</p> </td> <td><a href=https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7787318>Edge issue #7787318</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19670>#19670</a> </td> </tr> <tr> <td>Firefox </td> <td><p><code class=highlighter-rouge>.table-bordered</code> with an empty <code class=highlighter-rouge>&lt;tbody&gt;</code> is missing borders.</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1023761">Mozilla bug #1023761</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/13453>#13453</a> </td> </tr> <tr> <td>Firefox </td> <td><p>If the disabled state of a form control is changed via JavaScript, the normal state doesn’t return after refreshing the page.</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654072">Mozilla bug #654072</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/793>#793</a> </td> </tr> <tr> <td>Firefox </td> <td><p><code class=highlighter-rouge>focus</code> events should not be fired at the <code class=highlighter-rouge>document</code> object</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1228802">Mozilla bug #1228802</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18365>#18365</a> </td> </tr> <tr> <td>Firefox </td> <td><p>Wide floated table doesn’t wrap onto new line</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1277782">Mozilla bug #1277782</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19839>#19839</a> </td> </tr> <tr> <td>Firefox </td> <td><p>Mouse sometimes not within element for purposes of <code class=highlighter-rouge>mouseenter</code>/<code class=highlighter-rouge>mouseleave</code> when it’s within SVG elements</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=577785">Mozilla bug #577785</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19670>#19670</a> </td> </tr> <tr> <td>Firefox </td> <td><p><code class=highlighter-rouge>position: absolute</code> element that’s wider than its column renders differently than other browsers</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1282363">Mozilla bug #1282363</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/20161>#20161</a> </td> </tr> <tr> <td>Firefox (Windows) </td> <td><p>Right border of <code class=highlighter-rouge>&lt;select&gt;</code> menu is sometimes missing when screen is set to uncommon resolution</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=545685">Mozilla bug #545685</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/15990>#15990</a> </td> </tr> <tr> <td>Firefox (OS X & Linux) </td> <td><p>Badge widget causes bottom border of Tabs widget to unexpectedly not overlap</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1259972">Mozilla bug #1259972</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19626>#19626</a> </td> </tr> <tr> <td>Chrome (Android) </td> <td><p>Tapping on an <code class=highlighter-rouge>&lt;input&gt;</code> in a scrollable overlay doesn’t scroll the <code class=highlighter-rouge>&lt;input&gt;</code> into view</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=595210">Chromium issue #595210</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17338>#17338</a> </td> </tr> <tr> <td>Chrome (OS X) </td> <td><p>Clicking above <code class=highlighter-rouge>&lt;input type="number"&gt;</code> increment button flashes the decrement button.</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=419108">Chromium issue #419108</a> </td> <td>Offshoot of <a href=https://github.com/twbs/bootstrap/issues/8350>#8350</a> & <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=337668">Chromium issue #337668</a> </td> </tr> <tr> <td>Chrome </td> <td><p>CSS infinite linear animation with alpha transparency leaks memory.</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=429375">Chromium issue #429375</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14409>#14409</a> </td> </tr> <tr> <td>Chrome </td> <td><p><code class=highlighter-rouge>:focus</code> <code class=highlighter-rouge>outline</code> style causes cursor to not be displayed when toggling a <code class=highlighter-rouge>readonly</code> <code class=highlighter-rouge>&lt;input&gt;</code> to read-write.</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=465274">Chromium issue #465274</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/16022>#16022</a> </td> </tr> <tr> <td>Chrome </td> <td><p><code class=highlighter-rouge>table-cell</code> borders not overlapping despite <code class=highlighter-rouge>margin-right: -1px</code></p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=534750">Chromium issue #534750</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17438>#17438</a>, <a href=https://github.com/twbs/bootstrap/issues/14237>#14237</a> </td> </tr> <tr> <td>Chrome </td> <td><p>Clicking scrollbar in <code class=highlighter-rouge>&lt;select multiple&gt;</code> with overflowed options will select nearby <code class=highlighter-rouge>&lt;option&gt;</code></p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=597642">Chromium issue #597642</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19810>#19810</a> </td> </tr> <tr> <td>Chrome </td> <td><p>Don’t make <code class=highlighter-rouge>:hover</code> sticky on touch-friendly webpages</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=370155">Chromium issue #370155</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/12832>#12832</a> </td> </tr> <tr> <td>Chrome (Windows & Linux) </td> <td><p>Animation glitch when returning to inactive tab after animations occurred while tab was hidden.</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=449180">Chromium issue #449180</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/15298>#15298</a> </td> </tr> <tr> <td>Safari </td> <td><p><code class=highlighter-rouge>rem</code> units in media queries should be calculated using <code class=highlighter-rouge>font-size: initial</code>, not the root element’s <code class=highlighter-rouge>font-size</code></p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=156684">WebKit bug #156684</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17403>#17403</a> </td> </tr> <tr> <td>Safari (OS X) </td> <td><p><code class=highlighter-rouge>px</code>, <code class=highlighter-rouge>em</code>, and <code class=highlighter-rouge>rem</code> should all behave the same in media queries when page zoom is applied</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=156687">WebKit bug #156687</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17403>#17403</a> </td> </tr> <tr> <td>Safari (OS X) </td> <td><p>Weird button behavior with some <code class=highlighter-rouge>&lt;input type="number"&gt;</code> elements.</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=137269">WebKit bug #137269</a>, <a href=https://openradar.appspot.com/18834768>Apple Safari Radar #18834768</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/8350>#8350</a>, <a href=https://github.com/necolas/normalize.css/issues/283>Normalize #283</a>, <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=337668">Chromium issue #337668</a> </td> </tr> <tr> <td>Safari (OS X) </td> <td><p>Small font size when printing webpage with fixed-width <code class=highlighter-rouge>.container</code>.</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=138192">WebKit bug #138192</a>, <a href=https://openradar.appspot.com/19435018>Apple Safari Radar #19435018</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14868>#14868</a> </td> </tr> <tr> <td>Safari (iPad) </td> <td><p><code class=highlighter-rouge>&lt;select&gt;</code> menu on iPad causes shifting of hit-testing areas</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=150079">WebKit bug #150079</a>, <a href=https://openradar.appspot.com/23082521>Apple Safari Radar #23082521</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14975>#14975</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p><code class=highlighter-rouge>transform: translate3d(0,0,0);</code> rendering bug.</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=138162">WebKit bug #138162</a>, <a href=https://openradar.appspot.com/18804973>Apple Safari Radar #18804973</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14603>#14603</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Text input’s cursor doesn’t move while scrolling the page.</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=138201">WebKit bug #138201</a>, <a href=https://openradar.appspot.com/18819624>Apple Safari Radar #18819624</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14708>#14708</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Can’t move cursor to start of text after entering long string of text into <code class=highlighter-rouge>&lt;input type="text"&gt;</code></p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=148061">WebKit bug #148061</a>, <a href=https://openradar.appspot.com/22299624>Apple Safari Radar #22299624</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/16988>#16988</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p><code class=highlighter-rouge>display: block</code> causes text of temporal <code class=highlighter-rouge>&lt;input&gt;</code>s to become vertically misaligned</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=139848">WebKit bug #139848</a>, <a href=https://openradar.appspot.com/19434878>Apple Safari Radar #19434878</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/11266>#11266</a>, <a href=https://github.com/twbs/bootstrap/issues/13098>#13098</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Tapping on <code class=highlighter-rouge>&lt;body&gt;</code> doesn’t fire <code class=highlighter-rouge>click</code> events</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=151933">WebKit bug #151933</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/16028>#16028</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p><code class=highlighter-rouge>position:fixed</code> is incorrectly positioned when tab bar is visible on iPhone 6S+ Safari</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=153056">WebKit bug #153056</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18859>#18859</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Tapping into an <code class=highlighter-rouge>&lt;input&gt;</code> within a <code class=highlighter-rouge>position:fixed</code> element scrolls to the top of the page</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=153224">WebKit bug #153224</a>, <a href=https://openradar.appspot.com/24235301>Apple Safari Radar #24235301</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17497>#17497</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p><code class=highlighter-rouge>&lt;body&gt;</code> with <code class=highlighter-rouge>overflow:hidden</code> CSS is scrollable on iOS</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=153852">WebKit bug #153852</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14839>#14839</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Scroll gesture in text field in <code class=highlighter-rouge>position:fixed</code> element sometimes scrolls <code class=highlighter-rouge>&lt;body&gt;</code> instead of scrollable ancestor</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=153856">WebKit bug #153856</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/14839>#14839</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Tapping from one <code class=highlighter-rouge>&lt;input&gt;</code> to another in an overlay can cause shaking/jiggling effect</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=158276">WebKit bug #158276</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19927>#19927</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Modal with <code class=highlighter-rouge>-webkit-overflow-scrolling: touch</code> doesn’t become scrollable after added text makes it taller</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=158342">WebKit bug #158342</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17695>#17695</a> </td> </tr> <tr> <td>Safari (iOS) </td> <td><p>Don’t make <code class=highlighter-rouge>:hover</code> sticky on touch-friendly webpages</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=158517">WebKit bug #158517</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/12832>#12832</a> </td> </tr> <tr> <td>Safari (iPad Pro) </td> <td><p>Rendering of descendants of <code class=highlighter-rouge>position: fixed</code> element gets clipped on iPad Pro in Landscape orientation</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=152637">WebKit bug #152637</a>, <a href=https://openradar.appspot.com/24030853>Apple Safari Radar #24030853</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/18738>#18738</a> </td> </tr> </tbody> </table> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=most-wanted>Most wanted features</h1> <p class=lead>There are several features specified in Web standards which would allow us to make Bootstrap more robust, elegant, or performant, but aren't yet implemented in certain browsers, thus preventing us from taking advantage of them.</p> <p>We publicly list these "most wanted" feature requests here, in the hopes of expediting the process of getting them implemented.</p> <div class=table-responsive> <table class="bs-docs-browser-bugs table table-bordered table-hover"> <thead> <tr> <th>Browser(s)</th> <th>Summary of feature</th> <th>Upstream issue(s)</th> <th>Bootstrap issue(s)</th> </tr> </thead> <tbody> <tr> <td>Microsoft Edge </td> <td><p>Implement the <a href=https://developer.mozilla.org/en-US/docs/Web/CSS/:dir><code class=highlighter-rouge>:dir()</code> pseudo-class</a> from Selectors Level 4</p> </td> <td><a href=https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/12299532>Edge UserVoice idea #12299532</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19984>#19984</a> </td> </tr> <tr> <td>Microsoft Edge </td> <td><p>Implement <a href=http://html5please.com/#position:sticky>sticky positioning</a> from CSS Positioned Layout Level 3</p> </td> <td><a href=https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/6263621>Edge UserVoice idea #6263621</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17021>#17021</a> </td> </tr> <tr> <td>Firefox </td> <td><p>Fire a <a href=https://developer.mozilla.org/en-US/docs/Web/Events/transitioncancel><code class=highlighter-rouge>transitioncancel</code> event</a> when a CSS transition is canceled</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1264125">Mozilla bug #1264125</a> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1182856">Mozilla bug #1182856</a> </td> </tr> <tr> <td>Firefox </td> <td><p>Implement the <a href="http://caniuse.com/#feat=css-nth-child-of"><code class=highlighter-rouge>of &lt;selector-list&gt;</code> clause</a> of the <code class=highlighter-rouge>:nth-child()</code> pseudo-class</p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=854148">Mozilla bug #854148</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/20143>#20143</a> </td> </tr> <tr> <td>Firefox </td> <td><p>Implement the HTML5 <a href=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog><code class=highlighter-rouge>&lt;dialog&gt;</code> element</a></p> </td> <td><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=840640">Mozilla bug #840640</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/20175>#20175</a> </td> </tr> <tr> <td>Chrome </td> <td><p>Implement the <a href="http://caniuse.com/#feat=css-nth-child-of"><code class=highlighter-rouge>of &lt;selector-list&gt;</code> clause</a> of the <code class=highlighter-rouge>:nth-child()</code> pseudo-class</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=304163">Chromium issue #304163</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/20143>#20143</a> </td> </tr> <tr> <td>Chrome </td> <td><p>Implement the <a href=https://developer.mozilla.org/en-US/docs/Web/CSS/:dir><code class=highlighter-rouge>:dir()</code> pseudo-class</a> from Selectors Level 4</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=576815">Chromium issue #576815</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19984>#19984</a> </td> </tr> <tr> <td>Chrome </td> <td><p>Implement <a href=http://html5please.com/#position:sticky>sticky positioning</a> from CSS Positioned Layout Level 3</p> </td> <td><a href="https://bugs.chromium.org/p/chromium/issues/detail?id=231752">Chromium issue #231752</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/17021>#17021</a> </td> </tr> <tr> <td>Safari </td> <td><p>Implement the <a href=https://developer.mozilla.org/en-US/docs/Web/CSS/:dir><code class=highlighter-rouge>:dir()</code> pseudo-class</a> from Selectors Level 4</p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=64861">WebKit bug #64861</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/19984>#19984</a> </td> </tr> <tr> <td>Safari </td> <td><p>Implement the HTML5 <a href=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog><code class=highlighter-rouge>&lt;dialog&gt;</code> element</a></p> </td> <td><a href="https://bugs.webkit.org/show_bug.cgi?id=84635">WebKit bug #84635</a> </td> <td><a href=https://github.com/twbs/bootstrap/issues/20175>#20175</a> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https:/getbootstrap.com/docs/3.3/browser-bugs/">
+  <meta http-equiv="refresh" content="0; url=https:/getbootstrap.com/docs/3.3/browser-bugs/">
+  <h1>Redirecting…</h1>
+  <a href="https:/getbootstrap.com/docs/3.3/browser-bugs/">Click here if you are not redirected.</a>
+  <script>location="https:/getbootstrap.com/docs/3.3/browser-bugs/"</script>
+</html>
index d03072cae3b9e5d4a5049bc7c639a888a47b71f8..45099822845a6c5d4f3ca502e5abee2caeba7316 100644 (file)
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> Components &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href="data:text/css;charset=utf-8," rel=stylesheet data-href=../dist/css/bootstrap-theme.min.css id=bs-theme-stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li class=active> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>Components</h1> <p>Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <div class=bs-docs-section> <h1 class=page-header id=glyphicons>Glyphicons</h1> <h2 id=glyphicons-glyphs>Available glyphs</h2> <p>Includes over 250 glyphs in font format from the Glyphicon Halflings set. <a href=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 <a href=http://glyphicons.com/ >Glyphicons</a> whenever possible.</p> <div class=bs-glyphicons> <ul class=bs-glyphicons-list> <li> <span class="glyphicon glyphicon-asterisk" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-asterisk</span> </li> <li> <span class="glyphicon glyphicon-plus" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-plus</span> </li> <li> <span class="glyphicon glyphicon-euro" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-euro</span> </li> <li> <span class="glyphicon glyphicon-eur" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-eur</span> </li> <li> <span class="glyphicon glyphicon-minus" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-minus</span> </li> <li> <span class="glyphicon glyphicon-cloud" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cloud</span> </li> <li> <span class="glyphicon glyphicon-envelope" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-envelope</span> </li> <li> <span class="glyphicon glyphicon-pencil" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-pencil</span> </li> <li> <span class="glyphicon glyphicon-glass" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-glass</span> </li> <li> <span class="glyphicon glyphicon-music" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-music</span> </li> <li> <span class="glyphicon glyphicon-search" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-search</span> </li> <li> <span class="glyphicon glyphicon-heart" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-heart</span> </li> <li> <span class="glyphicon glyphicon-star" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-star</span> </li> <li> <span class="glyphicon glyphicon-star-empty" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-star-empty</span> </li> <li> <span class="glyphicon glyphicon-user" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-user</span> </li> <li> <span class="glyphicon glyphicon-film" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-film</span> </li> <li> <span class="glyphicon glyphicon-th-large" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-th-large</span> </li> <li> <span class="glyphicon glyphicon-th" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-th</span> </li> <li> <span class="glyphicon glyphicon-th-list" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-th-list</span> </li> <li> <span class="glyphicon glyphicon-ok" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ok</span> </li> <li> <span class="glyphicon glyphicon-remove" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-remove</span> </li> <li> <span class="glyphicon glyphicon-zoom-in" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-zoom-in</span> </li> <li> <span class="glyphicon glyphicon-zoom-out" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-zoom-out</span> </li> <li> <span class="glyphicon glyphicon-off" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-off</span> </li> <li> <span class="glyphicon glyphicon-signal" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-signal</span> </li> <li> <span class="glyphicon glyphicon-cog" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cog</span> </li> <li> <span class="glyphicon glyphicon-trash" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-trash</span> </li> <li> <span class="glyphicon glyphicon-home" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-home</span> </li> <li> <span class="glyphicon glyphicon-file" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-file</span> </li> <li> <span class="glyphicon glyphicon-time" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-time</span> </li> <li> <span class="glyphicon glyphicon-road" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-road</span> </li> <li> <span class="glyphicon glyphicon-download-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-download-alt</span> </li> <li> <span class="glyphicon glyphicon-download" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-download</span> </li> <li> <span class="glyphicon glyphicon-upload" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-upload</span> </li> <li> <span class="glyphicon glyphicon-inbox" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-inbox</span> </li> <li> <span class="glyphicon glyphicon-play-circle" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-play-circle</span> </li> <li> <span class="glyphicon glyphicon-repeat" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-repeat</span> </li> <li> <span class="glyphicon glyphicon-refresh" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-refresh</span> </li> <li> <span class="glyphicon glyphicon-list-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-list-alt</span> </li> <li> <span class="glyphicon glyphicon-lock" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-lock</span> </li> <li> <span class="glyphicon glyphicon-flag" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-flag</span> </li> <li> <span class="glyphicon glyphicon-headphones" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-headphones</span> </li> <li> <span class="glyphicon glyphicon-volume-off" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-volume-off</span> </li> <li> <span class="glyphicon glyphicon-volume-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-volume-down</span> </li> <li> <span class="glyphicon glyphicon-volume-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-volume-up</span> </li> <li> <span class="glyphicon glyphicon-qrcode" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-qrcode</span> </li> <li> <span class="glyphicon glyphicon-barcode" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-barcode</span> </li> <li> <span class="glyphicon glyphicon-tag" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tag</span> </li> <li> <span class="glyphicon glyphicon-tags" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tags</span> </li> <li> <span class="glyphicon glyphicon-book" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-book</span> </li> <li> <span class="glyphicon glyphicon-bookmark" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bookmark</span> </li> <li> <span class="glyphicon glyphicon-print" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-print</span> </li> <li> <span class="glyphicon glyphicon-camera" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-camera</span> </li> <li> <span class="glyphicon glyphicon-font" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-font</span> </li> <li> <span class="glyphicon glyphicon-bold" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bold</span> </li> <li> <span class="glyphicon glyphicon-italic" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-italic</span> </li> <li> <span class="glyphicon glyphicon-text-height" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-text-height</span> </li> <li> <span class="glyphicon glyphicon-text-width" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-text-width</span> </li> <li> <span class="glyphicon glyphicon-align-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-align-left</span> </li> <li> <span class="glyphicon glyphicon-align-center" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-align-center</span> </li> <li> <span class="glyphicon glyphicon-align-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-align-right</span> </li> <li> <span class="glyphicon glyphicon-align-justify" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-align-justify</span> </li> <li> <span class="glyphicon glyphicon-list" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-list</span> </li> <li> <span class="glyphicon glyphicon-indent-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-indent-left</span> </li> <li> <span class="glyphicon glyphicon-indent-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-indent-right</span> </li> <li> <span class="glyphicon glyphicon-facetime-video" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-facetime-video</span> </li> <li> <span class="glyphicon glyphicon-picture" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-picture</span> </li> <li> <span class="glyphicon glyphicon-map-marker" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-map-marker</span> </li> <li> <span class="glyphicon glyphicon-adjust" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-adjust</span> </li> <li> <span class="glyphicon glyphicon-tint" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tint</span> </li> <li> <span class="glyphicon glyphicon-edit" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-edit</span> </li> <li> <span class="glyphicon glyphicon-share" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-share</span> </li> <li> <span class="glyphicon glyphicon-check" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-check</span> </li> <li> <span class="glyphicon glyphicon-move" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-move</span> </li> <li> <span class="glyphicon glyphicon-step-backward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-step-backward</span> </li> <li> <span class="glyphicon glyphicon-fast-backward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-fast-backward</span> </li> <li> <span class="glyphicon glyphicon-backward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-backward</span> </li> <li> <span class="glyphicon glyphicon-play" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-play</span> </li> <li> <span class="glyphicon glyphicon-pause" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-pause</span> </li> <li> <span class="glyphicon glyphicon-stop" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-stop</span> </li> <li> <span class="glyphicon glyphicon-forward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-forward</span> </li> <li> <span class="glyphicon glyphicon-fast-forward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-fast-forward</span> </li> <li> <span class="glyphicon glyphicon-step-forward" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-step-forward</span> </li> <li> <span class="glyphicon glyphicon-eject" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-eject</span> </li> <li> <span class="glyphicon glyphicon-chevron-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-chevron-left</span> </li> <li> <span class="glyphicon glyphicon-chevron-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-chevron-right</span> </li> <li> <span class="glyphicon glyphicon-plus-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-plus-sign</span> </li> <li> <span class="glyphicon glyphicon-minus-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-minus-sign</span> </li> <li> <span class="glyphicon glyphicon-remove-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-remove-sign</span> </li> <li> <span class="glyphicon glyphicon-ok-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ok-sign</span> </li> <li> <span class="glyphicon glyphicon-question-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-question-sign</span> </li> <li> <span class="glyphicon glyphicon-info-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-info-sign</span> </li> <li> <span class="glyphicon glyphicon-screenshot" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-screenshot</span> </li> <li> <span class="glyphicon glyphicon-remove-circle" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-remove-circle</span> </li> <li> <span class="glyphicon glyphicon-ok-circle" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ok-circle</span> </li> <li> <span class="glyphicon glyphicon-ban-circle" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ban-circle</span> </li> <li> <span class="glyphicon glyphicon-arrow-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-arrow-left</span> </li> <li> <span class="glyphicon glyphicon-arrow-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-arrow-right</span> </li> <li> <span class="glyphicon glyphicon-arrow-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-arrow-up</span> </li> <li> <span class="glyphicon glyphicon-arrow-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-arrow-down</span> </li> <li> <span class="glyphicon glyphicon-share-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-share-alt</span> </li> <li> <span class="glyphicon glyphicon-resize-full" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-resize-full</span> </li> <li> <span class="glyphicon glyphicon-resize-small" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-resize-small</span> </li> <li> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-exclamation-sign</span> </li> <li> <span class="glyphicon glyphicon-gift" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-gift</span> </li> <li> <span class="glyphicon glyphicon-leaf" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-leaf</span> </li> <li> <span class="glyphicon glyphicon-fire" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-fire</span> </li> <li> <span class="glyphicon glyphicon-eye-open" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-eye-open</span> </li> <li> <span class="glyphicon glyphicon-eye-close" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-eye-close</span> </li> <li> <span class="glyphicon glyphicon-warning-sign" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-warning-sign</span> </li> <li> <span class="glyphicon glyphicon-plane" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-plane</span> </li> <li> <span class="glyphicon glyphicon-calendar" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-calendar</span> </li> <li> <span class="glyphicon glyphicon-random" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-random</span> </li> <li> <span class="glyphicon glyphicon-comment" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-comment</span> </li> <li> <span class="glyphicon glyphicon-magnet" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-magnet</span> </li> <li> <span class="glyphicon glyphicon-chevron-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-chevron-up</span> </li> <li> <span class="glyphicon glyphicon-chevron-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-chevron-down</span> </li> <li> <span class="glyphicon glyphicon-retweet" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-retweet</span> </li> <li> <span class="glyphicon glyphicon-shopping-cart" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-shopping-cart</span> </li> <li> <span class="glyphicon glyphicon-folder-close" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-folder-close</span> </li> <li> <span class="glyphicon glyphicon-folder-open" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-folder-open</span> </li> <li> <span class="glyphicon glyphicon-resize-vertical" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-resize-vertical</span> </li> <li> <span class="glyphicon glyphicon-resize-horizontal" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-resize-horizontal</span> </li> <li> <span class="glyphicon glyphicon-hdd" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hdd</span> </li> <li> <span class="glyphicon glyphicon-bullhorn" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bullhorn</span> </li> <li> <span class="glyphicon glyphicon-bell" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bell</span> </li> <li> <span class="glyphicon glyphicon-certificate" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-certificate</span> </li> <li> <span class="glyphicon glyphicon-thumbs-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-thumbs-up</span> </li> <li> <span class="glyphicon glyphicon-thumbs-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-thumbs-down</span> </li> <li> <span class="glyphicon glyphicon-hand-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hand-right</span> </li> <li> <span class="glyphicon glyphicon-hand-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hand-left</span> </li> <li> <span class="glyphicon glyphicon-hand-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hand-up</span> </li> <li> <span class="glyphicon glyphicon-hand-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hand-down</span> </li> <li> <span class="glyphicon glyphicon-circle-arrow-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-circle-arrow-right</span> </li> <li> <span class="glyphicon glyphicon-circle-arrow-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-circle-arrow-left</span> </li> <li> <span class="glyphicon glyphicon-circle-arrow-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-circle-arrow-up</span> </li> <li> <span class="glyphicon glyphicon-circle-arrow-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-circle-arrow-down</span> </li> <li> <span class="glyphicon glyphicon-globe" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-globe</span> </li> <li> <span class="glyphicon glyphicon-wrench" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-wrench</span> </li> <li> <span class="glyphicon glyphicon-tasks" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tasks</span> </li> <li> <span class="glyphicon glyphicon-filter" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-filter</span> </li> <li> <span class="glyphicon glyphicon-briefcase" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-briefcase</span> </li> <li> <span class="glyphicon glyphicon-fullscreen" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-fullscreen</span> </li> <li> <span class="glyphicon glyphicon-dashboard" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-dashboard</span> </li> <li> <span class="glyphicon glyphicon-paperclip" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-paperclip</span> </li> <li> <span class="glyphicon glyphicon-heart-empty" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-heart-empty</span> </li> <li> <span class="glyphicon glyphicon-link" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-link</span> </li> <li> <span class="glyphicon glyphicon-phone" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-phone</span> </li> <li> <span class="glyphicon glyphicon-pushpin" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-pushpin</span> </li> <li> <span class="glyphicon glyphicon-usd" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-usd</span> </li> <li> <span class="glyphicon glyphicon-gbp" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-gbp</span> </li> <li> <span class="glyphicon glyphicon-sort" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort</span> </li> <li> <span class="glyphicon glyphicon-sort-by-alphabet" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-alphabet</span> </li> <li> <span class="glyphicon glyphicon-sort-by-alphabet-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-alphabet-alt</span> </li> <li> <span class="glyphicon glyphicon-sort-by-order" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-order</span> </li> <li> <span class="glyphicon glyphicon-sort-by-order-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-order-alt</span> </li> <li> <span class="glyphicon glyphicon-sort-by-attributes" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-attributes</span> </li> <li> <span class="glyphicon glyphicon-sort-by-attributes-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sort-by-attributes-alt</span> </li> <li> <span class="glyphicon glyphicon-unchecked" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-unchecked</span> </li> <li> <span class="glyphicon glyphicon-expand" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-expand</span> </li> <li> <span class="glyphicon glyphicon-collapse-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-collapse-down</span> </li> <li> <span class="glyphicon glyphicon-collapse-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-collapse-up</span> </li> <li> <span class="glyphicon glyphicon-log-in" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-log-in</span> </li> <li> <span class="glyphicon glyphicon-flash" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-flash</span> </li> <li> <span class="glyphicon glyphicon-log-out" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-log-out</span> </li> <li> <span class="glyphicon glyphicon-new-window" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-new-window</span> </li> <li> <span class="glyphicon glyphicon-record" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-record</span> </li> <li> <span class="glyphicon glyphicon-save" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-save</span> </li> <li> <span class="glyphicon glyphicon-open" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-open</span> </li> <li> <span class="glyphicon glyphicon-saved" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-saved</span> </li> <li> <span class="glyphicon glyphicon-import" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-import</span> </li> <li> <span class="glyphicon glyphicon-export" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-export</span> </li> <li> <span class="glyphicon glyphicon-send" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-send</span> </li> <li> <span class="glyphicon glyphicon-floppy-disk" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-floppy-disk</span> </li> <li> <span class="glyphicon glyphicon-floppy-saved" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-floppy-saved</span> </li> <li> <span class="glyphicon glyphicon-floppy-remove" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-floppy-remove</span> </li> <li> <span class="glyphicon glyphicon-floppy-save" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-floppy-save</span> </li> <li> <span class="glyphicon glyphicon-floppy-open" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-floppy-open</span> </li> <li> <span class="glyphicon glyphicon-credit-card" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-credit-card</span> </li> <li> <span class="glyphicon glyphicon-transfer" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-transfer</span> </li> <li> <span class="glyphicon glyphicon-cutlery" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cutlery</span> </li> <li> <span class="glyphicon glyphicon-header" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-header</span> </li> <li> <span class="glyphicon glyphicon-compressed" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-compressed</span> </li> <li> <span class="glyphicon glyphicon-earphone" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-earphone</span> </li> <li> <span class="glyphicon glyphicon-phone-alt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-phone-alt</span> </li> <li> <span class="glyphicon glyphicon-tower" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tower</span> </li> <li> <span class="glyphicon glyphicon-stats" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-stats</span> </li> <li> <span class="glyphicon glyphicon-sd-video" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sd-video</span> </li> <li> <span class="glyphicon glyphicon-hd-video" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hd-video</span> </li> <li> <span class="glyphicon glyphicon-subtitles" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-subtitles</span> </li> <li> <span class="glyphicon glyphicon-sound-stereo" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sound-stereo</span> </li> <li> <span class="glyphicon glyphicon-sound-dolby" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sound-dolby</span> </li> <li> <span class="glyphicon glyphicon-sound-5-1" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sound-5-1</span> </li> <li> <span class="glyphicon glyphicon-sound-6-1" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sound-6-1</span> </li> <li> <span class="glyphicon glyphicon-sound-7-1" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sound-7-1</span> </li> <li> <span class="glyphicon glyphicon-copyright-mark" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-copyright-mark</span> </li> <li> <span class="glyphicon glyphicon-registration-mark" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-registration-mark</span> </li> <li> <span class="glyphicon glyphicon-cloud-download" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cloud-download</span> </li> <li> <span class="glyphicon glyphicon-cloud-upload" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cloud-upload</span> </li> <li> <span class="glyphicon glyphicon-tree-conifer" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tree-conifer</span> </li> <li> <span class="glyphicon glyphicon-tree-deciduous" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tree-deciduous</span> </li> <li> <span class="glyphicon glyphicon-cd" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-cd</span> </li> <li> <span class="glyphicon glyphicon-save-file" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-save-file</span> </li> <li> <span class="glyphicon glyphicon-open-file" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-open-file</span> </li> <li> <span class="glyphicon glyphicon-level-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-level-up</span> </li> <li> <span class="glyphicon glyphicon-copy" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-copy</span> </li> <li> <span class="glyphicon glyphicon-paste" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-paste</span> </li> <li> <span class="glyphicon glyphicon-alert" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-alert</span> </li> <li> <span class="glyphicon glyphicon-equalizer" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-equalizer</span> </li> <li> <span class="glyphicon glyphicon-king" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-king</span> </li> <li> <span class="glyphicon glyphicon-queen" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-queen</span> </li> <li> <span class="glyphicon glyphicon-pawn" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-pawn</span> </li> <li> <span class="glyphicon glyphicon-bishop" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bishop</span> </li> <li> <span class="glyphicon glyphicon-knight" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-knight</span> </li> <li> <span class="glyphicon glyphicon-baby-formula" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-baby-formula</span> </li> <li> <span class="glyphicon glyphicon-tent" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-tent</span> </li> <li> <span class="glyphicon glyphicon-blackboard" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-blackboard</span> </li> <li> <span class="glyphicon glyphicon-bed" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bed</span> </li> <li> <span class="glyphicon glyphicon-apple" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-apple</span> </li> <li> <span class="glyphicon glyphicon-erase" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-erase</span> </li> <li> <span class="glyphicon glyphicon-hourglass" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-hourglass</span> </li> <li> <span class="glyphicon glyphicon-lamp" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-lamp</span> </li> <li> <span class="glyphicon glyphicon-duplicate" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-duplicate</span> </li> <li> <span class="glyphicon glyphicon-piggy-bank" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-piggy-bank</span> </li> <li> <span class="glyphicon glyphicon-scissors" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-scissors</span> </li> <li> <span class="glyphicon glyphicon-bitcoin" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-bitcoin</span> </li> <li> <span class="glyphicon glyphicon-btc" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-btc</span> </li> <li> <span class="glyphicon glyphicon-xbt" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-xbt</span> </li> <li> <span class="glyphicon glyphicon-yen" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-yen</span> </li> <li> <span class="glyphicon glyphicon-jpy" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-jpy</span> </li> <li> <span class="glyphicon glyphicon-ruble" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ruble</span> </li> <li> <span class="glyphicon glyphicon-rub" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-rub</span> </li> <li> <span class="glyphicon glyphicon-scale" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-scale</span> </li> <li> <span class="glyphicon glyphicon-ice-lolly" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ice-lolly</span> </li> <li> <span class="glyphicon glyphicon-ice-lolly-tasted" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-ice-lolly-tasted</span> </li> <li> <span class="glyphicon glyphicon-education" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-education</span> </li> <li> <span class="glyphicon glyphicon-option-horizontal" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-option-horizontal</span> </li> <li> <span class="glyphicon glyphicon-option-vertical" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-option-vertical</span> </li> <li> <span class="glyphicon glyphicon-menu-hamburger" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-menu-hamburger</span> </li> <li> <span class="glyphicon glyphicon-modal-window" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-modal-window</span> </li> <li> <span class="glyphicon glyphicon-oil" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-oil</span> </li> <li> <span class="glyphicon glyphicon-grain" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-grain</span> </li> <li> <span class="glyphicon glyphicon-sunglasses" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-sunglasses</span> </li> <li> <span class="glyphicon glyphicon-text-size" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-text-size</span> </li> <li> <span class="glyphicon glyphicon-text-color" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-text-color</span> </li> <li> <span class="glyphicon glyphicon-text-background" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-text-background</span> </li> <li> <span class="glyphicon glyphicon-object-align-top" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-top</span> </li> <li> <span class="glyphicon glyphicon-object-align-bottom" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-bottom</span> </li> <li> <span class="glyphicon glyphicon-object-align-horizontal" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-horizontal</span> </li> <li> <span class="glyphicon glyphicon-object-align-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-left</span> </li> <li> <span class="glyphicon glyphicon-object-align-vertical" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-vertical</span> </li> <li> <span class="glyphicon glyphicon-object-align-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-object-align-right</span> </li> <li> <span class="glyphicon glyphicon-triangle-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-triangle-right</span> </li> <li> <span class="glyphicon glyphicon-triangle-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-triangle-left</span> </li> <li> <span class="glyphicon glyphicon-triangle-bottom" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-triangle-bottom</span> </li> <li> <span class="glyphicon glyphicon-triangle-top" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-triangle-top</span> </li> <li> <span class="glyphicon glyphicon-console" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-console</span> </li> <li> <span class="glyphicon glyphicon-superscript" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-superscript</span> </li> <li> <span class="glyphicon glyphicon-subscript" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-subscript</span> </li> <li> <span class="glyphicon glyphicon-menu-left" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-menu-left</span> </li> <li> <span class="glyphicon glyphicon-menu-right" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-menu-right</span> </li> <li> <span class="glyphicon glyphicon-menu-down" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-menu-down</span> </li> <li> <span class="glyphicon glyphicon-menu-up" aria-hidden=true></span> <span class=glyphicon-class>glyphicon glyphicon-menu-up</span> </li> </ul> </div> <h2 id=glyphicons-how-to-use>How to use</h2> <p>For performance reasons, all icons require a base class and individual icon class. To use, place the following code just about anywhere. Be sure to leave a space between the icon and text for proper padding.</p> <div class="bs-callout bs-callout-danger" id=callout-glyphicons-dont-mix> <h4>Don't mix with other components</h4> <p>Icon classes cannot be directly combined with other components. They should not be used along with other classes on the same element. Instead, add a nested <code>&lt;span&gt;</code> and apply the icon classes to the <code>&lt;span&gt;</code>.</p> </div> <div class="bs-callout bs-callout-danger" id=callout-glyphicons-empty-only> <h4>Only for use on empty elements</h4> <p>Icon classes should only be used on elements that contain no text content and have no child elements.</p> </div> <div class="bs-callout bs-callout-info" id=callout-glyphicons-location> <h4>Changing the icon font location</h4> <p>Bootstrap assumes icon font files will be located in the <code>../fonts/</code> directory, relative to the compiled CSS files. Moving or renaming those font files means updating the CSS in one of three ways:</p> <ul> <li>Change the <code>@icon-font-path</code> and/or <code>@icon-font-name</code> variables in the source Less files.</li> <li>Utilize the <a href=http://lesscss.org/usage/#command-line-usage-relative-urls>relative URLs option</a> provided by the Less compiler.</li> <li>Change the <code>url()</code> paths in the compiled CSS.</li> </ul> <p>Use whatever option best suits your specific development setup.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-glyphicons-accessibility> <h4>Accessible icons</h4> <p>Modern versions of assistive technologies will announce CSS generated content, as well as specific Unicode characters. To avoid unintended and confusing output in screen readers (particularly when icons are used purely for decoration), we hide them with the <code>aria-hidden="true"</code> attribute.</p> <p>If you're using an icon to convey meaning (rather than only as a decorative element), ensure that this meaning is also conveyed to assistive technologies – for instance, include additional content, visually hidden with the <code>.sr-only</code> class.</p> <p>If you're creating controls with no other text (such as a <code>&lt;button&gt;</code> that only contains an icon), you should always provide alternative content to identify the purpose of the control, so that it will make sense to users of assistive technologies. In this case, you could add an <code>aria-label</code> attribute on the control itself.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-search"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span></code></pre></figure> <h2 id=glyphicons-examples>Examples</h2> <p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p> <div class=bs-example data-example-id=glyphicons-general> <div class=btn-toolbar role=toolbar> <div class=btn-group> <button type=button class="btn btn-default" aria-label="Left Align"><span class="glyphicon glyphicon-align-left" aria-hidden=true></span></button> <button type=button class="btn btn-default" aria-label="Center Align"><span class="glyphicon glyphicon-align-center" aria-hidden=true></span></button> <button type=button class="btn btn-default" aria-label="Right Align"><span class="glyphicon glyphicon-align-right" aria-hidden=true></span></button> <button type=button class="btn btn-default" aria-label=Justify><span class="glyphicon glyphicon-align-justify" aria-hidden=true></span></button> </div> </div> <div class=btn-toolbar role=toolbar> <button type=button class="btn btn-default btn-lg"><span class="glyphicon glyphicon-star" aria-hidden=true></span> Star</button> <button type=button class="btn btn-default"><span class="glyphicon glyphicon-star" aria-hidden=true></span> Star</button> <button type=button class="btn btn-default btn-sm"><span class="glyphicon glyphicon-star" aria-hidden=true></span> Star</button> <button type=button class="btn btn-default btn-xs"><span class="glyphicon glyphicon-star" aria-hidden=true></span> Star</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>aria-label=</span><span class=s>"Left Align"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-align-left"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-star"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span> Star
-<span class=nt>&lt;/button&gt;</span></code></pre></figure> <p>An icon used in an <a href=#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> <div class=bs-example data-example-id=glyphicons-accessibility> <div class="alert alert-danger" role=alert> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden=true></span> <span class=sr-only>Error:</span> Enter a valid email address </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-danger"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-exclamation-sign"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Error:<span class=nt>&lt;/span&gt;</span>
-  Enter a valid email address
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=dropdowns>Dropdowns</h1> <p class=lead>Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href=../javascript/#dropdowns>dropdown JavaScript plugin</a>.</p> <h2 id=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> <div class=bs-example data-example-id=static-dropdown> <div class="dropdown clearfix"> <button class="btn btn-default dropdown-toggle" type=button id=dropdownMenu1 data-toggle=dropdown aria-haspopup=true aria-expanded=true> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=dropdownMenu1> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>id=</span><span class=s>"dropdownMenu1"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"true"</span><span class=nt>&gt;</span>
-    Dropdown
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dropdownMenu1"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</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> <div class=bs-example data-example-id=static-dropup> <div class="dropup clearfix"> <button class="btn btn-default dropdown-toggle" type=button id=dropdownMenu2 data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropup <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=dropdownMenu2> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"dropup"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>id=</span><span class=s>"dropdownMenu2"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Dropup
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dropdownMenu2"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class="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> <div class="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> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu dropdown-menu-right"</span> <span class=na>aria-labelledby=</span><span class=s>"dLabel"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=dropdowns-headers>Headers</h2> <p>Add a header to label sections of actions in any dropdown menu.</p> <div class=bs-example> <div class="dropdown clearfix"> <button class="btn btn-default dropdown-toggle" type=button id=dropdownMenu3 data-toggle=dropdown aria-haspopup=true aria-expanded=true> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=dropdownMenu3> <li class=dropdown-header>Dropdown header</li> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li class=dropdown-header>Dropdown header</li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dropdownMenu3"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"dropdown-header"</span><span class=nt>&gt;</span>Dropdown header<span class=nt>&lt;/li&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=dropdowns-divider>Divider</h2> <p>Add a divider to separate series of links in a dropdown menu.</p> <div class=bs-example> <div class="dropdown clearfix"> <button class="btn btn-default dropdown-toggle" type=button id=dropdownMenuDivider data-toggle=dropdown aria-haspopup=true aria-expanded=true> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=dropdownMenuDivider> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dropdownMenuDivider"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=dropdowns-disabled>Disabled menu items</h2> <p>Add <code>.disabled</code> to a <code>&lt;li&gt;</code> in the dropdown to disable the link.</p> <div class=bs-example> <div class="dropdown clearfix"> <button class="btn btn-default dropdown-toggle" type=button id=dropdownMenu4 data-toggle=dropdown aria-haspopup=true aria-expanded=true> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=dropdownMenu4> <li><a href=#>Regular link</a></li> <li class=disabled><a href=#>Disabled link</a></li> <li><a href=#>Another link</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dropdownMenu4"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Regular link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"disabled"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Disabled link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=btn-groups>Button groups</h1> <p class=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 <a href=../javascript/#buttons>our buttons plugin</a>.</p> <div class="bs-callout bs-callout-warning" id=callout-btn-group-tooltips> <h4>Tooltips &amp; 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> <div class="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 <a href=#btn-groups-justified>justified button groups</a> with <code>&lt;button&gt;</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> <h2 id=btn-groups-single>Basic example</h2> <p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p> <div class=bs-example data-example-id=simple-button-group> <div class=btn-group role=group aria-label="Basic example"> <button type=button class="btn btn-default">Left</button> <button type=button class="btn btn-default">Middle</button> <button type=button class="btn btn-default">Right</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Left<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Middle<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Right<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=btn-groups-toolbar>Button toolbar</h2> <p>Combine sets of <code>&lt;div class="btn-group"&gt;</code> into a <code>&lt;div class="btn-toolbar"&gt;</code> for more complex components.</p> <div class=bs-example data-example-id=simple-button-toolbar> <div class=btn-toolbar role=toolbar aria-label="Toolbar with button groups"> <div class=btn-group role=group aria-label="First group"> <button type=button class="btn btn-default">1</button> <button type=button class="btn btn-default">2</button> <button type=button class="btn btn-default">3</button> <button type=button class="btn btn-default">4</button> </div> <div class=btn-group role=group aria-label="Second group"> <button type=button class="btn btn-default">5</button> <button type=button class="btn btn-default">6</button> <button type=button class="btn btn-default">7</button> </div> <div class=btn-group role=group aria-label="Third group"> <button type=button class="btn btn-default">8</button> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-toolbar"</span> <span class=na>role=</span><span class=s>"toolbar"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=button-group-sizing> <div class="btn-group btn-group-lg" role=group aria-label="Large button group"> <button type=button class="btn btn-default">Left</button> <button type=button class="btn btn-default">Middle</button> <button type=button class="btn btn-default">Right</button> </div> <br> <div class=btn-group role=group aria-label="Default button group"> <button type=button class="btn btn-default">Left</button> <button type=button class="btn btn-default">Middle</button> <button type=button class="btn btn-default">Right</button> </div> <br> <div class="btn-group btn-group-sm" role=group aria-label="Small button group"> <button type=button class="btn btn-default">Left</button> <button type=button class="btn btn-default">Middle</button> <button type=button class="btn btn-default">Right</button> </div> <br> <div class="btn-group btn-group-xs" role=group aria-label="Extra-small button group"> <button type=button class="btn btn-default">Left</button> <button type=button class="btn btn-default">Middle</button> <button type=button class="btn btn-default">Right</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group btn-group-lg"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group btn-group-sm"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group btn-group-xs"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=button-group-nesting> <div class=btn-group role=group aria-label="Button group with nested dropdown"> <button type=button class="btn btn-default">1</button> <button type=button class="btn btn-default">2</button> <div class=btn-group role=group> <button id=btnGroupDrop1 type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=btnGroupDrop1> <li><a href=#>Dropdown link</a></li> <li><a href=#>Dropdown link</a></li> </ul> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>1<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>2<span class=nt>&lt;/button&gt;</span>
-
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-      Dropdown
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;/button&gt;</span>
-    <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Dropdown link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-      <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Dropdown link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;/ul&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=btn-groups-vertical>Vertical variation</h2> <p>Make a set of buttons appear vertically stacked rather than horizontally. <strong class=text-danger>Split button dropdowns are not supported here.</strong></p> <div class=bs-example data-example-id=vertical-button-group> <div class=btn-group-vertical role=group aria-label="Vertical button group"> <button type=button class="btn btn-default">Button</button> <button type=button class="btn btn-default">Button</button> <div class=btn-group role=group> <button id=btnGroupVerticalDrop1 type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=btnGroupVerticalDrop1> <li><a href=#>Dropdown link</a></li> <li><a href=#>Dropdown link</a></li> </ul> </div> <button type=button class="btn btn-default">Button</button> <button type=button class="btn btn-default">Button</button> <div class=btn-group role=group> <button id=btnGroupVerticalDrop2 type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=btnGroupVerticalDrop2> <li><a href=#>Dropdown link</a></li> <li><a href=#>Dropdown link</a></li> </ul> </div> <div class=btn-group role=group> <button id=btnGroupVerticalDrop3 type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=btnGroupVerticalDrop3> <li><a href=#>Dropdown link</a></li> <li><a href=#>Dropdown link</a></li> </ul> </div> <div class=btn-group role=group> <button id=btnGroupVerticalDrop4 type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </button> <ul class=dropdown-menu aria-labelledby=btnGroupVerticalDrop4> <li><a href=#>Dropdown link</a></li> <li><a href=#>Dropdown link</a></li> </ul> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group-vertical"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class="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> <div class="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>&lt;a&gt;</code> or <code>&lt;button&gt;</code> elements. To get around that, wrap each button in another <code>.btn-group</code>.</p> <p>See <a href=https://github.com/twbs/bootstrap/issues/12476>#12476</a> for more information.</p> </div> <h4>With <code>&lt;a&gt;</code> elements</h4> <p>Just wrap a series of <code>.btn</code>s in <code>.btn-group.btn-group-justified</code>.</p> <div class=bs-example data-example-id=simple-justified-button-group> <div class="btn-group btn-group-justified" role=group aria-label="Justified button group"> <a href=# class="btn btn-default" role=button>Left</a> <a href=# class="btn btn-default" role=button>Middle</a> <a href=# class="btn btn-default" role=button>Right</a> </div> <br> <div class="btn-group btn-group-justified" role=group aria-label="Justified button group with nested dropdown"> <a href=# class="btn btn-default" role=button>Left</a> <a href=# class="btn btn-default" role=button>Middle</a> <div class=btn-group role=group> <a href=# class="btn btn-default dropdown-toggle" data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group btn-group-justified"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-btn-group-anchor-btn> <h4>Links acting as buttons</h4> <p>If the <code>&lt;a&gt;</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>&lt;button&gt;</code> elements</h4> <p>To use justified button groups with <code>&lt;button&gt;</code> elements, <strong class=text-danger>you must wrap each button in a button group</strong>. Most browsers don't properly apply our CSS for justification to <code>&lt;button&gt;</code> elements, but since we support button dropdowns, we can work around that.</p> <div class=bs-example data-example-id=button-tag-button-group-justified> <div class="btn-group btn-group-justified" role=group aria-label="Justified button group"> <div class=btn-group role=group> <button type=button class="btn btn-default">Left</button> </div> <div class=btn-group role=group> <button type=button class="btn btn-default">Middle</button> </div> <div class=btn-group role=group> <button type=button class="btn btn-default">Right</button> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group btn-group-justified"</span> <span class=na>role=</span><span class=s>"group"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Left<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Middle<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>role=</span><span class=s>"group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Right<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=btn-dropdowns>Button dropdowns</h1> <p class=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> <div class="bs-callout bs-callout-danger" id=callout-btndropdown-dependency> <h4>Plugin dependency</h4> <p>Button dropdowns require the <a href=../javascript/#dropdowns>dropdown plugin</a> to be included in your version of Bootstrap.</p> </div> <h2 id=btn-dropdowns-single>Single button dropdowns</h2> <p>Turn a button into a dropdown toggle with some basic markup changes.</p> <div class=bs-example data-example-id=single-button-dropdown> <div class=btn-group> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Default <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-primary dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Primary <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-success dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Success <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-info dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Info <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-warning dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Warning <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-danger dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Danger <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Single button --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Action <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=btn-dropdowns-split>Split button dropdowns</h2> <p>Similarly, create split button dropdowns with the same markup changes, only with a separate button.</p> <div class=bs-example data-example-id=split-button-dropdown> <div class=btn-group> <button type=button class="btn btn-default">Default</button> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-primary">Primary</button> <button type=button class="btn btn-primary dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-success">Success</button> <button type=button class="btn btn-success dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-info">Info</button> <button type=button class="btn btn-info dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-warning">Warning</button> <button type=button class="btn btn-warning dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class=btn-group> <button type=button class="btn btn-danger">Danger</button> <button type=button class="btn btn-danger dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Split button --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-danger"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-danger dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Toggle Dropdown<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=btn-dropdowns-sizing>Sizing</h2> <p>Button dropdowns work with buttons of all sizes.</p> <div class=bs-example data-example-id=button-dropdown-sizing> <div class=btn-toolbar role=toolbar> <div class=btn-group> <button class="btn btn-default btn-lg dropdown-toggle" type=button data-toggle=dropdown aria-haspopup=true aria-expanded=false> Large button <span class=caret></span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <div class=btn-toolbar role=toolbar> <div class=btn-group> <button class="btn btn-default btn-sm dropdown-toggle" type=button data-toggle=dropdown aria-haspopup=true aria-expanded=false> Small button <span class=caret></span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> <div class=btn-toolbar role=toolbar> <div class=btn-group> <button class="btn btn-default btn-xs dropdown-toggle" type=button data-toggle=dropdown aria-haspopup=true aria-expanded=false> Extra small button <span class=caret></span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Large button group --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg dropdown-toggle"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Large button <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- Small button group --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default btn-sm dropdown-toggle"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Small button <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- Extra small button group --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default btn-xs dropdown-toggle"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Extra small button <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=btn-dropdowns-dropup>Dropup variation</h2> <p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p> <div class=bs-example data-example-id=button-dropdown-dropup> <div class=btn-toolbar role=toolbar> <div class="btn-group dropup"> <button type=button class="btn btn-default">Dropup</button> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <div class="btn-group dropup"> <button type=button class="btn btn-primary">Right dropup</button> <button type=button class="btn btn-primary dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class="dropdown-menu dropdown-menu-right"> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group dropup"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Dropup<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Toggle Dropdown<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Dropdown menu links --&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=input-groups>Input groups</h1> <p class=lead>Extend form controls by adding text or buttons before, after, or on both sides of any text-based <code>&lt;input&gt;</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> <div class="bs-callout bs-callout-danger" id=callout-inputgroup-text-input-only> <h4>Textual <code>&lt;input&gt;</code>s only</h4> <p>Avoid using <code>&lt;select&gt;</code> elements here as they cannot be fully styled in WebKit browsers.</p> <p>Avoid using <code>&lt;textarea&gt;</code> elements here as their <code>rows</code> attribute will not be respected in some cases.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-inputgroup-container-body> <h4>Tooltips &amp; 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> <div class="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> <div class="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>&lt;label&gt;</code> elements, <code>&lt;label&gt;</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> <h2 id=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><strong class=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><strong class=text-danger>We do not support multiple form-controls in a single input group.</strong></p> <form class="bs-example bs-example-form" data-example-id=simple-input-groups> <div class=input-group> <span class=input-group-addon id=basic-addon1>@</span> <input class=form-control placeholder=Username aria-describedby=basic-addon1> </div> <br> <div class=input-group> <input class=form-control placeholder="Recipient's username" aria-describedby=basic-addon2> <span class=input-group-addon id=basic-addon2>@example.com</span> </div> <br> <div class=input-group> <span class=input-group-addon>$</span> <input class=form-control aria-label="Amount (to the nearest dollar)"> <span class=input-group-addon>.00</span> </div> <br> <label for=basic-url>Your vanity URL</label> <div class=input-group> <span class=input-group-addon id=basic-addon3>https://example.com/users/</span> <input class=form-control id=basic-url aria-describedby=basic-addon3> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"basic-addon1"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Username"</span> <span class=na>aria-describedby=</span><span class=s>"basic-addon1"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Recipient's username"</span> <span class=na>aria-describedby=</span><span class=s>"basic-addon2"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"basic-addon2"</span><span class=nt>&gt;</span>@example.com<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>$<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"Amount (to the nearest dollar)"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>.00<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"basic-url"</span><span class=nt>&gt;</span>Your vanity URL<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"basic-addon3"</span><span class=nt>&gt;</span>https://example.com/users/<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"basic-url"</span> <span class=na>aria-describedby=</span><span class=s>"basic-addon3"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <form class="bs-example bs-example-form" data-example-id=input-group-sizing> <div class="input-group input-group-lg"> <span class=input-group-addon id=sizing-addon1>@</span> <input class=form-control placeholder=Username aria-describedby=sizing-addon1> </div> <br> <div class=input-group> <span class=input-group-addon id=sizing-addon2>@</span> <input class=form-control placeholder=Username aria-describedby=sizing-addon2> </div> <br> <div class="input-group input-group-sm"> <span class=input-group-addon id=sizing-addon3>@</span> <input class=form-control placeholder=Username aria-describedby=sizing-addon3> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group input-group-lg"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"sizing-addon1"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Username"</span> <span class=na>aria-describedby=</span><span class=s>"sizing-addon1"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"sizing-addon2"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Username"</span> <span class=na>aria-describedby=</span><span class=s>"sizing-addon2"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group input-group-sm"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span> <span class=na>id=</span><span class=s>"sizing-addon3"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Username"</span> <span class=na>aria-describedby=</span><span class=s>"sizing-addon3"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <form class="bs-example bs-example-form" data-example-id=input-group-with-checkbox-radio> <div class=row> <div class=col-lg-6> <div class=input-group> <span class=input-group-addon> <input type=checkbox aria-label="Checkbox for following text input"> </span> <input class=form-control aria-label="Text input with checkbox"> </div> </div> <div class=col-lg-6> <div class=input-group> <span class=input-group-addon> <input type=radio aria-label="Radio button for following text input"> </span> <input class=form-control aria-label="Text input with radio button"> </div> </div> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-<span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.row --&gt;</span></code></pre></figure> <h2 id=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> <form class="bs-example bs-example-form" data-example-id=input-group-with-button> <div class=row> <div class=col-lg-6> <div class=input-group> <span class=input-group-btn> <button class="btn btn-default" type=button>Go!</button> </span> <input class=form-control placeholder="Search for..."> </div> </div> <div class=col-lg-6> <div class=input-group> <input class=form-control placeholder="Search for..."> <span class=input-group-btn> <button class="btn btn-default" type=button>Go!</button> </span> </div> </div> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>type=</span><span class=s>"button"</span><span class=nt>&gt;</span>Go!<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Search for..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Search for..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>type=</span><span class=s>"button"</span><span class=nt>&gt;</span>Go!<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-<span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.row --&gt;</span></code></pre></figure> <h2 id=input-groups-buttons-dropdowns>Buttons with dropdowns</h2> <form class="bs-example bs-example-form" data-example-id=input-group-dropdowns> <div class=row> <div class=col-lg-6> <div class=input-group> <div class=input-group-btn> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Action <span class=caret></span></button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <input class=form-control aria-label="Text input with dropdown button"> </div> </div> <div class=col-lg-6> <div class=input-group> <input class=form-control aria-label="Text input with dropdown button"> <div class=input-group-btn> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false>Action <span class=caret></span></button> <ul class="dropdown-menu dropdown-menu-right"> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> </div> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>Action <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-        <span class=nt>&lt;/ul&gt;</span>
-      <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /btn-group --&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-lg-6"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>Action <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu dropdown-menu-right"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-        <span class=nt>&lt;/ul&gt;</span>
-      <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /btn-group --&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /input-group --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.col-lg-6 --&gt;</span>
-<span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.row --&gt;</span></code></pre></figure> <h2 id=input-groups-buttons-segmented>Segmented buttons</h2> <form class="bs-example bs-example-form" data-example-id=input-group-segmented-buttons> <div class=row> <div class=col-lg-6> <div class=input-group> <div class=input-group-btn> <button type=button class="btn btn-default">Action</button> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> <input class=form-control aria-label="Text input with segmented button dropdown"> </div> </div> <div class=col-lg-6> <div class=input-group> <input class=form-control aria-label="Text input with segmented button dropdown"> <div class=input-group-btn> <button type=button class="btn btn-default">Action</button> <button type=button class="btn btn-default dropdown-toggle" data-toggle=dropdown aria-haspopup=true aria-expanded=false> <span class=caret></span> <span class=sr-only>Toggle Dropdown</span> </button> <ul class="dropdown-menu dropdown-menu-right"> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </div> </div> </div> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Button and dropdown menu --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Button and dropdown menu --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <form class="bs-example bs-example-form" data-example-id=input-group-multiple-buttons> <div class=row> <div class=col-lg-6> <div class=input-group> <div class=input-group-btn> <button type=button class="btn btn-default" aria-label=Bold><span class="glyphicon glyphicon-bold"></span></button> <button type=button class="btn btn-default" aria-label=Italic><span class="glyphicon glyphicon-italic"></span></button> </div> <input class=form-control aria-label="Text input with multiple buttons"> </div> </div> <div class=col-lg-6> <div class=input-group> <input class=form-control aria-label="Text input with multiple buttons"> <div class=input-group-btn> <button type=button class="btn btn-default" aria-label=Help><span class="glyphicon glyphicon-question-sign"></span></button> <button type=button class="btn btn-default">Action</button> </div> </div> </div> </div> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Buttons --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-btn"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Buttons --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=nav>Navs</h1> <p class=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> <div class="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 <a href=../javascript/#tabs>tabs JavaScript plugin</a>. The markup will also require additional <code>role</code> and ARIA attributes – see the plugin's <a href=../javascript/#tabs-usage>example markup</a> for further details.</p> </div> <div class="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>&lt;ul&gt;</code>, or wrap a <code>&lt;nav&gt;</code> element around the whole navigation. Do not add the role to the <code>&lt;ul&gt;</code> itself, as this would prevent it from being announced as an actual list by assistive technologies.</p> </div> <h2 id=nav-tabs>Tabs</h2> <p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p> <div class=bs-example data-example-id=simple-nav-tabs> <ul class="nav nav-tabs"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages</a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-tabs"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Home<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Profile<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Messages<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=nav-pills>Pills</h2> <p>Take that same HTML, but use <code>.nav-pills</code> instead:</p> <div class=bs-example data-example-id=simple-nav-pills> <ul class="nav nav-pills"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages</a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Home<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Profile<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Messages<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p> <div class=bs-example data-example-id=simple-nav-stacked> <ul class="nav nav-pills nav-stacked nav-pills-stacked-example"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages</a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills nav-stacked"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=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><strong class=text-danger>Justified navbar nav links are currently not supported.</strong></p> <div class="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 <a href=../examples/justified-nav/ >justified nav example</a>.</p> </div> <div class=bs-example data-example-id=simple-nav-justified> <ul class="nav nav-tabs nav-justified"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages</a></li> </ul> <br> <ul class="nav nav-pills nav-justified"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages</a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-tabs nav-justified"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills nav-justified"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=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> <div class="bs-callout bs-callout-warning" id=callout-navs-anchor-disabled> <h4>Link functionality not impacted</h4> <p>This class will only change the <code>&lt;a&gt;</code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p> </div> <div class=bs-example data-example-id=disabled-nav-link> <ul class="nav nav-pills"> <li role=presentation><a href=#>Clickable link</a></li> <li role=presentation><a href=#>Clickable link</a></li> <li role=presentation class=disabled><a href=#>Disabled link</a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"disabled"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Disabled link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=nav-dropdowns>Using dropdowns</h2> <p>Add dropdown menus with a little extra HTML and the <a href=../javascript/#dropdowns>dropdowns JavaScript plugin</a>.</p> <h3>Tabs with dropdowns</h3> <div class=bs-example data-example-id=nav-tabs-with-dropdown> <ul class="nav nav-tabs"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Help</a></li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-tabs"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-      Dropdown <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-      ...
-    <span class=nt>&lt;/ul&gt;</span>
-  <span class=nt>&lt;/li&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h3>Pills with dropdowns</h3> <div class=bs-example data-example-id=nav-pills-with-dropdown> <ul class="nav nav-pills"> <li role=presentation class=active><a href=#>Home</a></li> <li role=presentation><a href=#>Help</a></li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-      Dropdown <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-      ...
-    <span class=nt>&lt;/ul&gt;</span>
-  <span class=nt>&lt;/li&gt;</span>
-  ...
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=navbar>Navbar</h1> <h2 id=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><strong class=text-danger>Justified navbar nav links are currently not supported.</strong></p> <div class="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> <ol type=a> <li>Reduce the amount or width of navbar items.</li> <li>Hide certain navbar items at certain screen sizes using <a href=../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> <div class="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 <a href=../javascript/#collapse>collapse plugin</a> to be included in your version of Bootstrap.</p> </div> <div class="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> <div class="bs-callout bs-callout-warning" id=callout-navbar-role> <h4>Make navbars accessible</h4> <p>Be sure to use a <code>&lt;nav&gt;</code> element or, if using a more generic element such as a <code>&lt;div&gt;</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> <div class=bs-example data-example-id=default-navbar> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-1 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-1> <ul class="nav navbar-nav"> <li class=active><a href=#>Link <span class=sr-only>(current)</span></a></li> <li><a href=#>Link</a></li> <li class=dropdown> <a href=# class=dropdown-toggle data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false>Dropdown <span class=caret></span></a> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> <li role=separator class=divider></li> <li><a href=#>One more separated link</a></li> </ul> </li> </ul> <form class="navbar-form navbar-left"> <div class=form-group> <input class=form-control placeholder=Search> </div> <button type=submit class="btn btn-default">Submit</button> </form> <ul class="nav navbar-nav navbar-right"> <li><a href=#>Link</a></li> <li class=dropdown> <a href=# class=dropdown-toggle data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false>Dropdown <span class=caret></span></a> <ul class=dropdown-menu> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container-fluid"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- Brand and toggle get grouped for better mobile display --&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"navbar-header"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"navbar-toggle collapsed"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>data-target=</span><span class=s>"#bs-example-navbar-collapse-1"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Toggle navigation<span class=nt>&lt;/span&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"icon-bar"</span><span class=nt>&gt;&lt;/span&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"icon-bar"</span><span class=nt>&gt;&lt;/span&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"icon-bar"</span><span class=nt>&gt;&lt;/span&gt;</span>
-      <span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"navbar-brand"</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Brand<span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-
-    <span class=c>&lt;!-- Collect the nav links, forms, and other content for toggling --&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"collapse navbar-collapse"</span> <span class=na>id=</span><span class=s>"bs-example-navbar-collapse-1"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav navbar-nav"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Link <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(current)<span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-        <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-        <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>Dropdown <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;&lt;/a&gt;</span>
-          <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>One more separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;/ul&gt;</span>
-        <span class=nt>&lt;/li&gt;</span>
-      <span class=nt>&lt;/ul&gt;</span>
-      <span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"navbar-form navbar-left"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Search"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Submit<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/form&gt;</span>
-      <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav navbar-nav navbar-right"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-        <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"dropdown-toggle"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>Dropdown <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;&lt;/a&gt;</span>
-          <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span><span class=nt>&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Another action<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Something else here<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"separator"</span> <span class=na>class=</span><span class=s>"divider"</span><span class=nt>&gt;&lt;/li&gt;</span>
-            <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Separated link<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-          <span class=nt>&lt;/ul&gt;</span>
-        <span class=nt>&lt;/li&gt;</span>
-      <span class=nt>&lt;/ul&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.navbar-collapse --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.container-fluid --&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <h2 id=navbar-brand-image>Brand image</h2> <p>Replace the navbar brand with your own image by swapping the text for an <code>&lt;img&gt;</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> <div class=bs-example data-example-id=navbar-with-image-brand> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <a href=# class=navbar-brand> <img alt=Brand height=20 src=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAB+0lEQVR4AcyYg5LkUBhG+1X2PdZGaW3btm3btm3bHttWrPomd1r/2Jn/VJ02TpxcH4CQ/dsuazWgzbIdrm9dZVd4pBz4zx2igTaFHrhvjneVXNHCSqIlFEjiwMyyyOBilRgGSqLNF1jnwNQdIvAt48C3IlBmHCiLQHC2zoHDu6zG1iXn6+y62ScxY9AODO6w0pvAqf23oSE4joOfH6OxfMoRnoGUm+de8wykbFt6wZtA07QwtNOqKh3ZbS3Wzz2F+1c/QJY0UCJ/J3kXWJfv7VhxCRRV1jGw7XI+gcO7rEFFRvdYxydwcPsVsC0bQdKScngt4iUTD4Fy/8p7PoHzRu1DclwmgmiqgUXjD3oTKHbAt869qdJ7l98jNTEblPTkXMwetpvnftA0LLHb4X8kiY9Kx6Q+W7wJtG0HR7fdrtYz+x7iya0vkEtUULIzCjC21wY+W/GYXusRH5kGytWTLxgEEhePPwhKYb7EK3BQuxWwTBuUkd3X8goUn6fMHLyTT+DCsQdAEXNzSMeVPAJHdF2DmH8poCREp3uwm7HsGq9J9q69iuunX6EgrwQVObjpBt8z6rdPfvE8kiiyhsvHnomrQx6BxYUyYiNS8f75H1w4/ISepDZLoDhNJ9cdNUquhRsv+6EP9oNH7Iff2A9g8h8CLt1gH0Qf9NMQAFnO60BJFQe0AAAAAElFTkSuQmCC width=20> </a> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container-fluid"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"navbar-header"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"navbar-brand"</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;img</span> <span class=na>alt=</span><span class=s>"Brand"</span> <span class=na>src=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <h2 id=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. <strong class=text-danger>Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.</strong></p> <div class=bs-example data-example-id=navbar-form> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-2 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-2> <form class="navbar-form navbar-left"> <div class=form-group> <input class=form-control placeholder=Search> </div> <button type=submit class="btn btn-default">Submit</button> </form> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"navbar-form navbar-left"</span> <span class=na>role=</span><span class=s>"search"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Search"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Submit<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class="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. <a href=../getting-started/#support-fixed-position-keyboards>See our browser support docs</a> for details.</p> </div> <div class="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> <h2 id=navbar-buttons>Buttons</h2> <p>Add the <code>.navbar-btn</code> class to <code>&lt;button&gt;</code> elements not residing in a <code>&lt;form&gt;</code> to vertically center them in the navbar.</p> <div class=bs-example data-example-id=navbar-button> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-3 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-3> <button type=button class="btn btn-default navbar-btn">Sign in</button> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default navbar-btn"</span><span class=nt>&gt;</span>Sign in<span class=nt>&lt;/button&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-navbar-btn-context> <h4>Context-specific usage</h4> <p>Like the standard <a href=../css/#buttons>button classes</a>, <code>.navbar-btn</code> can be used on <code>&lt;a&gt;</code> and <code>&lt;input&gt;</code> elements. However, neither <code>.navbar-btn</code> nor the standard button classes should be used on <code>&lt;a&gt;</code> elements within <code>.navbar-nav</code>.</p> </div> <h2 id=navbar-text>Text</h2> <p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code>&lt;p&gt;</code> tag for proper leading and color.</p> <div class=bs-example data-example-id=navbar-text> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-4 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-4> <p class=navbar-text>Signed in as Mark Otto</p> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"navbar-text"</span><span class=nt>&gt;</span>Signed in as Mark Otto<span class=nt>&lt;/p&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=navbar-link> <nav class="navbar navbar-default"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-5 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-5> <p class="navbar-text navbar-right">Signed in as <a href=# class=navbar-link>Mark Otto</a></p> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"navbar-text navbar-right"</span><span class=nt>&gt;</span>Signed in as <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"navbar-link"</span><span class=nt>&gt;</span>Mark Otto<span class=nt>&lt;/a&gt;&lt;/p&gt;</span></code></pre></figure> <h2 id=navbar-component-alignment>Component alignment</h2> <p>Align nav links, forms, buttons, or text, using the <code>.navbar-left</code> or <code>.navbar-right</code> utility classes. Both classes will add a CSS float in the specified direction. For example, to align nav links, put them in a separate <code>&lt;ul&gt;</code> with the respective utility class applied.</p> <p>These classes are mixin-ed versions of <code>.pull-left</code> and <code>.pull-right</code>, but they're scoped to media queries for easier handling of navbar components across device sizes.</p> <div class="bs-callout bs-callout-warning" id=callout-navbar-right-align> <h4>Right aligning multiple components</h4> <p>Navbars currently have a limitation with multiple <code>.navbar-right</code> classes. To properly space content, we use negative margin on the last <code>.navbar-right</code> element. When there are multiple elements using that class, these margins don't work as intended.</p> <p>We'll revisit this when we can rewrite that component in v4.</p> </div> <h2 id=navbar-fixed-top>Fixed to top</h2> <p>Add <code>.navbar-fixed-top</code> and include a <code>.container</code> or <code>.container-fluid</code> to center and pad navbar content.</p> <div class="bs-example bs-navbar-top-example" data-example-id=navbar-fixed-to-top> <nav class="navbar navbar-default navbar-fixed-top"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-6 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-6> <ul class="nav navbar-nav"> <li class=active><a href=#>Home</a></li> <li><a href=#>Link</a></li> <li><a href=#>Link</a></li> </ul> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-default navbar-fixed-top"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <div class="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>&lt;body&gt;</code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nt>body</span> <span class=p>{</span> <span class=nl>padding-top</span><span class=p>:</span> <span class=m>70px</span><span class=p>;</span> <span class=p>}</span></code></pre></figure> <p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p> </div> <h2 id=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> <div class="bs-example bs-navbar-bottom-example" data-example-id=navbar-fixed-to-bottom> <nav class="navbar navbar-default navbar-fixed-bottom"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-7 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-7> <ul class="nav navbar-nav"> <li class=active><a href=#>Home</a></li> <li><a href=#>Link</a></li> <li><a href=#>Link</a></li> </ul> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-default navbar-fixed-bottom"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <div class="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>&lt;body&gt;</code>. Try out your own values or use our snippet below. Tip: By default, the navbar is 50px high.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nt>body</span> <span class=p>{</span> <span class=nl>padding-bottom</span><span class=p>:</span> <span class=m>70px</span><span class=p>;</span> <span class=p>}</span></code></pre></figure> <p>Make sure to include this <strong>after</strong> the core Bootstrap CSS.</p> </div> <h2 id=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> <div class="bs-example bs-navbar-top-example" data-example-id=navbar-static-top> <nav class="navbar navbar-default navbar-static-top"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-8 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-8> <ul class="nav navbar-nav"> <li class=active><a href=#>Home</a></li> <li><a href=#>Link</a></li> <li><a href=#>Link</a></li> </ul> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-default navbar-static-top"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <h2 id=navbar-inverted>Inverted navbar</h2> <p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p> <div class=bs-example data-example-id=inverted-navbar> <nav class="navbar navbar-inverse"> <div class=container-fluid> <div class=navbar-header> <button type=button class="collapsed navbar-toggle" data-toggle=collapse data-target=#bs-example-navbar-collapse-9 aria-expanded=false> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Brand</a> </div> <div class="collapse navbar-collapse" id=bs-example-navbar-collapse-9> <ul class="nav navbar-nav"> <li class=active><a href=#>Home</a></li> <li><a href=#>Link</a></li> <li><a href=#>Link</a></li> </ul> </div> </div> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>class=</span><span class=s>"navbar navbar-inverse"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=breadcrumbs>Breadcrumbs</h1> <p class=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> <div class=bs-example data-example-id=simple-breadcrumbs> <ol class=breadcrumb> <li class=active>Home</li> </ol> <ol class=breadcrumb> <li><a href=#>Home</a></li> <li class=active>Library</li> </ol> <ol class=breadcrumb> <li><a href=#>Home</a></li> <li><a href=#>Library</a></li> <li class=active>Data</li> </ol> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ol</span> <span class=na>class=</span><span class=s>"breadcrumb"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Home<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Library<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;</span>Data<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ol&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=pagination>Pagination</h1> <p class=lead>Provide pagination links for your site or app with the multi-page pagination component, or the simpler <a href=#pagination-pager>pager alternative</a>.</p> <h2 id=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> <div class=bs-example data-example-id=simple-pagination> <nav aria-label="Page navigation"> <ul class=pagination> <li> <a href=# aria-label=Previous> <span aria-hidden=true>&laquo;</span> </a> </li> <li><a href=#>1</a></li> <li><a href=#>2</a></li> <li><a href=#>3</a></li> <li><a href=#>4</a></li> <li><a href=#>5</a></li> <li> <a href=# aria-label=Next> <span aria-hidden=true>&raquo;</span> </a> </li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"Page navigation"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pagination"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;</span>
-      <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>aria-label=</span><span class=s>"Previous"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;laquo;</span><span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>1<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>2<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>3<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>4<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>5<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;</span>
-      <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>aria-label=</span><span class=s>"Next"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;raquo;</span><span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <div class="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>&lt;nav&gt;</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>&lt;nav&gt;</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> <div class=bs-example data-example-id=disabled-active-pagination> <nav aria-label=...> <ul class=pagination> <li class=disabled><a href=# aria-label=Previous><span aria-hidden=true>&laquo;</span></a></li> <li class=active><a href=#>1 <span class=sr-only>(current)</span></a></li> <li><a href=#>2</a></li> <li><a href=#>3</a></li> <li><a href=#>4</a></li> <li><a href=#>5</a></li> <li><a href=# aria-label=Next><span aria-hidden=true>&raquo;</span></a></li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pagination"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"disabled"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>aria-label=</span><span class=s>"Previous"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;laquo;</span><span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>1 <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(current)<span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <p>We recommend that you swap out active or disabled anchors for <code>&lt;span&gt;</code>, or omit the anchor in the case of the previous/next arrows, to remove click functionality while retaining intended styles.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pagination"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"disabled"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;laquo;</span><span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span&gt;</span>1 <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(current)<span class=nt>&lt;/span&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;/li&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</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> <div class=bs-example data-example-id=pagination-sizing> <nav aria-label=...> <ul class="pagination pagination-lg"> <li><a href=# aria-label=Previous><span aria-hidden=true>&laquo;</span></a></li> <li><a href=#>1</a></li> <li><a href=#>2</a></li> <li><a href=#>3</a></li> <li><a href=#>4</a></li> <li><a href=#>5</a></li> <li><a href=# aria-label=Next><span aria-hidden=true>&raquo;</span></a></li> </ul> </nav> <nav aria-label=...> <ul class=pagination> <li><a href=# aria-label=Previous><span aria-hidden=true>&laquo;</span></a></li> <li><a href=#>1</a></li> <li><a href=#>2</a></li> <li><a href=#>3</a></li> <li><a href=#>4</a></li> <li><a href=#>5</a></li> <li><a href=# aria-label=Next><span aria-hidden=true>&raquo;</span></a></li> </ul> </nav> <nav aria-label=...> <ul class="pagination pagination-sm"> <li><a href=# aria-label=Previous><span aria-hidden=true>&laquo;</span></a></li> <li><a href=#>1</a></li> <li><a href=#>2</a></li> <li><a href=#>3</a></li> <li><a href=#>4</a></li> <li><a href=#>5</a></li> <li><a href=# aria-label=Next><span aria-hidden=true>&raquo;</span></a></li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;&lt;ul</span> <span class=na>class=</span><span class=s>"pagination pagination-lg"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/ul&gt;&lt;/nav&gt;</span>
-<span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;&lt;ul</span> <span class=na>class=</span><span class=s>"pagination"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/ul&gt;&lt;/nav&gt;</span>
-<span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;&lt;ul</span> <span class=na>class=</span><span class=s>"pagination pagination-sm"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/ul&gt;&lt;/nav&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=simple-pager> <nav aria-label=...> <ul class=pager> <li><a href=#>Previous</a></li> <li><a href=#>Next</a></li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pager"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Previous<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Next<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> <h3>Aligned links</h3> <p>Alternatively, you can align each link to the sides:</p> <div class=bs-example data-example-id=aligned-pager-links> <nav aria-label=...> <ul class=pager> <li class=previous><a href=#><span aria-hidden=true>&larr;</span> Older</a></li> <li class=next><a href=#>Newer <span aria-hidden=true>&rarr;</span></a></li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pager"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"previous"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;larr;</span><span class=nt>&lt;/span&gt;</span> Older<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"next"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Newer <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;rarr;</span><span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</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> <div class=bs-example data-example-id=disabled-pager> <nav aria-label=...> <ul class=pager> <li class="previous disabled"><a href=#><span aria-hidden=true>&larr;</span> Older</a></li> <li class=next><a href=#>Newer <span aria-hidden=true>&rarr;</span></a></li> </ul> </nav> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;nav</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"pager"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"previous disabled"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;larr;</span><span class=nt>&lt;/span&gt;</span> Older<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"next"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Newer <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;rarr;</span><span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/nav&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=labels>Labels</h1> <h2>Example</h2> <div class=bs-example data-example-id=labels-in-headings> <h1>Example heading <span class="label label-default">New</span></h1> <h2>Example heading <span class="label label-default">New</span></h2> <h3>Example heading <span class="label label-default">New</span></h3> <h4>Example heading <span class="label label-default">New</span></h4> <h5>Example heading <span class="label label-default">New</span></h5> <h6>Example heading <span class="label label-default">New</span></h6> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;h3&gt;</span>Example heading <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-default"</span><span class=nt>&gt;</span>New<span class=nt>&lt;/span&gt;&lt;/h3&gt;</span></code></pre></figure> <h2>Available variations</h2> <p>Add any of the below mentioned modifier classes to change the appearance of a label.</p> <div class=bs-example data-example-id=label-variants> <span class="label label-default">Default</span> <span class="label label-primary">Primary</span> <span class="label label-success">Success</span> <span class="label label-info">Info</span> <span class="label label-warning">Warning</span> <span class="label label-danger">Danger</span> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-default"</span><span class=nt>&gt;</span>Default<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-primary"</span><span class=nt>&gt;</span>Primary<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-success"</span><span class=nt>&gt;</span>Success<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-info"</span><span class=nt>&gt;</span>Info<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-warning"</span><span class=nt>&gt;</span>Warning<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"label label-danger"</span><span class=nt>&gt;</span>Danger<span class=nt>&lt;/span&gt;</span></code></pre></figure> <div class="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, <a href=https://github.com/twbs/bootstrap/issues/13219>see #13219</a>.</p> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=badges>Badges</h1> <p class=lead>Easily highlight new or unread items by adding a <code>&lt;span class="badge"&gt;</code> to links, Bootstrap navs, and more.</p> <div class=bs-example data-example-id=simple-badges> <a href=#>Inbox <span class=badge>42</span></a> <br><br> <button class="btn btn-primary" type=button> Messages <span class=badge>4</span> </button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Inbox <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"badge"</span><span class=nt>&gt;</span>42<span class=nt>&lt;/span&gt;&lt;/a&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>type=</span><span class=s>"button"</span><span class=nt>&gt;</span>
-  Messages <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"badge"</span><span class=nt>&gt;</span>4<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/button&gt;</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> <div class="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> <div class=bs-example data-example-id=badges-in-pills> <ul class="nav nav-pills" role=tablist> <li role=presentation class=active><a href=#>Home <span class=badge>42</span></a></li> <li role=presentation><a href=#>Profile</a></li> <li role=presentation><a href=#>Messages <span class=badge>3</span></a></li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-pills"</span> <span class=na>role=</span><span class=s>"tablist"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Home <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"badge"</span><span class=nt>&gt;</span>42<span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Profile<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>Messages <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"badge"</span><span class=nt>&gt;</span>3<span class=nt>&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=jumbotron>Jumbotron</h1> <p>A lightweight, flexible component that can optionally extend the entire viewport to showcase key content on your site.</p> <div class=bs-example data-example-id=simple-jumbotron> <div class=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><a href=# class="btn btn-primary btn-lg" role=button>Learn more</a></p> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"jumbotron"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;h1&gt;</span>Hello, world!<span class=nt>&lt;/h1&gt;</span>
-  <span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;p&gt;&lt;a</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg"</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Learn more<span class=nt>&lt;/a&gt;&lt;/p&gt;</span>
-<span class=nt>&lt;/div&gt;</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> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"jumbotron"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=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> <div class=bs-example data-example-id=simple-page-header> <div class=page-header> <h1>Example page header <small>Subtext for header</small></h1> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"page-header"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;h1&gt;</span>Example page header <span class=nt>&lt;small&gt;</span>Subtext for header<span class=nt>&lt;/small&gt;&lt;/h1&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=thumbnails>Thumbnails</h1> <p class=lead>Extend Bootstrap's <a href=../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 <a href=http://masonry.desandro.com>Masonry</a>, <a href=http://isotope.metafizzy.co>Isotope</a>, or <a href=http://salvattore.com>Salvattore</a>.</p> <h2 id=thumbnails-default>Default example</h2> <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p> <div class=bs-example data-example-id=simple-thumbnails> <div class=row> <div class="col-md-3 col-xs-6"> <a href=# class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x180> </a> </div> <div class="col-md-3 col-xs-6"> <a href=# class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x180> </a> </div> <div class="col-md-3 col-xs-6"> <a href=# class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x180> </a> </div> <div class="col-md-3 col-xs-6"> <a href=# class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x180> </a> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-3"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"thumbnail"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=thumbnails-with-custom-content> <div class=row> <div class="col-sm-6 col-md-4"> <div class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x200> <div class=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><a href=# class="btn btn-primary" role=button>Button</a> <a href=# class="btn btn-default" role=button>Button</a></p> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x200> <div class=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><a href=# class="btn btn-primary" role=button>Button</a> <a href=# class="btn btn-default" role=button>Button</a></p> </div> </div> </div> <div class="col-sm-6 col-md-4"> <div class=thumbnail> <img alt="Generic placeholder thumbnail" data-src=holder.js/100%x200> <div class=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><a href=# class="btn btn-primary" role=button>Button</a> <a href=# class="btn btn-default" role=button>Button</a></p> </div> </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-6 col-md-4"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"thumbnail"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"caption"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;h3&gt;</span>Thumbnail label<span class=nt>&lt;/h3&gt;</span>
-        <span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-        <span class=nt>&lt;p&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Button<span class=nt>&lt;/a&gt;</span> <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Button<span class=nt>&lt;/a&gt;&lt;/p&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=alerts>Alerts</h1> <p class=lead>Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.</p> <h2 id=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> <div class="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> <div class=bs-example data-example-id=simple-alerts> <div class="alert alert-success" role=alert> <strong>Well done!</strong> You successfully read this important alert message. </div> <div class="alert alert-info" role=alert> <strong>Heads up!</strong> This alert needs your attention, but it's not super important. </div> <div class="alert alert-warning" role=alert> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div> <div class="alert alert-danger" role=alert> <strong>Oh snap!</strong> Change a few things up and try submitting again. </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-success"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-info"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-warning"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-danger"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=alerts-dismissible>Dismissible alerts</h2> <p>Build on any alert by adding an optional <code>.alert-dismissible</code> and close button.</p> <div class="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 <a href=../javascript/#alerts>alerts JavaScript plugin</a>.</p> </div> <div class=bs-example data-example-id=dismissible-alert-css> <div class="alert alert-warning alert-dismissible" role=alert> <button type=button class=close data-dismiss=alert aria-label=Close><span aria-hidden=true>&times;</span></button> <strong>Warning!</strong> Better check yourself, you're not looking too good. </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-warning alert-dismissible"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"alert"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span>
-  <span class=nt>&lt;strong&gt;</span>Warning!<span class=nt>&lt;/strong&gt;</span> Better check yourself, you're not looking too good.
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="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>&lt;button&gt;</code> element with the <code>data-dismiss="alert"</code> data attribute.</p> </div> <h2 id=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> <div class=bs-example data-example-id=alerts-with-links> <div class="alert alert-success" role=alert> <strong>Well done!</strong> You successfully read <a href=# class=alert-link>this important alert message</a>. </div> <div class="alert alert-info" role=alert> <strong>Heads up!</strong> This <a href=# class=alert-link>alert needs your attention</a>, but it's not super important. </div> <div class="alert alert-warning" role=alert> <strong>Warning!</strong> Better check yourself, you're <a href=# class=alert-link>not looking too good</a>. </div> <div class="alert alert-danger" role=alert> <strong>Oh snap!</strong> <a href=# class=alert-link>Change a few things up</a> and try submitting again. </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-success"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"alert-link"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-info"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"alert-link"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-warning"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"alert-link"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"alert alert-danger"</span> <span class=na>role=</span><span class=s>"alert"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"alert-link"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=progress>Progress bars</h1> <p class=lead>Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p> <div class="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> <div class="bs-callout bs-callout-info"> <h4 id=callout-progress-csp>Content Security Policy (CSP) compatibility</h4> <p>If your website has a <a href=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> <h2 id=progress-basic>Basic example</h2> <p>Default progress bar.</p> <div class=bs-example data-example-id=simple-progress-bar> <div class=progress> <div class=progress-bar role=progressbar aria-valuenow=60 aria-valuemin=0 aria-valuemax=100 style=width:60%> <span class=sr-only>60% Complete</span> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"60"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 60%;"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>60% Complete<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=progress-label>With label</h2> <p>Remove the <code>&lt;span&gt;</code> with <code>.sr-only</code> class from within the progress bar to show a visible percentage.</p> <div class=bs-example data-example-id=progress-bar-with-label> <div class=progress> <div class=progress-bar role=progressbar aria-valuenow=60 aria-valuemin=0 aria-valuemax=100 style=width:60%> 60% </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"60"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 60%;"</span><span class=nt>&gt;</span>
-    60%
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</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> <div class=bs-example data-example-id=progress-bar-at-low-percentage> <div class=progress> <div class=progress-bar role=progressbar aria-valuenow=0 aria-valuemin=0 aria-valuemax=100 style=min-width:2em> 0% </div> </div> <div class=progress> <div class=progress-bar role=progressbar aria-valuenow=2 aria-valuemin=0 aria-valuemax=100 style=min-width:2em;width:2%> 2% </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"0"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"min-width: 2em;"</span><span class=nt>&gt;</span>
-    0%
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"2"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"min-width: 2em; width: 2%;"</span><span class=nt>&gt;</span>
-    2%
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=progress-alternatives>Contextual alternatives</h2> <p>Progress bars use some of the same button and alert classes for consistent styles.</p> <div class=bs-example data-example-id=contextual-progress-bar> <div class=progress> <div class="progress-bar progress-bar-success" role=progressbar aria-valuenow=40 aria-valuemin=0 aria-valuemax=100 style=width:40%> <span class=sr-only>40% Complete (success)</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-info" role=progressbar aria-valuenow=20 aria-valuemin=0 aria-valuemax=100 style=width:20%> <span class=sr-only>20% Complete</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-warning" role=progressbar aria-valuenow=60 aria-valuemin=0 aria-valuemax=100 style=width:60%> <span class=sr-only>60% Complete (warning)</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-danger" role=progressbar aria-valuenow=80 aria-valuemin=0 aria-valuemax=100 style=width:80%> <span class=sr-only>80% Complete (danger)</span> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-success"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"40"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 40%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>40% Complete (success)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-info"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"20"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 20%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>20% Complete<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-warning"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"60"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 60%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>60% Complete (warning)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-danger"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"80"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 80%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>80% Complete (danger)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=progress-striped>Striped</h2> <p>Uses a gradient to create a striped effect. Not available in IE9 and below.</p> <div class=bs-example data-example-id=striped-progress-bar> <div class=progress> <div class="progress-bar progress-bar-success progress-bar-striped" role=progressbar aria-valuenow=40 aria-valuemin=0 aria-valuemax=100 style=width:40%> <span class=sr-only>40% Complete (success)</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-info progress-bar-striped" role=progressbar aria-valuenow=20 aria-valuemin=0 aria-valuemax=100 style=width:20%> <span class=sr-only>20% Complete</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-warning progress-bar-striped" role=progressbar aria-valuenow=60 aria-valuemin=0 aria-valuemax=100 style=width:60%> <span class=sr-only>60% Complete (warning)</span> </div> </div> <div class=progress> <div class="progress-bar progress-bar-danger progress-bar-striped" role=progressbar aria-valuenow=80 aria-valuemin=0 aria-valuemax=100 style=width:80%> <span class=sr-only>80% Complete (danger)</span> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-success progress-bar-striped"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"40"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 40%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>40% Complete (success)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-info progress-bar-striped"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"20"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 20%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>20% Complete<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-warning progress-bar-striped"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"60"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 60%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>60% Complete (warning)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-danger progress-bar-striped"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"80"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 80%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>80% Complete (danger)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=animated-progress-bar> <div class=progress> <div class="progress-bar progress-bar-striped" role=progressbar aria-valuenow=45 aria-valuemin=0 aria-valuemax=100 style=width:45%><span class=sr-only>45% Complete</span></div> </div> <button type=button class="btn btn-default bs-docs-activate-animated-progressbar" data-toggle=button aria-pressed=false autocomplete=off>Toggle animation</button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-striped active"</span> <span class=na>role=</span><span class=s>"progressbar"</span> <span class=na>aria-valuenow=</span><span class=s>"45"</span> <span class=na>aria-valuemin=</span><span class=s>"0"</span> <span class=na>aria-valuemax=</span><span class=s>"100"</span> <span class=na>style=</span><span class=s>"width: 45%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>45% Complete<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=progress-stacked>Stacked</h2> <p>Place multiple bars into the same <code>.progress</code> to stack them.</p> <div class=bs-example data-example-id=stacked-progress-bar> <div class=progress> <div class="progress-bar progress-bar-success" style=width:35%> <span class=sr-only>35% Complete (success)</span> </div> <div class="progress-bar progress-bar-warning progress-bar-striped" style=width:20%> <span class=sr-only>20% Complete (warning)</span> </div> <div class="progress-bar progress-bar-danger" style=width:10%> <span class=sr-only>10% Complete (danger)</span> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-success"</span> <span class=na>style=</span><span class=s>"width: 35%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>35% Complete (success)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-warning progress-bar-striped"</span> <span class=na>style=</span><span class=s>"width: 20%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>20% Complete (warning)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"progress-bar progress-bar-danger"</span> <span class=na>style=</span><span class=s>"width: 10%"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>10% Complete (danger)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=media>Media object</h1> <p class=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> <h2 id=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> <div class=bs-example data-example-id=default-media> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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 class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class=media-body> <h4 class=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> <div class=media-right> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> </div> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media-right> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-left"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>class=</span><span class=s>"media-object"</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-body"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"media-heading"</span><span class=nt>&gt;</span>Media heading<span class=nt>&lt;/h4&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</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> <h2 id=media-alignment>Media alignment</h2> <p>The images or other media can be aligned top, middle, or bottom. The default is top aligned.</p> <div class=bs-example data-example-id=media-alignment> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class="media-left media-middle"> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class="media-left media-bottom"> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-left media-middle"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>class=</span><span class=s>"media-object"</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-body"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"media-heading"</span><span class=nt>&gt;</span>Middle aligned media<span class=nt>&lt;/h4&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=media-list> <ul class=media-list> <li class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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 class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <div class=media> <div class=media-left> <a href=#> <img alt="Generic placeholder image" class=media-object data-src=holder.js/64x64> </a> </div> <div class=media-body> <h4 class=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> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"media-list"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"media"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-left"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;img</span> <span class=na>class=</span><span class=s>"media-object"</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;/a&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"media-body"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"media-heading"</span><span class=nt>&gt;</span>Media heading<span class=nt>&lt;/h4&gt;</span>
-      ...
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=list-group>List group</h1> <p class=lead>List groups are a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content.</p> <h2 id=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> <div class=bs-example data-example-id=simple-list-group> <ul class=list-group> <li class=list-group-item>Cras justo odio</li> <li class=list-group-item>Dapibus ac facilisis in</li> <li class=list-group-item>Morbi leo risus</li> <li class=list-group-item>Porta ac consectetur ac</li> <li class=list-group-item>Vestibulum at eros</li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Cras justo odio<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Morbi leo risus<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=list-group-badges> <ul class=list-group> <li class=list-group-item> <span class=badge>14</span> Cras justo odio </li> <li class=list-group-item> <span class=badge>2</span> Dapibus ac facilisis in </li> <li class=list-group-item> <span class=badge>1</span> Morbi leo risus </li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"badge"</span><span class=nt>&gt;</span>14<span class=nt>&lt;/span&gt;</span>
-    Cras justo odio
-  <span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h2 id=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>&lt;div&gt;</code> instead of an <code>&lt;ul&gt;</code>). No need for individual parents around each element.</p> <div class=bs-example data-example-id=list-group-anchors> <div class=list-group> <a href=# class="list-group-item active"> Cras justo odio </a> <a href=# class=list-group-item>Dapibus ac facilisis in</a> <a href=# class=list-group-item>Morbi leo risus</a> <a href=# class=list-group-item>Porta ac consectetur ac</a> <a href=# class=list-group-item>Vestibulum at eros</a> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item active"</span><span class=nt>&gt;</span>
-    Cras justo odio
-  <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Morbi leo risus<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=list-group-buttons>Button items</h2> <p>List group items may be buttons instead of list items (that also means a parent <code>&lt;div&gt;</code> instead of an <code>&lt;ul&gt;</code>). No need for individual parents around each element. <strong class=text-danger>Don't use the standard <code>.btn</code> classes here.</strong></p> <div class=bs-example data-example-id=list-group-btns> <div class=list-group> <button type=button class=list-group-item>Cras justo odio</button> <button type=button class=list-group-item>Dapibus ac facilisis in</button> <button type=button class=list-group-item>Morbi leo risus</button> <button type=button class=list-group-item>Porta ac consectetur ac</button> <button type=button class=list-group-item>Vestibulum at eros</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Cras justo odio<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Morbi leo risus<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=list-group-disabled> <div class=list-group> <a href=# class="list-group-item disabled"> Cras justo odio </a> <a href=# class=list-group-item>Dapibus ac facilisis in</a> <a href=# class=list-group-item>Morbi leo risus</a> <a href=# class=list-group-item>Porta ac consectetur ac</a> <a href=# class=list-group-item>Vestibulum at eros</a> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item disabled"</span><span class=nt>&gt;</span>
-    Cras justo odio
-  <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Morbi leo risus<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=list-group-variants> <div class=row> <div class=col-sm-6> <ul class=list-group> <li class="list-group-item list-group-item-success">Dapibus ac facilisis in</li> <li class="list-group-item list-group-item-info">Cras sit amet nibh libero</li> <li class="list-group-item list-group-item-warning">Porta ac consectetur ac</li> <li class="list-group-item list-group-item-danger">Vestibulum at eros</li> </ul> </div> <div class=col-sm-6> <div class=list-group> <a href=# class="list-group-item list-group-item-success">Dapibus ac facilisis in</a> <a href=# class="list-group-item list-group-item-info">Cras sit amet nibh libero</a> <a href=# class="list-group-item list-group-item-warning">Porta ac consectetur ac</a> <a href=# class="list-group-item list-group-item-danger">Vestibulum at eros</a> </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-success"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-info"</span><span class=nt>&gt;</span>Cras sit amet nibh libero<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-warning"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-danger"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-success"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-info"</span><span class=nt>&gt;</span>Cras sit amet nibh libero<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-warning"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item list-group-item-danger"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=list-group-custom-content>Custom content</h2> <p>Add nearly any HTML within, even for linked list groups like the one below.</p> <div class=bs-example data-example-id=list-group-custom-content> <div class=list-group> <a href=# class="list-group-item active"> <h4 class=list-group-item-heading>List group item heading</h4> <p class=list-group-item-text>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> </a> <a href=# class=list-group-item> <h4 class=list-group-item-heading>List group item heading</h4> <p class=list-group-item-text>Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p> </a> <a href=# class=list-group-item> <h4 class=list-group-item-heading>List group item heading</h4> <p class=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> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"list-group-item active"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"list-group-item-heading"</span><span class=nt>&gt;</span>List group item heading<span class=nt>&lt;/h4&gt;</span>
-    <span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"list-group-item-text"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=panels>Panels</h1> <p class=lead>While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p> <h2 id=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> <div class=bs-example data-example-id=simple-panel> <div class="panel panel-default"> <div class=panel-body> Basic panel example </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    Basic panel example
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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>&lt;h1&gt;</code>-<code>&lt;h6&gt;</code> with a <code>.panel-title</code> class to add a pre-styled heading. However, the font sizes of <code>&lt;h1&gt;</code>-<code>&lt;h6&gt;</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> <div class=bs-example data-example-id=panel-with-heading> <div class="panel panel-default"> <div class=panel-heading>Panel heading without title</div> <div class=panel-body> Panel content </div> </div> <div class="panel panel-default"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span><span class=nt>&gt;</span>Panel heading without title<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    Panel content
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;h3</span> <span class=na>class=</span><span class=s>"panel-title"</span><span class=nt>&gt;</span>Panel title<span class=nt>&lt;/h3&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    Panel content
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=panel-with-footer> <div class="panel panel-default"> <div class=panel-body> Panel content </div> <div class=panel-footer>Panel footer</div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    Panel content
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-footer"</span><span class=nt>&gt;</span>Panel footer<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=contextual-panels> <div class="panel panel-primary"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> <div class="panel panel-success"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> <div class="panel panel-info"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> <div class="panel panel-warning"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> <div class="panel panel-danger"> <div class=panel-heading> <h3 class=panel-title>Panel title</h3> </div> <div class=panel-body> Panel content </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-primary"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-success"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-info"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-warning"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-danger"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=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> <div class=bs-example data-example-id=table-within-panel> <div class="panel panel-default"> <div class=panel-heading>Panel heading</div> <div class=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> <table class=table> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=c>&lt;!-- Default panel contents --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span><span class=nt>&gt;</span>Panel heading<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-
-  <span class=c>&lt;!-- Table --&gt;</span>
-  <span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/table&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>If there is no panel body, the component moves from panel header to table without interruption.</p> <div class=bs-example data-example-id=panel-without-body-with-table> <div class="panel panel-default"> <div class=panel-heading>Panel heading</div> <table class=table> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=c>&lt;!-- Default panel contents --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span><span class=nt>&gt;</span>Panel heading<span class=nt>&lt;/div&gt;</span>
-
-  <span class=c>&lt;!-- Table --&gt;</span>
-  <span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/table&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=panels-list-group>With list groups</h2> <p>Easily include full-width <a href=#list-group>list groups</a> within any panel.</p> <div class=bs-example data-example-id=panel-with-list-group> <div class="panel panel-default"> <div class=panel-heading>Panel heading</div> <div class=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> <ul class=list-group> <li class=list-group-item>Cras justo odio</li> <li class=list-group-item>Dapibus ac facilisis in</li> <li class=list-group-item>Morbi leo risus</li> <li class=list-group-item>Porta ac consectetur ac</li> <li class=list-group-item>Vestibulum at eros</li> </ul> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-  <span class=c>&lt;!-- Default panel contents --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span><span class=nt>&gt;</span>Panel heading<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-
-  <span class=c>&lt;!-- List group --&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Cras justo odio<span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Dapibus ac facilisis in<span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Morbi leo risus<span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Porta ac consectetur ac<span class=nt>&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>class=</span><span class=s>"list-group-item"</span><span class=nt>&gt;</span>Vestibulum at eros<span class=nt>&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=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>&lt;iframe&gt;</code>, <code>&lt;embed&gt;</code>, <code>&lt;video&gt;</code>, and <code>&lt;object&gt;</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>&lt;iframe&gt;</code>s as we override that for you.</p> <div class=bs-example data-example-id=responsive-embed-16by9-iframe-youtube> <div class="embed-responsive embed-responsive-16by9"> <iframe class=embed-responsive-item src="//www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- 16:9 aspect ratio --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"embed-responsive embed-responsive-16by9"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;iframe</span> <span class=na>class=</span><span class=s>"embed-responsive-item"</span> <span class=na>src=</span><span class=s>"..."</span><span class=nt>&gt;&lt;/iframe&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- 4:3 aspect ratio --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"embed-responsive embed-responsive-4by3"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;iframe</span> <span class=na>class=</span><span class=s>"embed-responsive-item"</span> <span class=na>src=</span><span class=s>"..."</span><span class=nt>&gt;&lt;/iframe&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=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> <div class=bs-example data-example-id=default-well> <div class=well> Look, I'm in a well! </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"well"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2>Optional classes</h2> <p>Control padding and rounded corners with two optional modifier classes.</p> <div class=bs-example data-example-id=large-well> <div class="well well-lg"> Look, I'm in a large well! </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"well well-lg"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class=bs-example data-example-id=small-well> <div class="well well-sm"> Look, I'm in a small well! </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"well well-sm"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li> <a href=#glyphicons>Glyphicons</a> <ul class=nav> <li><a href=#glyphicons-glyphs>Available glyphs</a></li> <li><a href=#glyphicons-how-to-use>How to use</a></li> <li><a href=#glyphicons-examples>Examples</a></li> </ul> </li> <li> <a href=#dropdowns>Dropdowns</a> <ul class=nav> <li><a href=#dropdowns-example>Example</a></li> <li><a href=#dropdowns-alignment>Alignment</a></li> <li><a href=#dropdowns-headers>Headers</a></li> <li><a href=#dropdowns-divider>Divider</a></li> <li><a href=#dropdowns-disabled>Disabled menu items</a></li> </ul> </li> <li> <a href=#btn-groups>Button groups</a> <ul class=nav> <li><a href=#btn-groups-single>Basic example</a></li> <li><a href=#btn-groups-toolbar>Button toolbar</a></li> <li><a href=#btn-groups-sizing>Sizing</a></li> <li><a href=#btn-groups-nested>Nesting</a></li> <li><a href=#btn-groups-vertical>Vertical variation</a></li> <li><a href=#btn-groups-justified>Justified button groups</a></li> </ul> </li> <li> <a href=#btn-dropdowns>Button dropdowns</a> <ul class=nav> <li><a href=#btn-dropdowns-single>Single button dropdowns</a></li> <li><a href=#btn-dropdowns-split>Split button dropdowns</a></li> <li><a href=#btn-dropdowns-sizing>Sizing</a></li> <li><a href=#btn-dropdowns-dropup>Dropup variation</a></li> </ul> </li> <li> <a href=#input-groups>Input groups</a> <ul class=nav> <li><a href=#input-groups-basic>Basic example</a></li> <li><a href=#input-groups-sizing>Sizing</a></li> <li><a href=#input-groups-checkboxes-radios>Checkbox and radios addons</a></li> <li><a href=#input-groups-buttons>Button addons</a></li> <li><a href=#input-groups-buttons-dropdowns>Buttons with dropdowns</a></li> <li><a href=#input-groups-buttons-segmented>Segmented buttons</a></li> <li><a href=#input-groups-buttons-multiple>Multiple buttons</a></li> </ul> </li> <li> <a href=#nav>Navs</a> <ul class=nav> <li><a href=#nav-tabs>Tabs</a></li> <li><a href=#nav-pills>Pills</a></li> <li><a href=#nav-justified>Justified</a></li> <li><a href=#nav-disabled-links>Disabled links</a></li> <li><a href=#nav-dropdowns>Using dropdowns</a></li> </ul> </li> <li> <a href=#navbar>Navbar</a> <ul class=nav> <li><a href=#navbar-default>Default navbar</a></li> <li><a href=#navbar-brand-image>Brand image</a></li> <li><a href=#navbar-forms>Forms</a></li> <li><a href=#navbar-buttons>Buttons</a></li> <li><a href=#navbar-text>Text</a></li> <li><a href=#navbar-links>Non-nav links</a></li> <li><a href=#navbar-component-alignment>Component alignment</a></li> <li><a href=#navbar-fixed-top>Fixed to top</a></li> <li><a href=#navbar-fixed-bottom>Fixed to bottom</a></li> <li><a href=#navbar-static-top>Static top</a></li> <li><a href=#navbar-inverted>Inverted navbar</a></li> </ul> </li> <li><a href=#breadcrumbs>Breadcrumbs</a></li> <li> <a href=#pagination>Pagination</a> <ul class=nav> <li><a href=#pagination-default>Default pagination</a></li> <li><a href=#pagination-pager>Pager</a></li> </ul> </li> <li><a href=#labels>Labels</a></li> <li><a href=#badges>Badges</a></li> <li><a href=#jumbotron>Jumbotron</a></li> <li><a href=#page-header>Page header</a></li> <li> <a href=#thumbnails>Thumbnails</a> <ul class=nav> <li><a href=#thumbnails-default>Default example</a></li> <li><a href=#thumbnails-custom-content>Custom content</a></li> </ul> </li> <li> <a href=#alerts>Alerts</a> <ul class=nav> <li><a href=#alerts-examples>Examples</a></li> <li><a href=#alerts-dismissible>Dismissible alerts</a></li> <li><a href=#alerts-links>Links in alerts</a></li> </ul> </li> <li> <a href=#progress>Progress bars</a> <ul class=nav> <li><a href=#progress-basic>Basic example</a></li> <li><a href=#progress-label>With label</a></li> <li><a href=#progress-alternatives>Contextual alternatives</a></li> <li><a href=#progress-striped>Striped</a></li> <li><a href=#progress-animated>Animated</a></li> <li><a href=#progress-stacked>Stacked</a></li> </ul> </li> <li> <a href=#media>Media object</a> <ul class=nav> <li><a href=#media-default>Default media</a></li> <li><a href=#media-list>Media list</a></li> </ul> </li> <li> <a href=#list-group>List group</a> <ul class=nav> <li><a href=#list-group-basic>Basic example</a></li> <li><a href=#list-group-badges>Badges</a></li> <li><a href=#list-group-linked>Linked items</a></li> <li><a href=#list-group-buttons>Button items</a></li> <li><a href=#list-group-disabled>Disabled items</a></li> <li><a href=#list-group-contextual-classes>Contextual classes</a></li> <li><a href=#list-group-custom-content>Custom content</a></li> </ul> </li> <li> <a href=#panels>Panels</a> <ul class=nav> <li><a href=#panels-basic>Basic example</a></li> <li><a href=#panels-heading>Panel with heading</a></li> <li><a href=#panels-footer>Panel with footer</a></li> <li><a href=#panels-alternatives>Contextual alternatives</a></li> <li><a href=#panels-tables>With tables</a></li> <li><a href=#panels-list-group>With list groups</a></li> </ul> </li> <li><a href=#responsive-embed>Responsive embed</a></li> <li><a href=#wells>Wells</a></li> </ul> <a href=#top class=back-to-top> Back to top </a> <a href=# class=bs-docs-theme-toggle role=button> Preview theme </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/components/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/components/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/components/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/components/"</script>
+</html>
index 08d49eaf94c888a0b6b1c929d1bfc004c1df9b70..e67d880981eb054ac2106a4fdd20da30109af495 100644 (file)
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> CSS &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href="data:text/css;charset=utf-8," rel=stylesheet data-href=../dist/css/bootstrap-theme.min.css id=bs-theme-stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li class=active> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>CSS</h1> <p>Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <div class=bs-docs-section> <h1 class=page-header id=overview>Overview</h1> <p class=lead>Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p> <h2 id=overview-doctype>HTML5 doctype</h2> <p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=cp>&lt;!DOCTYPE html&gt;</span>
-<span class=nt>&lt;html</span> <span class=na>lang=</span><span class=s>"en"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/html&gt;</span></code></pre></figure> <h2 id=overview-mobile>Mobile first</h2> <p>With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p> <p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code>&lt;head&gt;</code>.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;meta</span> <span class=na>name=</span><span class=s>"viewport"</span> <span class=na>content=</span><span class=s>"width=device-width, initial-scale=1"</span><span class=nt>&gt;</span></code></pre></figure> <p>You can disable zooming capabilities on mobile devices by adding <code>user-scalable=no</code> to the viewport meta tag. This disables zooming, meaning users are only able to scroll, and results in your site feeling a bit more like a native application. Overall, we don't recommend this on every site, so use caution!</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;meta</span> <span class=na>name=</span><span class=s>"viewport"</span> <span class=na>content=</span><span class=s>"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"</span><span class=nt>&gt;</span></code></pre></figure> <h2 id=overview-type-links>Typography and links</h2> <p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p> <ul> <li>Set <code>background-color: #fff;</code> on the <code>body</code></li> <li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li> <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li> </ul> <p>These styles can be found within <code>scaffolding.less</code>.</p> <h2 id=overview-normalize>Normalize.css</h2> <p>For improved cross-browser rendering, we use <a href=http://necolas.github.io/normalize.css/ target=_blank>Normalize.css</a>, a project by <a href=https://twitter.com/necolas target=_blank>Nicolas Gallagher</a> and <a href=https://twitter.com/jon_neal target=_blank>Jonathan Neal</a>.</p> <h2 id=overview-container>Containers</h2> <p>Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to <code>padding</code> and more, neither container is nestable.</p> <p>Use <code>.container</code> for a responsive fixed width container.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>Use <code>.container-fluid</code> for a full width container, spanning the entire width of your viewport.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container-fluid"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=grid>Grid system</h1> <p class=lead>Bootstrap includes a responsive, mobile first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes <a href=#grid-example-basic>predefined classes</a> for easy layout options, as well as powerful <a href=#grid-less>mixins for generating more semantic layouts</a>.</p> <h2 id=grid-intro>Introduction</h2> <p>Grid systems are used for creating page layouts through a series of rows and columns that house your content. Here's how the Bootstrap grid system works:</p> <ul> <li>Rows must be placed within a <code>.container</code> (fixed-width) or <code>.container-fluid</code> (full-width) for proper alignment and padding.</li> <li>Use rows to create horizontal groups of columns.</li> <li>Content should be placed within columns, and only columns may be immediate children of rows.</li> <li>Predefined grid classes like <code>.row</code> and <code>.col-xs-4</code> are available for quickly making grid layouts. Less mixins can also be used for more semantic layouts.</li> <li>Columns create gutters (gaps between column content) via <code>padding</code>. That padding is offset in rows for the first and last column via negative margin on <code>.row</code>s.</li> <li>The negative margin is why the examples below are outdented. It's so that content within grid columns is lined up with non-grid content.</li> <li>Grid columns are created by specifying the number of twelve available columns you wish to span. For example, three equal columns would use three <code>.col-xs-4</code>.</li> <li>If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.</li> <li>Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, e.g. applying any <code>.col-md-*</code> class to an element will not only affect its styling on medium devices but also on large devices if a <code>.col-lg-*</code> class is not present.</li> </ul> <p>Look to the examples for applying these principles to your code.</p> <h2 id=grid-media-queries>Media queries</h2> <p>We use the following media queries in our Less files to create the key breakpoints in our grid system.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=cm>/* Extra small devices (phones, less than 768px) */</span>
-<span class=cm>/* No media query since this is the default in Bootstrap */</span>
-
-<span class=cm>/* Small devices (tablets, 768px and up) */</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span>
-
-<span class=cm>/* Medium devices (desktops, 992px and up) */</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span>
-
-<span class=cm>/* Large devices (large desktops, 1200px and up) */</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span></code></pre></figure> <p>We occasionally expand on these media queries to include a <code>max-width</code> to limit CSS to a narrower set of devices.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@media</span> <span class=p>(</span><span class=n>max-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-xs-max</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=nf>and</span> <span class=p>(</span><span class=n>max-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-max</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=nf>and</span> <span class=p>(</span><span class=n>max-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-max</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span>
-<span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span> <span class=nc>...</span> <span class=p>}</span></code></pre></figure> <h2 id=grid-options>Grid options</h2> <p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <th></th> <th> Extra small devices <small>Phones (&lt;768px)</small> </th> <th> Small devices <small>Tablets (&ge;768px)</small> </th> <th> Medium devices <small>Desktops (&ge;992px)</small> </th> <th> Large devices <small>Desktops (&ge;1200px)</small> </th> </tr> </thead> <tbody> <tr> <th class=text-nowrap scope=row>Grid behavior</th> <td>Horizontal at all times</td> <td colspan=3>Collapsed to start, horizontal above breakpoints</td> </tr> <tr> <th class=text-nowrap scope=row>Container width</th> <td>None (auto)</td> <td>750px</td> <td>970px</td> <td>1170px</td> </tr> <tr> <th class=text-nowrap scope=row>Class prefix</th> <td><code>.col-xs-</code></td> <td><code>.col-sm-</code></td> <td><code>.col-md-</code></td> <td><code>.col-lg-</code></td> </tr> <tr> <th class=text-nowrap scope=row># of columns</th> <td colspan=4>12</td> </tr> <tr> <th class=text-nowrap scope=row>Column width</th> <td class=text-muted>Auto</td> <td>~62px</td> <td>~81px</td> <td>~97px</td> </tr> <tr> <th class=text-nowrap scope=row>Gutter width</th> <td colspan=4>30px (15px on each side of a column)</td> </tr> <tr> <th class=text-nowrap scope=row>Nestable</th> <td colspan=4>Yes</td> </tr> <tr> <th class=text-nowrap scope=row>Offsets</th> <td colspan=4>Yes</td> </tr> <tr> <th class=text-nowrap scope=row>Column ordering</th> <td colspan=4>Yes</td> </tr> </tbody> </table> </div> <h2 id=grid-example-basic>Example: Stacked-to-horizontal</h2> <p>Using a single set of <code>.col-md-*</code> grid classes, you can create a basic grid system that starts out stacked on mobile devices and tablet devices (the extra small to small range) before becoming horizontal on desktop (medium) devices. Place grid columns in any <code>.row</code>.</p> <div class="row show-grid"> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> <div class=col-md-1>.col-md-1</div> </div> <div class="row show-grid"> <div class=col-md-8>.col-md-8</div> <div class=col-md-4>.col-md-4</div> </div> <div class="row show-grid"> <div class=col-md-4>.col-md-4</div> <div class=col-md-4>.col-md-4</div> <div class=col-md-4>.col-md-4</div> </div> <div class="row show-grid"> <div class=col-md-6>.col-md-6</div> <div class=col-md-6>.col-md-6</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-1"</span><span class=nt>&gt;</span>.col-md-1<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-8"</span><span class=nt>&gt;</span>.col-md-8<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-6"</span><span class=nt>&gt;</span>.col-md-6<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-6"</span><span class=nt>&gt;</span>.col-md-6<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-example-fluid>Example: Fluid container</h2> <p>Turn any fixed-width grid layout into a full-width layout by changing your outermost <code>.container</code> to <code>.container-fluid</code>.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container-fluid"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-example-mixed>Example: Mobile and desktop</h2> <p>Don't want your columns to simply stack in smaller devices? Use the extra small and medium device grid classes by adding <code>.col-xs-*</code> <code>.col-md-*</code> to your columns. See the example below for a better idea of how it all works.</p> <div class="row show-grid"> <div class="col-xs-12 col-md-8">.col-xs-12 .col-md-8</div> <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> </div> <div class="row show-grid"> <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> </div> <div class="row show-grid"> <div class=col-xs-6>.col-xs-6</div> <div class=col-xs-6>.col-xs-6</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Stack the columns on mobile by making one full-width and the other half-width --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-12 col-md-8"</span><span class=nt>&gt;</span>.col-xs-12 .col-md-8<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-md-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-md-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-md-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-md-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- Columns are always 50% wide, on mobile and desktop --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6"</span><span class=nt>&gt;</span>.col-xs-6<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6"</span><span class=nt>&gt;</span>.col-xs-6<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-example-mixed-complete>Example: Mobile, tablet, desktop</h2> <p>Build on the previous example by creating even more dynamic and powerful layouts with tablet <code>.col-sm-*</code> classes.</p> <div class="row show-grid"> <div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div> <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div> </div> <div class="row show-grid"> <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div> <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div> <div class="clearfix visible-xs-block"></div> <div class="col-xs-6 col-sm-4">.col-xs-6 .col-sm-4</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-12 col-sm-6 col-md-8"</span><span class=nt>&gt;</span>.col-xs-12 .col-sm-6 .col-md-8<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-md-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-md-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-4<span class=nt>&lt;/div&gt;</span>
-  <span class=c>&lt;!-- Optional: clear the XS cols if their content doesn't match in height --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"clearfix visible-xs-block"</span><span class=nt>&gt;&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-4"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-example-wrapping>Example: Column wrapping</h2> <p>If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.</p> <div class="row show-grid"> <div class=col-xs-9>.col-xs-9</div> <div class=col-xs-4>.col-xs-4<br>Since 9 + 4 = 13 &gt; 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.</div> <div class=col-xs-6>.col-xs-6<br>Subsequent columns continue along the new line.</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-9"</span><span class=nt>&gt;</span>.col-xs-9<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-4"</span><span class=nt>&gt;</span>.col-xs-4<span class=nt>&lt;br&gt;</span>Since 9 + 4 = 13 <span class=ni>&amp;gt;</span> 12, this 4-column-wide div gets wrapped onto a new line as one contiguous unit.<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6"</span><span class=nt>&gt;</span>.col-xs-6<span class=nt>&lt;br&gt;</span>Subsequent columns continue along the new line.<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-responsive-resets>Responsive column resets</h2> <p>With the four tiers of grids available you're bound to run into issues where, at certain breakpoints, your columns don't clear quite right as one is taller than the other. To fix that, use a combination of a <code>.clearfix</code> and our <a href=#responsive-utilities>responsive utility classes</a>.</p> <div class="row show-grid"> <div class="col-xs-6 col-sm-3"> .col-xs-6 .col-sm-3 <br> Resize your viewport or check it out on your phone for an example. </div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> <div class="clearfix visible-xs-block"></div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-3"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-3<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-3"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-3<span class=nt>&lt;/div&gt;</span>
-
-  <span class=c>&lt;!-- Add the extra clearfix for only the required viewport --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"clearfix visible-xs-block"</span><span class=nt>&gt;&lt;/div&gt;</span>
-
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-3"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-3<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-3"</span><span class=nt>&gt;</span>.col-xs-6 .col-sm-3<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>In addition to column clearing at responsive breakpoints, you may need to <strong>reset offsets, pushes, or pulls</strong>. See this in action in <a href=../examples/grid/ >the grid example</a>.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-5 col-md-6"</span><span class=nt>&gt;</span>.col-sm-5 .col-md-6<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0"</span><span class=nt>&gt;</span>.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-6 col-md-5 col-lg-6"</span><span class=nt>&gt;</span>.col-sm-6 .col-md-5 .col-lg-6<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0"</span><span class=nt>&gt;</span>.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-offsetting>Offsetting columns</h2> <p>Move columns to the right using <code>.col-md-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-md-offset-4</code> moves <code>.col-md-4</code> over four columns.</p> <div class="row show-grid"> <div class=col-md-4>.col-md-4</div> <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div> </div> <div class="row show-grid"> <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div> <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div> </div> <div class="row show-grid"> <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4 col-md-offset-4"</span><span class=nt>&gt;</span>.col-md-4 .col-md-offset-4<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-3 col-md-offset-3"</span><span class=nt>&gt;</span>.col-md-3 .col-md-offset-3<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-3 col-md-offset-3"</span><span class=nt>&gt;</span>.col-md-3 .col-md-offset-3<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-6 col-md-offset-3"</span><span class=nt>&gt;</span>.col-md-6 .col-md-offset-3<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>You can also override offsets from lower grid tiers with <code>.col-*-offset-0</code> classes.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-4"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-sm-4"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-0"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-nesting>Nesting columns</h2> <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-sm-*</code> columns within an existing <code>.col-sm-*</code> column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).</p> <div class="row show-grid"> <div class=col-sm-9> Level 1: .col-sm-9 <div class="row show-grid"> <div class="col-xs-8 col-sm-6"> Level 2: .col-xs-8 .col-sm-6 </div> <div class="col-xs-4 col-sm-6"> Level 2: .col-xs-4 .col-sm-6 </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-9"</span><span class=nt>&gt;</span>
-    Level 1: .col-sm-9
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-8 col-sm-6"</span><span class=nt>&gt;</span>
-        Level 2: .col-xs-8 .col-sm-6
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-4 col-sm-6"</span><span class=nt>&gt;</span>
-        Level 2: .col-xs-4 .col-sm-6
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-column-ordering>Column ordering</h2> <p>Easily change the order of our built-in grid columns with <code>.col-md-push-*</code> and <code>.col-md-pull-*</code> modifier classes.</p> <div class="row show-grid"> <div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div> <div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-9 col-md-push-3"</span><span class=nt>&gt;</span>.col-md-9 .col-md-push-3<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-3 col-md-pull-9"</span><span class=nt>&gt;</span>.col-md-3 .col-md-pull-9<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=grid-less>Less mixins and variables</h2> <p>In addition to <a href=#grid-example-basic>prebuilt grid classes</a> for fast layouts, Bootstrap includes Less variables and mixins for quickly generating your own simple, semantic layouts.</p> <h3>Variables</h3> <p>Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@grid-columns</span><span class=nd>:</span>              <span class=nt>12</span><span class=p>;</span>
-<span class=k>@grid-gutter-width</span><span class=nd>:</span>         <span class=nt>30px</span><span class=p>;</span>
-<span class=k>@grid-float-breakpoint</span><span class=nd>:</span>     <span class=nt>768px</span><span class=p>;</span></code></pre></figure> <h3>Mixins</h3> <p>Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Creates a wrapper for a series of columns
-</span><span class=err>.</span><span class=na>make-row</span><span class=err>(@</span><span class=na>gutter</span><span class=p>:</span> <span class=o>@</span><span class=n>grid-gutter-width</span><span class=p>)</span> <span class=p>{</span>
-  <span class=c1>// Then clear the floated columns
-</span>  <span class=nc>.clearfix</span><span class=o>()</span><span class=p>;</span>
-
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>margin-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>-2</span><span class=p>);</span>
-    <span class=nl>margin-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>-2</span><span class=p>);</span>
-  <span class=p>}</span>
-
-  <span class=c1>// Negative margin nested rows out to align the content of columns
-</span>  <span class=nc>.row</span> <span class=p>{</span>
-    <span class=nl>margin-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>-2</span><span class=p>);</span>
-    <span class=nl>margin-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>-2</span><span class=p>);</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the extra small columns
-</span><span class=nc>.make-xs-column</span><span class=o>(@</span><span class=nt>columns</span><span class=p>;</span> <span class=k>@gutter</span><span class=nd>:</span> <span class=o>@</span><span class=nt>grid-gutter-width</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>position</span><span class=p>:</span> <span class=nb>relative</span><span class=p>;</span>
-  <span class=c1>// Prevent columns from collapsing when empty
-</span>  <span class=nl>min-height</span><span class=p>:</span> <span class=m>1px</span><span class=p>;</span>
-  <span class=c1>// Inner gutter via padding
-</span>  <span class=nl>padding-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-  <span class=nl>padding-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-
-  <span class=c1>// Calculate width based on number of columns available
-</span>  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>grid-float-breakpoint</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>float</span><span class=p>:</span> <span class=nb>left</span><span class=p>;</span>
-    <span class=nl>width</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the small columns
-</span><span class=nc>.make-sm-column</span><span class=o>(@</span><span class=nt>columns</span><span class=p>;</span> <span class=k>@gutter</span><span class=nd>:</span> <span class=o>@</span><span class=nt>grid-gutter-width</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>position</span><span class=p>:</span> <span class=nb>relative</span><span class=p>;</span>
-  <span class=c1>// Prevent columns from collapsing when empty
-</span>  <span class=nl>min-height</span><span class=p>:</span> <span class=m>1px</span><span class=p>;</span>
-  <span class=c1>// Inner gutter via padding
-</span>  <span class=nl>padding-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-  <span class=nl>padding-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-
-  <span class=c1>// Calculate width based on number of columns available
-</span>  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>float</span><span class=p>:</span> <span class=nb>left</span><span class=p>;</span>
-    <span class=nl>width</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the small column offsets
-</span><span class=nc>.make-sm-column-offset</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>margin-left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-sm-column-push</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-sm-column-pull</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-sm-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>right</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the medium columns
-</span><span class=nc>.make-md-column</span><span class=o>(@</span><span class=nt>columns</span><span class=p>;</span> <span class=k>@gutter</span><span class=nd>:</span> <span class=o>@</span><span class=nt>grid-gutter-width</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>position</span><span class=p>:</span> <span class=nb>relative</span><span class=p>;</span>
-  <span class=c1>// Prevent columns from collapsing when empty
-</span>  <span class=nl>min-height</span><span class=p>:</span> <span class=m>1px</span><span class=p>;</span>
-  <span class=c1>// Inner gutter via padding
-</span>  <span class=nl>padding-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-  <span class=nl>padding-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-
-  <span class=c1>// Calculate width based on number of columns available
-</span>  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>float</span><span class=p>:</span> <span class=nb>left</span><span class=p>;</span>
-    <span class=nl>width</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the medium column offsets
-</span><span class=nc>.make-md-column-offset</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>margin-left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-md-column-push</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-md-column-pull</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-md-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>right</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the large columns
-</span><span class=nc>.make-lg-column</span><span class=o>(@</span><span class=nt>columns</span><span class=p>;</span> <span class=k>@gutter</span><span class=nd>:</span> <span class=o>@</span><span class=nt>grid-gutter-width</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>position</span><span class=p>:</span> <span class=nb>relative</span><span class=p>;</span>
-  <span class=c1>// Prevent columns from collapsing when empty
-</span>  <span class=nl>min-height</span><span class=p>:</span> <span class=m>1px</span><span class=p>;</span>
-  <span class=c1>// Inner gutter via padding
-</span>  <span class=nl>padding-left</span><span class=p>:</span>  <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-  <span class=nl>padding-right</span><span class=p>:</span> <span class=p>(</span><span class=o>@</span><span class=n>gutter</span> <span class=o>/</span> <span class=m>2</span><span class=p>);</span>
-
-  <span class=c1>// Calculate width based on number of columns available
-</span>  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>float</span><span class=p>:</span> <span class=nb>left</span><span class=p>;</span>
-    <span class=nl>width</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Generate the large column offsets
-</span><span class=nc>.make-lg-column-offset</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>margin-left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-lg-column-push</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>left</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.make-lg-column-pull</span><span class=o>(@</span><span class=nt>columns</span><span class=o>)</span> <span class=p>{</span>
-  <span class=k>@media</span> <span class=p>(</span><span class=n>min-width</span><span class=o>:</span> <span class=o>@</span><span class=n>screen-lg-min</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>right</span><span class=p>:</span> <span class=nf>percentage</span><span class=p>((</span><span class=o>@</span><span class=n>columns</span> <span class=o>/</span> <span class=o>@</span><span class=n>grid-columns</span><span class=p>));</span>
-  <span class=p>}</span>
-<span class=p>}</span></code></pre></figure> <h3>Example usage</h3> <p>You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.wrapper</span> <span class=p>{</span>
-  <span class=nc>.make-row</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.content-main</span> <span class=p>{</span>
-  <span class=nc>.make-lg-column</span><span class=o>(</span><span class=nt>8</span><span class=o>)</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.content-secondary</span> <span class=p>{</span>
-  <span class=nc>.make-lg-column</span><span class=o>(</span><span class=nt>3</span><span class=o>)</span><span class=p>;</span>
-  <span class=nc>.make-lg-column-offset</span><span class=o>(</span><span class=nt>1</span><span class=o>)</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"wrapper"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"content-main"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"content-secondary"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=type>Typography</h1> <h2 id=type-headings>Headings</h2> <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code>, are available. <code>.h1</code> through <code>.h6</code> classes are also available, for when you want to match the font styling of a heading but still want your text to be displayed inline.</p> <div class="bs-example bs-example-type" data-example-id=simple-headings> <table class=table> <tbody> <tr> <td><h1>h1. Bootstrap heading</h1></td> <td class=type-info>Semibold 36px</td> </tr> <tr> <td><h2>h2. Bootstrap heading</h2></td> <td class=type-info>Semibold 30px</td> </tr> <tr> <td><h3>h3. Bootstrap heading</h3></td> <td class=type-info>Semibold 24px</td> </tr> <tr> <td><h4>h4. Bootstrap heading</h4></td> <td class=type-info>Semibold 18px</td> </tr> <tr> <td><h5>h5. Bootstrap heading</h5></td> <td class=type-info>Semibold 14px</td> </tr> <tr> <td><h6>h6. Bootstrap heading</h6></td> <td class=type-info>Semibold 12px</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;h1&gt;</span>h1. Bootstrap heading<span class=nt>&lt;/h1&gt;</span>
-<span class=nt>&lt;h2&gt;</span>h2. Bootstrap heading<span class=nt>&lt;/h2&gt;</span>
-<span class=nt>&lt;h3&gt;</span>h3. Bootstrap heading<span class=nt>&lt;/h3&gt;</span>
-<span class=nt>&lt;h4&gt;</span>h4. Bootstrap heading<span class=nt>&lt;/h4&gt;</span>
-<span class=nt>&lt;h5&gt;</span>h5. Bootstrap heading<span class=nt>&lt;/h5&gt;</span>
-<span class=nt>&lt;h6&gt;</span>h6. Bootstrap heading<span class=nt>&lt;/h6&gt;</span></code></pre></figure> <p>Create lighter, secondary text in any heading with a generic <code>&lt;small&gt;</code> tag or the <code>.small</code> class.</p> <div class="bs-example bs-example-type" data-example-id=small-headings> <table class=table> <tbody> <tr> <td><h1>h1. Bootstrap heading <small>Secondary text</small></h1></td> </tr> <tr> <td><h2>h2. Bootstrap heading <small>Secondary text</small></h2></td> </tr> <tr> <td><h3>h3. Bootstrap heading <small>Secondary text</small></h3></td> </tr> <tr> <td><h4>h4. Bootstrap heading <small>Secondary text</small></h4></td> </tr> <tr> <td><h5>h5. Bootstrap heading <small>Secondary text</small></h5></td> </tr> <tr> <td><h6>h6. Bootstrap heading <small>Secondary text</small></h6></td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;h1&gt;</span>h1. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h1&gt;</span>
-<span class=nt>&lt;h2&gt;</span>h2. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h2&gt;</span>
-<span class=nt>&lt;h3&gt;</span>h3. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h3&gt;</span>
-<span class=nt>&lt;h4&gt;</span>h4. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h4&gt;</span>
-<span class=nt>&lt;h5&gt;</span>h5. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h5&gt;</span>
-<span class=nt>&lt;h6&gt;</span>h6. Bootstrap heading <span class=nt>&lt;small&gt;</span>Secondary text<span class=nt>&lt;/small&gt;&lt;/h6&gt;</span></code></pre></figure> <h2 id=type-body-copy>Body copy</h2> <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>1.428</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p> <div class=bs-example data-example-id=body-copy> <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p> <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p> <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span></code></pre></figure> <h3>Lead body copy</h3> <p>Make a paragraph stand out by adding <code>.lead</code>.</p> <div class=bs-example data-example-id=lead-copy> <p class=lead>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"lead"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span></code></pre></figure> <h3>Built with Less</h3> <p>The typographic scale is based on two Less variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p> <h2 id=type-inline-text>Inline text elements</h2> <h3>Marked text</h3> <p>For highlighting a run of text due to its relevance in another context, use the <code>&lt;mark&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-mark> <p>You can use the mark tag to <mark>highlight</mark> text.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html>You can use the mark tag to <span class=nt>&lt;mark&gt;</span>highlight<span class=nt>&lt;/mark&gt;</span> text.</code></pre></figure> <h3>Deleted text</h3> <p>For indicating blocks of text that have been deleted use the <code>&lt;del&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-del> <p><del>This line of text is meant to be treated as deleted text.</del></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;del&gt;</span>This line of text is meant to be treated as deleted text.<span class=nt>&lt;/del&gt;</span></code></pre></figure> <h3>Strikethrough text</h3> <p>For indicating blocks of text that are no longer relevant use the <code>&lt;s&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-s> <p><s>This line of text is meant to be treated as no longer accurate.</s></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;s&gt;</span>This line of text is meant to be treated as no longer accurate.<span class=nt>&lt;/s&gt;</span></code></pre></figure> <h3>Inserted text</h3> <p>For indicating additions to the document use the <code>&lt;ins&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-ins> <p><ins>This line of text is meant to be treated as an addition to the document.</ins></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ins&gt;</span>This line of text is meant to be treated as an addition to the document.<span class=nt>&lt;/ins&gt;</span></code></pre></figure> <h3>Underlined text</h3> <p>To underline text use the <code>&lt;u&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-u> <p><u>This line of text will render as underlined</u></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;u&gt;</span>This line of text will render as underlined<span class=nt>&lt;/u&gt;</span></code></pre></figure> <p>Make use of HTML's default emphasis tags with lightweight styles.</p> <h3>Small text</h3> <p>For de-emphasizing inline or blocks of text, use the <code>&lt;small&gt;</code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code>&lt;small&gt;</code> elements.</p> <p>You may alternatively use an inline element with <code>.small</code> in place of any <code>&lt;small&gt;</code>.</p> <div class=bs-example data-example-id=simple-small> <p><small>This line of text is meant to be treated as fine print.</small></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;small&gt;</span>This line of text is meant to be treated as fine print.<span class=nt>&lt;/small&gt;</span></code></pre></figure> <h3>Bold</h3> <p>For emphasizing a snippet of text with a heavier font-weight.</p> <div class=bs-example data-example-id=simple-strong> <p>The following snippet of text is <strong>rendered as bold text</strong>.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;strong&gt;</span>rendered as bold text<span class=nt>&lt;/strong&gt;</span></code></pre></figure> <h3>Italics</h3> <p>For emphasizing a snippet of text with italics.</p> <div class=bs-example data-example-id=simple-em> <p>The following snippet of text is <em>rendered as italicized text</em>.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;em&gt;</span>rendered as italicized text<span class=nt>&lt;/em&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-type-b-i-elems> <h4>Alternate elements</h4> <p>Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p> </div> <h2 id=type-alignment>Alignment classes</h2> <p>Easily realign text to components with text alignment classes.</p> <div class=bs-example data-example-id=text-alignment> <p class=text-left>Left aligned text.</p> <p class=text-center>Center aligned text.</p> <p class=text-right>Right aligned text.</p> <p class=text-justify>Justified text.</p> <p class=text-nowrap>No wrap text.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-left"</span><span class=nt>&gt;</span>Left aligned text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-center"</span><span class=nt>&gt;</span>Center aligned text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-right"</span><span class=nt>&gt;</span>Right aligned text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-justify"</span><span class=nt>&gt;</span>Justified text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-nowrap"</span><span class=nt>&gt;</span>No wrap text.<span class=nt>&lt;/p&gt;</span></code></pre></figure> <h2 id=type-transformation>Transformation classes</h2> <p>Transform text in components with text capitalization classes.</p> <div class=bs-example data-example-id=text-capitalization> <p class=text-lowercase>Lowercased text.</p> <p class=text-uppercase>Uppercased text.</p> <p class=text-capitalize>Capitalized text.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-lowercase"</span><span class=nt>&gt;</span>Lowercased text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-uppercase"</span><span class=nt>&gt;</span>Uppercased text.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-capitalize"</span><span class=nt>&gt;</span>Capitalized text.<span class=nt>&lt;/p&gt;</span></code></pre></figure> <h2 id=type-abbreviations>Abbreviations</h2> <p>Stylized implementation of HTML's <code>&lt;abbr&gt;</code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover and to users of assistive technologies.</p> <h3>Basic abbreviation</h3> <div class=bs-example data-example-id=simple-abbr> <p>An abbreviation of the word attribute is <abbr title=attribute>attr</abbr>.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;abbr</span> <span class=na>title=</span><span class=s>"attribute"</span><span class=nt>&gt;</span>attr<span class=nt>&lt;/abbr&gt;</span></code></pre></figure> <h3>Initialism</h3> <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p> <div class=bs-example data-example-id=simple-initialism> <p><abbr title="HyperText Markup Language" class=initialism>HTML</abbr> is the best thing since sliced bread.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;abbr</span> <span class=na>title=</span><span class=s>"HyperText Markup Language"</span> <span class=na>class=</span><span class=s>"initialism"</span><span class=nt>&gt;</span>HTML<span class=nt>&lt;/abbr&gt;</span></code></pre></figure> <h2 id=type-addresses>Addresses</h2> <p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p> <div class=bs-example data-example-id=simple-address> <address> <strong>Twitter, Inc.</strong><br> 1355 Market Street, Suite 900<br> San Francisco, CA 94103<br> <abbr title=Phone>P:</abbr> (123) 456-7890 </address> <address> <strong>Full Name</strong><br> <a href=mailto:#>first.last@example.com</a> </address> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;address&gt;</span>
-  <span class=nt>&lt;strong&gt;</span>Twitter, Inc.<span class=nt>&lt;/strong&gt;&lt;br&gt;</span>
-  1355 Market Street, Suite 900<span class=nt>&lt;br&gt;</span>
-  San Francisco, CA 94103<span class=nt>&lt;br&gt;</span>
-  <span class=nt>&lt;abbr</span> <span class=na>title=</span><span class=s>"Phone"</span><span class=nt>&gt;</span>P:<span class=nt>&lt;/abbr&gt;</span> (123) 456-7890
-<span class=nt>&lt;/address&gt;</span>
-
-<span class=nt>&lt;address&gt;</span>
-  <span class=nt>&lt;strong&gt;</span>Full Name<span class=nt>&lt;/strong&gt;&lt;br&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"mailto:#"</span><span class=nt>&gt;</span>first.last@example.com<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/address&gt;</span></code></pre></figure> <h2 id=type-blockquotes>Blockquotes</h2> <p>For quoting blocks of content from another source within your document.</p> <h3>Default blockquote</h3> <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes, we recommend a <code>&lt;p&gt;</code>.</p> <div class=bs-example data-example-id=simple-blockquote> <blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> </blockquote> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;blockquote&gt;</span>
-  <span class=nt>&lt;p&gt;</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;/blockquote&gt;</span></code></pre></figure> <h3>Blockquote options</h3> <p>Style and content changes for simple variations on a standard <code>&lt;blockquote&gt;</code>.</p> <h4>Naming a source</h4> <p>Add a <code>&lt;footer&gt;</code> for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p> <div class=bs-example data-example-id=blockquote-cite> <blockquote> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;blockquote&gt;</span>
-  <span class=nt>&lt;p&gt;</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;footer&gt;</span>Someone famous in <span class=nt>&lt;cite</span> <span class=na>title=</span><span class=s>"Source Title"</span><span class=nt>&gt;</span>Source Title<span class=nt>&lt;/cite&gt;&lt;/footer&gt;</span>
-<span class=nt>&lt;/blockquote&gt;</span></code></pre></figure> <h4>Alternate displays</h4> <p>Add <code>.blockquote-reverse</code> for a blockquote with right-aligned content.</p> <div class=bs-example style=overflow:hidden data-example-id=blockquote-reverse> <blockquote class=blockquote-reverse> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;blockquote</span> <span class=na>class=</span><span class=s>"blockquote-reverse"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/blockquote&gt;</span></code></pre></figure> <h2 id=type-lists>Lists</h2> <h3>Unordered</h3> <p>A list of items in which the order does <em>not</em> explicitly matter.</p> <div class=bs-example data-example-id=simple-ul> <ul> <li>Lorem ipsum dolor sit amet</li> <li>Consectetur adipiscing elit</li> <li>Integer molestie lorem at massa</li> <li>Facilisis in pretium nisl aliquet</li> <li>Nulla volutpat aliquam velit <ul> <li>Phasellus iaculis neque</li> <li>Purus sodales ultricies</li> <li>Vestibulum laoreet porttitor sem</li> <li>Ac tristique libero volutpat at</li> </ul> </li> <li>Faucibus porta lacus fringilla vel</li> <li>Aenean sit amet erat nunc</li> <li>Eget porttitor lorem</li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul&gt;</span>
-  <span class=nt>&lt;li&gt;</span>...<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h3>Ordered</h3> <p>A list of items in which the order <em>does</em> explicitly matter.</p> <div class=bs-example data-example-id=simple-ol> <ol> <li>Lorem ipsum dolor sit amet</li> <li>Consectetur adipiscing elit</li> <li>Integer molestie lorem at massa</li> <li>Facilisis in pretium nisl aliquet</li> <li>Nulla volutpat aliquam velit</li> <li>Faucibus porta lacus fringilla vel</li> <li>Aenean sit amet erat nunc</li> <li>Eget porttitor lorem</li> </ol> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ol&gt;</span>
-  <span class=nt>&lt;li&gt;</span>...<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ol&gt;</span></code></pre></figure> <h3>Unstyled</h3> <p>Remove the default <code>list-style</code> and left margin on list items (immediate children only). <strong>This only applies to immediate children list items</strong>, meaning you will need to add the class for any nested lists as well.</p> <div class=bs-example data-example-id=unstyled-list> <ul class=list-unstyled> <li>Lorem ipsum dolor sit amet</li> <li>Consectetur adipiscing elit</li> <li>Integer molestie lorem at massa</li> <li>Facilisis in pretium nisl aliquet</li> <li>Nulla volutpat aliquam velit <ul> <li>Phasellus iaculis neque</li> <li>Purus sodales ultricies</li> <li>Vestibulum laoreet porttitor sem</li> <li>Ac tristique libero volutpat at</li> </ul> </li> <li>Faucibus porta lacus fringilla vel</li> <li>Aenean sit amet erat nunc</li> <li>Eget porttitor lorem</li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-unstyled"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li&gt;</span>...<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h3>Inline</h3> <p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.</p> <div class=bs-example data-example-id=list-inline> <ul class=list-inline> <li>Lorem ipsum</li> <li>Phasellus iaculis</li> <li>Nulla volutpat</li> </ul> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"list-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;li&gt;</span>...<span class=nt>&lt;/li&gt;</span>
-<span class=nt>&lt;/ul&gt;</span></code></pre></figure> <h3>Description</h3> <p>A list of terms with their associated descriptions.</p> <div class=bs-example data-example-id=simple-dl> <dl> <dt>Description lists</dt> <dd>A description list is perfect for defining terms.</dd> <dt>Euismod</dt> <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd> <dd>Donec id elit non mi porta gravida at eget metus.</dd> <dt>Malesuada porta</dt> <dd>Etiam porta sem malesuada magna mollis euismod.</dd> </dl> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;dl&gt;</span>
-  <span class=nt>&lt;dt&gt;</span>...<span class=nt>&lt;/dt&gt;</span>
-  <span class=nt>&lt;dd&gt;</span>...<span class=nt>&lt;/dd&gt;</span>
-<span class=nt>&lt;/dl&gt;</span></code></pre></figure> <h4>Horizontal description</h4> <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side. Starts off stacked like default <code>&lt;dl&gt;</code>s, but when the navbar expands, so do these.</p> <div class=bs-example data-example-id=horizontal-dl> <dl class=dl-horizontal> <dt>Description lists</dt> <dd>A description list is perfect for defining terms.</dd> <dt>Euismod</dt> <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd> <dd>Donec id elit non mi porta gravida at eget metus.</dd> <dt>Malesuada porta</dt> <dd>Etiam porta sem malesuada magna mollis euismod.</dd> <dt>Felis euismod semper eget lacinia</dt> <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd> </dl> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;dl</span> <span class=na>class=</span><span class=s>"dl-horizontal"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;dt&gt;</span>...<span class=nt>&lt;/dt&gt;</span>
-  <span class=nt>&lt;dd&gt;</span>...<span class=nt>&lt;/dd&gt;</span>
-<span class=nt>&lt;/dl&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-type-dl-truncate> <h4>Auto-truncating</h4> <p>Horizontal description lists will truncate terms that are too long to fit in the left column with <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.</p> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=code>Code</h1> <h2 id=code-inline>Inline</h2> <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p> <div class=bs-example data-example-id=inline-code> For example, <code>&lt;section&gt;</code> should be wrapped as inline. </div> <figure class=highlight><pre><code class=language-html data-lang=html>For example, <span class=nt>&lt;code&gt;</span><span class=ni>&amp;lt;</span>section<span class=ni>&amp;gt;</span><span class=nt>&lt;/code&gt;</span> should be wrapped as inline.</code></pre></figure> <h2 id=code-user-input>User input</h2> <p>Use the <code>&lt;kbd&gt;</code> to indicate input that is typically entered via keyboard.</p> <div class=bs-example data-example-id=simple-kbd> To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br> To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd> </div> <figure class=highlight><pre><code class=language-html data-lang=html>To switch directories, type <span class=nt>&lt;kbd&gt;</span>cd<span class=nt>&lt;/kbd&gt;</span> followed by the name of the directory.<span class=nt>&lt;br&gt;</span>
-To edit settings, press <span class=nt>&lt;kbd&gt;&lt;kbd&gt;</span>ctrl<span class=nt>&lt;/kbd&gt;</span> + <span class=nt>&lt;kbd&gt;</span>,<span class=nt>&lt;/kbd&gt;&lt;/kbd&gt;</span></code></pre></figure> <h2 id=code-block>Basic block</h2> <p>Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p> <div class=bs-example data-example-id=simple-pre> <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;pre&gt;</span><span class=ni>&amp;lt;</span>p<span class=ni>&amp;gt;</span>Sample text here...<span class=ni>&amp;lt;</span>/p<span class=ni>&amp;gt;</span><span class=nt>&lt;/pre&gt;</span></code></pre></figure> <p>You may optionally add the <code>.pre-scrollable</code> class, which will set a max-height of 350px and provide a y-axis scrollbar.</p> <h2 id=code-variables>Variables</h2> <p>For indicating variables use the <code>&lt;var&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-var> <p><var>y</var> = <var>m</var><var>x</var> + <var>b</var></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;var&gt;</span>y<span class=nt>&lt;/var&gt;</span> = <span class=nt>&lt;var&gt;</span>m<span class=nt>&lt;/var&gt;&lt;var&gt;</span>x<span class=nt>&lt;/var&gt;</span> + <span class=nt>&lt;var&gt;</span>b<span class=nt>&lt;/var&gt;</span></code></pre></figure> <h2 id=code-sample-output>Sample output</h2> <p>For indicating blocks sample output from a program use the <code>&lt;samp&gt;</code> tag.</p> <div class=bs-example data-example-id=simple-samp> <p><samp>This text is meant to be treated as sample output from a computer program.</samp></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;samp&gt;</span>This text is meant to be treated as sample output from a computer program.<span class=nt>&lt;/samp&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=tables>Tables</h1> <h2 id=tables-example>Basic example</h2> <p>For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class <code>.table</code> to any <code>&lt;table&gt;</code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p> <div class=bs-example data-example-id=simple-table> <table class=table> <caption>Optional table caption.</caption> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/table&gt;</span></code></pre></figure> <h2 id=tables-striped>Striped rows</h2> <p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>&lt;tbody&gt;</code>.</p> <div class="bs-callout bs-callout-danger" id=callout-tables-striped-ie8> <h4>Cross-browser compatibility</h4> <p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in Internet Explorer 8.</p> </div> <div class=bs-example data-example-id=striped-table> <table class="table table-striped"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table table-striped"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/table&gt;</span></code></pre></figure> <h2 id=tables-bordered>Bordered table</h2> <p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p> <div class=bs-example data-example-id=bordered-table> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table table-bordered"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/table&gt;</span></code></pre></figure> <h2 id=tables-hover-rows>Hover rows</h2> <p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</p> <div class=bs-example data-example-id=hoverable-table> <table class="table table-hover"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td>Larry</td> <td>the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table table-hover"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/table&gt;</span></code></pre></figure> <h2 id=tables-condensed>Condensed table</h2> <p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p> <div class=bs-example data-example-id=condensed-table> <table class="table table-condensed"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Mark</td> <td>Otto</td> <td>@mdo</td> </tr> <tr> <th scope=row>2</th> <td>Jacob</td> <td>Thornton</td> <td>@fat</td> </tr> <tr> <th scope=row>3</th> <td colspan=2>Larry the Bird</td> <td>@twitter</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table table-condensed"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/table&gt;</span></code></pre></figure> <h2 id=tables-contextual-classes>Contextual classes</h2> <p>Use contextual classes to color table rows or individual cells.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <colgroup> <col class=col-xs-1> <col class=col-xs-7> </colgroup> <thead> <tr> <th>Class</th> <th>Description</th> </tr> </thead> <tbody> <tr> <th scope=row> <code>.active</code> </th> <td>Applies the hover color to a particular row or cell</td> </tr> <tr> <th scope=row> <code>.success</code> </th> <td>Indicates a successful or positive action</td> </tr> <tr> <th scope=row> <code>.info</code> </th> <td>Indicates a neutral informative change or action</td> </tr> <tr> <th scope=row> <code>.warning</code> </th> <td>Indicates a warning that might need attention</td> </tr> <tr> <th scope=row> <code>.danger</code> </th> <td>Indicates a dangerous or potentially negative action</td> </tr> </tbody> </table> </div> <div class=bs-example data-example-id=contextual-table> <table class=table> <thead> <tr> <th>#</th> <th>Column heading</th> <th>Column heading</th> <th>Column heading</th> </tr> </thead> <tbody> <tr class=active> <th scope=row>1</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <th scope=row>2</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class=success> <th scope=row>3</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <th scope=row>4</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class=info> <th scope=row>5</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <th scope=row>6</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class=warning> <th scope=row>7</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr> <th scope=row>8</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> <tr class=danger> <th scope=row>9</th> <td>Column content</td> <td>Column content</td> <td>Column content</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- On rows --&gt;</span>
-<span class=nt>&lt;tr</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/tr&gt;</span>
-<span class=nt>&lt;tr</span> <span class=na>class=</span><span class=s>"success"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/tr&gt;</span>
-<span class=nt>&lt;tr</span> <span class=na>class=</span><span class=s>"warning"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/tr&gt;</span>
-<span class=nt>&lt;tr</span> <span class=na>class=</span><span class=s>"danger"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/tr&gt;</span>
-<span class=nt>&lt;tr</span> <span class=na>class=</span><span class=s>"info"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/tr&gt;</span>
-
-<span class=c>&lt;!-- On cells (`td` or `th`) --&gt;</span>
-<span class=nt>&lt;tr&gt;</span>
-  <span class=nt>&lt;td</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/td&gt;</span>
-  <span class=nt>&lt;td</span> <span class=na>class=</span><span class=s>"success"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/td&gt;</span>
-  <span class=nt>&lt;td</span> <span class=na>class=</span><span class=s>"warning"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/td&gt;</span>
-  <span class=nt>&lt;td</span> <span class=na>class=</span><span class=s>"danger"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/td&gt;</span>
-  <span class=nt>&lt;td</span> <span class=na>class=</span><span class=s>"info"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/td&gt;</span>
-<span class=nt>&lt;/tr&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-tables-context-accessibility> <h4>Conveying meaning to assistive technologies</h4> <p>Using color to add meaning to a table row or individual cell only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the visible text in the relevant table row/cell), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p> </div> <h2 id=tables-responsive>Responsive tables</h2> <p>Create responsive tables by wrapping any <code>.table</code> in <code>.table-responsive</code> to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.</p> <div class="bs-callout bs-callout-warning" id=callout-tables-responsive-overflow> <h4>Vertical clipping/truncation</h4> <p>Responsive tables make use of <code>overflow-y: hidden</code>, which clips off any content that goes beyond the bottom or top edges of the table. In particular, this can clip off dropdown menus and other third-party widgets.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-tables-responsive-ff-fieldset> <h4>Firefox and fieldsets</h4> <p>Firefox has some awkward fieldset styling involving <code>width</code> that interferes with the responsive table. This cannot be overridden without a Firefox-specific hack that we <strong>don't</strong> provide in Bootstrap:</p> <figure class=highlight><pre><code class=language-css data-lang=css><span class=k>@-moz-document</span> <span class=n>url-prefix</span><span class=p>()</span> <span class=p>{</span>
-  <span class=nt>fieldset</span> <span class=p>{</span> <span class=nl>display</span><span class=p>:</span> <span class=nb>table-cell</span><span class=p>;</span> <span class=p>}</span>
-<span class=p>}</span></code></pre></figure> <p>For more information, read <a href=https://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685>this Stack Overflow answer</a>.</p> </div> <div class=bs-example data-example-id=simple-responsive-table> <div class=table-responsive> <table class=table> <thead> <tr> <th>#</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <th scope=row>2</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <th scope=row>3</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> </tbody> </table> </div> <div class=table-responsive> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> <th>Table heading</th> </tr> </thead> <tbody> <tr> <th scope=row>1</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <th scope=row>2</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> <tr> <th scope=row>3</th> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> <td>Table cell</td> </tr> </tbody> </table> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"table-responsive"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;table</span> <span class=na>class=</span><span class=s>"table"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/table&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=forms>Forms</h1> <h2 id=forms-example>Basic example</h2> <p>Individual form controls automatically receive some global styling. All textual <code>&lt;input&gt;</code>, <code>&lt;textarea&gt;</code>, and <code>&lt;select&gt;</code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p> <div class=bs-example data-example-id=basic-forms> <form> <div class=form-group> <label for=exampleInputEmail1>Email address</label> <input type=email class=form-control id=exampleInputEmail1 placeholder=Email> </div> <div class=form-group> <label for=exampleInputPassword1>Password</label> <input type=password class=form-control id=exampleInputPassword1 placeholder=Password> </div> <div class=form-group> <label for=exampleInputFile>File input</label> <input type=file id=exampleInputFile> <p class=help-block>Example block-level help text here.</p> </div> <div class=checkbox> <label> <input type=checkbox> Check me out </label> </div> <button type=submit class="btn btn-default">Submit</button> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"exampleInputEmail1"</span><span class=nt>&gt;</span>Email address<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"email"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputEmail1"</span> <span class=na>placeholder=</span><span class=s>"Email"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"exampleInputPassword1"</span><span class=nt>&gt;</span>Password<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"password"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputPassword1"</span> <span class=na>placeholder=</span><span class=s>"Password"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"exampleInputFile"</span><span class=nt>&gt;</span>File input<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"file"</span> <span class=na>id=</span><span class=s>"exampleInputFile"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"help-block"</span><span class=nt>&gt;</span>Example block-level help text here.<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span> Check me out
-    <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Submit<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-formgroup-inputgroup> <h4>Don't mix form groups with input groups</h4> <p>Do not mix form groups directly with <a href=/components/#input-groups>input groups</a>. Instead, nest the input group inside of the form group.</p> </div> <h2 id=forms-inline>Inline form</h2> <p>Add <code>.form-inline</code> to your form (which doesn't have to be a <code>&lt;form&gt;</code>) for left-aligned and inline-block controls. <strong>This only applies to forms within viewports that are at least 768px wide.</strong></p> <div class="bs-callout bs-callout-danger" id=callout-inline-form-width> <h4>May require custom widths</h4> <p>Inputs and selects have <code>width: 100%;</code> applied by default in Bootstrap. Within inline forms, we reset that to <code>width: auto;</code> so multiple controls can reside on the same line. Depending on your layout, additional custom widths may be required.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-inline-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> <div class=bs-example data-example-id=simple-form-inline> <form class=form-inline> <div class=form-group> <label for=exampleInputName2>Name</label> <input class=form-control id=exampleInputName2 placeholder="Jane Doe"> </div> <div class=form-group> <label for=exampleInputEmail2>Email</label> <input type=email class=form-control id=exampleInputEmail2 placeholder=jane.doe@example.com> </div> <button type=submit class="btn btn-default">Send invitation</button> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"exampleInputName2"</span><span class=nt>&gt;</span>Name<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputName2"</span> <span class=na>placeholder=</span><span class=s>"Jane Doe"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"exampleInputEmail2"</span><span class=nt>&gt;</span>Email<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"email"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputEmail2"</span> <span class=na>placeholder=</span><span class=s>"jane.doe@example.com"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Send invitation<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class=bs-example data-example-id=simple-form-inline> <form class=form-inline> <div class=form-group> <label class=sr-only for=exampleInputEmail3>Email address</label> <input type=email class=form-control id=exampleInputEmail3 placeholder=Email> </div> <div class=form-group> <label class=sr-only for=exampleInputPassword3>Password</label> <input type=password class=form-control id=exampleInputPassword3 placeholder=Password> </div> <div class=checkbox> <label> <input type=checkbox> Remember me </label> </div> <button type=submit class="btn btn-default">Sign in</button> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"sr-only"</span> <span class=na>for=</span><span class=s>"exampleInputEmail3"</span><span class=nt>&gt;</span>Email address<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"email"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputEmail3"</span> <span class=na>placeholder=</span><span class=s>"Email"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"sr-only"</span> <span class=na>for=</span><span class=s>"exampleInputPassword3"</span><span class=nt>&gt;</span>Password<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"password"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputPassword3"</span> <span class=na>placeholder=</span><span class=s>"Password"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span> Remember me
-    <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Sign in<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class=bs-example data-example-id=form-inline-with-input-group> <form class=form-inline> <div class=form-group> <label class=sr-only for=exampleInputAmount>Amount (in dollars)</label> <div class=input-group> <div class=input-group-addon>$</div> <input class=form-control id=exampleInputAmount placeholder=Amount> <div class=input-group-addon>.00</div> </div> </div> <button type=submit class="btn btn-primary">Transfer cash</button> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"sr-only"</span> <span class=na>for=</span><span class=s>"exampleInputAmount"</span><span class=nt>&gt;</span>Amount (in dollars)<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>$<span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"exampleInputAmount"</span> <span class=na>placeholder=</span><span class=s>"Amount"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>.00<span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Transfer cash<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h2 id=forms-horizontal>Horizontal form</h2> <p>Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding <code>.form-horizontal</code> to the form (which doesn't have to be a <code>&lt;form&gt;</code>). Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p> <div class=bs-example data-example-id=simple-horizontal-form> <form class=form-horizontal> <div class=form-group> <label for=inputEmail3 class="col-sm-2 control-label">Email</label> <div class=col-sm-10> <input type=email class=form-control id=inputEmail3 placeholder=Email> </div> </div> <div class=form-group> <label for=inputPassword3 class="col-sm-2 control-label">Password</label> <div class=col-sm-10> <input type=password class=form-control id=inputPassword3 placeholder=Password> </div> </div> <div class=form-group> <div class="col-sm-offset-2 col-sm-10"> <div class=checkbox> <label> <input type=checkbox> Remember me </label> </div> </div> </div> <div class=form-group> <div class="col-sm-offset-2 col-sm-10"> <button type=submit class="btn btn-default">Sign in</button> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-horizontal"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"inputEmail3"</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span><span class=nt>&gt;</span>Email<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"email"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputEmail3"</span> <span class=na>placeholder=</span><span class=s>"Email"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"inputPassword3"</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span><span class=nt>&gt;</span>Password<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"password"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputPassword3"</span> <span class=na>placeholder=</span><span class=s>"Password"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-offset-2 col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;label&gt;</span>
-          <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span> Remember me
-        <span class=nt>&lt;/label&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-offset-2 col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Sign in<span class=nt>&lt;/button&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h2 id=forms-controls>Supported controls</h2> <p>Examples of standard form controls supported in an example form layout.</p> <h3>Inputs</h3> <p>Most common form control, text-based input fields. Includes support for all HTML5 types: <code>text</code>, <code>password</code>, <code>datetime</code>, <code>datetime-local</code>, <code>date</code>, <code>month</code>, <code>time</code>, <code>week</code>, <code>number</code>, <code>email</code>, <code>url</code>, <code>search</code>, <code>tel</code>, and <code>color</code>.</p> <div class="bs-callout bs-callout-danger" id=callout-input-needs-type> <h4>Type declaration required</h4> <p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p> </div> <div class=bs-example data-example-id=text-form-control> <form> <input class=form-control placeholder="Text input"> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Text input"</span><span class=nt>&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-xref-input-group> <h4>Input groups</h4> <p>To add integrated text or buttons before and/or after any text-based <code>&lt;input&gt;</code>, <a href=../components/#input-groups>check out the input group component</a>.</p> </div> <h3>Textarea</h3> <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p> <div class=bs-example data-example-id=textarea-form-control> <form> <textarea class=form-control rows=3 placeholder=Textarea></textarea> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;textarea</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>rows=</span><span class=s>"3"</span><span class=nt>&gt;&lt;/textarea&gt;</span></code></pre></figure> <h3>Checkboxes and radios</h3> <p>Checkboxes are for selecting one or several options in a list, while radios are for selecting one option from many.</p> <p>Disabled checkboxes and radios are supported, but to provide a "not-allowed" cursor on hover of the parent <code>&lt;label&gt;</code>, you'll need to add the <code>.disabled</code> class to the parent <code>.radio</code>, <code>.radio-inline</code>, <code>.checkbox</code>, or <code>.checkbox-inline</code>.</p> <h4>Default (stacked)</h4> <div class=bs-example data-example-id=block-checkboxes-radios> <form> <div class=checkbox> <label> <input type=checkbox value=""> Option one is this and that&mdash;be sure to include why it's great </label> </div> <div class="checkbox disabled"> <label> <input type=checkbox value="" disabled> Option two is disabled </label> </div> <br> <div class=radio> <label> <input type=radio name=optionsRadios id=optionsRadios1 value=option1 checked> Option one is this and that&mdash;be sure to include why it's great </label> </div> <div class=radio> <label> <input type=radio name=optionsRadios id=optionsRadios2 value=option2> Option two can be something else and selecting it will deselect option one </label> </div> <div class="radio disabled"> <label> <input type=radio name=optionsRadios id=optionsRadios3 value=option3 disabled> Option three is disabled </label> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>value=</span><span class=s>""</span><span class=nt>&gt;</span>
-    Option one is this and that<span class=ni>&amp;mdash;</span>be sure to include why it's great
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox disabled"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>value=</span><span class=s>""</span> <span class=na>disabled</span><span class=nt>&gt;</span>
-    Option two is disabled
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"radio"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"optionsRadios"</span> <span class=na>id=</span><span class=s>"optionsRadios1"</span> <span class=na>value=</span><span class=s>"option1"</span> <span class=na>checked</span><span class=nt>&gt;</span>
-    Option one is this and that<span class=ni>&amp;mdash;</span>be sure to include why it's great
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"radio"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"optionsRadios"</span> <span class=na>id=</span><span class=s>"optionsRadios2"</span> <span class=na>value=</span><span class=s>"option2"</span><span class=nt>&gt;</span>
-    Option two can be something else and selecting it will deselect option one
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"radio disabled"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"optionsRadios"</span> <span class=na>id=</span><span class=s>"optionsRadios3"</span> <span class=na>value=</span><span class=s>"option3"</span> <span class=na>disabled</span><span class=nt>&gt;</span>
-    Option three is disabled
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h4>Inline checkboxes and radios</h4> <p>Use the <code>.checkbox-inline</code> or <code>.radio-inline</code> classes on a series of checkboxes or radios for controls that appear on the same line.</p> <div class=bs-example data-example-id=inline-checkboxes-radios> <form> <label class=checkbox-inline> <input type=checkbox id=inlineCheckbox1 value=option1> 1 </label> <label class=checkbox-inline> <input type=checkbox id=inlineCheckbox2 value=option2> 2 </label> <label class=checkbox-inline> <input type=checkbox id=inlineCheckbox3 value=option3> 3 </label> </form> <br> <form> <label class=radio-inline> <input type=radio name=inlineRadioOptions id=inlineRadio1 value=option1> 1 </label> <label class=radio-inline> <input type=radio name=inlineRadioOptions id=inlineRadio2 value=option2> 2 </label> <label class=radio-inline> <input type=radio name=inlineRadioOptions id=inlineRadio3 value=option3> 3 </label> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"checkbox-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"inlineCheckbox1"</span> <span class=na>value=</span><span class=s>"option1"</span><span class=nt>&gt;</span> 1
-<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"checkbox-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"inlineCheckbox2"</span> <span class=na>value=</span><span class=s>"option2"</span><span class=nt>&gt;</span> 2
-<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"checkbox-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"inlineCheckbox3"</span> <span class=na>value=</span><span class=s>"option3"</span><span class=nt>&gt;</span> 3
-<span class=nt>&lt;/label&gt;</span>
-
-<span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"radio-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"inlineRadioOptions"</span> <span class=na>id=</span><span class=s>"inlineRadio1"</span> <span class=na>value=</span><span class=s>"option1"</span><span class=nt>&gt;</span> 1
-<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"radio-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"inlineRadioOptions"</span> <span class=na>id=</span><span class=s>"inlineRadio2"</span> <span class=na>value=</span><span class=s>"option2"</span><span class=nt>&gt;</span> 2
-<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"radio-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"inlineRadioOptions"</span> <span class=na>id=</span><span class=s>"inlineRadio3"</span> <span class=na>value=</span><span class=s>"option3"</span><span class=nt>&gt;</span> 3
-<span class=nt>&lt;/label&gt;</span></code></pre></figure> <h4>Checkboxes and radios without label text</h4> <p>Should you have no text within the <code>&lt;label&gt;</code>, the input is positioned as you'd expect. <strong>Currently only works on non-inline checkboxes and radios.</strong> Remember to still provide some form of label for assistive technologies (for instance, using <code>aria-label</code>).</p> <div class=bs-example data-example-id=checkboxes-radios-without-labels> <form> <div class=checkbox> <label> <input type=checkbox id=blankCheckbox value=option1 aria-label="Checkbox without label text"> </label> </div> <div class=radio> <label> <input type=radio name=blankRadio id=blankRadio1 value=option1 aria-label="Radio button without label text"> </label> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"blankCheckbox"</span> <span class=na>value=</span><span class=s>"option1"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"radio"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"blankRadio"</span> <span class=na>id=</span><span class=s>"blankRadio1"</span> <span class=na>value=</span><span class=s>"option1"</span> <span class=na>aria-label=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3>Selects</h3> <p>Note that many native select menus—namely in Safari and Chrome—have rounded corners that cannot be modified via <code>border-radius</code> properties.</p> <div class=bs-example data-example-ids=select-form-control> <form> <select class=form-control> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;select</span> <span class=na>class=</span><span class=s>"form-control"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;option&gt;</span>1<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>2<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>3<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>4<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>5<span class=nt>&lt;/option&gt;</span>
-<span class=nt>&lt;/select&gt;</span></code></pre></figure> <p>For <code>&lt;select&gt;</code> controls with the <code>multiple</code> attribute, multiple options are shown by default.</p> <div class=bs-example data-example-ids=select-multiple-form-control> <form> <select multiple class=form-control> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;select</span> <span class=na>multiple</span> <span class=na>class=</span><span class=s>"form-control"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;option&gt;</span>1<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>2<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>3<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>4<span class=nt>&lt;/option&gt;</span>
-  <span class=nt>&lt;option&gt;</span>5<span class=nt>&lt;/option&gt;</span>
-<span class=nt>&lt;/select&gt;</span></code></pre></figure> <h2 id=forms-controls-static>Static control</h2> <p>When you need to place plain text next to a form label within a form, use the <code>.form-control-static</code> class on a <code>&lt;p&gt;</code>.</p> <div class=bs-example data-example-id=horizontal-static-form-control> <form class=form-horizontal> <div class=form-group> <label class="col-sm-2 control-label">Email</label> <div class=col-sm-10> <p class=form-control-static>email@example.com</p> </div> </div> <div class=form-group> <label for=inputPassword class="col-sm-2 control-label">Password</label> <div class=col-sm-10> <input type=password class=form-control id=inputPassword placeholder=Password> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-horizontal"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span><span class=nt>&gt;</span>Email<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"form-control-static"</span><span class=nt>&gt;</span>email@example.com<span class=nt>&lt;/p&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"inputPassword"</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span><span class=nt>&gt;</span>Password<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"password"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputPassword"</span> <span class=na>placeholder=</span><span class=s>"Password"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class=bs-example data-example-id=inline-static-form-control> <form class=form-inline> <div class=form-group> <label class=sr-only>Email</label> <p class=form-control-static>email@example.com</p> </div> <div class=form-group> <label for=inputPassword2 class=sr-only>Password</label> <input type=password class=form-control id=inputPassword2 placeholder=Password> </div> <button type=submit class="btn btn-default">Confirm identity</button> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Email<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"form-control-static"</span><span class=nt>&gt;</span>email@example.com<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"inputPassword2"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Password<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"password"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputPassword2"</span> <span class=na>placeholder=</span><span class=s>"Password"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Confirm identity<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h2 id=forms-control-focus>Focus state</h2> <p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p> <div class=bs-example> <form> <input class=form-control id=focusedInput value="Demonstrative focus state"> </form> </div> <div class="bs-callout bs-callout-info" id=callout-focus-demo> <h4>Demo <code>:focus</code> state</h4> <p>The above example input uses custom styles in our documentation to demonstrate the <code>:focus</code> state on a <code>.form-control</code>.</p> </div> <h2 id=forms-control-disabled>Disabled state</h2> <p>Add the <code>disabled</code> boolean attribute on an input to prevent user interactions. Disabled inputs appear lighter and add a <code>not-allowed</code> cursor.</p> <div class=bs-example data-example-id=text-form-control-disabled> <form> <input class=form-control id=disabledInput placeholder="Disabled input here…" disabled> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"disabledInput"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>placeholder=</span><span class=s>"Disabled input here..."</span> <span class=na>disabled</span><span class=nt>&gt;</span></code></pre></figure> <h3 id=forms-disabled-fieldsets>Disabled fieldsets</h3> <p>Add the <code>disabled</code> attribute to a <code>&lt;fieldset&gt;</code> to disable all the controls within the <code>&lt;fieldset&gt;</code> at once.</p> <div class="bs-callout bs-callout-warning" id=callout-fieldset-disabled-pointer-events> <h4>Caveat about link functionality of <code>&lt;a&gt;</code></h4> <p>By default, browsers will treat all native form controls (<code>&lt;input&gt;</code>, <code>&lt;select&gt;</code> and <code>&lt;button&gt;</code> elements) inside a <code>&lt;fieldset disabled&gt;</code> as disabled, preventing both keyboard and mouse interactions on them. However, if your form also includes <code>&lt;a ... class="btn btn-*"&gt;</code> elements, these will only be given a style of <code>pointer-events: none</code>. As noted in the section about <a href=#buttons-disabled>disabled state for buttons</a> (and specifically in the sub-section for anchor elements), this CSS property is not yet standardized and isn't fully supported in Opera 18 and below, or in Internet Explorer 11, and won't prevent keyboard users from being able to focus or activate these links. So to be safe, use custom JavaScript to disable such links.</p> </div> <div class="bs-callout bs-callout-danger" id=callout-fieldset-disabled-ie> <h4>Cross-browser compatibility</h4> <p>While Bootstrap will apply these styles in all browsers, Internet Explorer 11 and below don't fully support the <code>disabled</code> attribute on a <code>&lt;fieldset&gt;</code>. Use custom JavaScript to disable the fieldset in these browsers.</p> </div> <div class=bs-example data-example-id=disabled-fieldset> <form> <fieldset disabled> <div class=form-group> <label for=disabledTextInput>Disabled input</label> <input id=disabledTextInput class=form-control placeholder="Disabled input"> </div> <div class=form-group> <label for=disabledSelect>Disabled select menu</label> <select id=disabledSelect class=form-control> <option>Disabled select</option> </select> </div> <div class=checkbox> <label> <input type=checkbox> Can't check this </label> </div> <button type=submit class="btn btn-primary">Submit</button> </fieldset> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form&gt;</span>
-  <span class=nt>&lt;fieldset</span> <span class=na>disabled</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"disabledTextInput"</span><span class=nt>&gt;</span>Disabled input<span class=nt>&lt;/label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>id=</span><span class=s>"disabledTextInput"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>"Disabled input"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"disabledSelect"</span><span class=nt>&gt;</span>Disabled select menu<span class=nt>&lt;/label&gt;</span>
-      <span class=nt>&lt;select</span> <span class=na>id=</span><span class=s>"disabledSelect"</span> <span class=na>class=</span><span class=s>"form-control"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;option&gt;</span>Disabled select<span class=nt>&lt;/option&gt;</span>
-      <span class=nt>&lt;/select&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;label&gt;</span>
-        <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span> Can't check this
-      <span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Submit<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;/fieldset&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h2 id=forms-control-readonly>Readonly state</h2> <p>Add the <code>readonly</code> boolean attribute on an input to prevent modification of the input's value. Read-only inputs appear lighter (just like disabled inputs), but retain the standard cursor.</p> <div class=bs-example data-example-id=readonly-text-form-control> <form> <input class=form-control placeholder="Readonly input here…" readonly> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>placeholder=</span><span class=s>"Readonly input here…"</span> <span class=na>readonly</span><span class=nt>&gt;</span></code></pre></figure> <h2 id=forms-help-text>Help text</h2> <p>Block level help text for form controls.</p> <div class="bs-callout bs-callout-info" id=callout-help-text-accessibility> <h4>Associating help text with form controls</h4> <p>Help text should be explicitly associated with the form control it relates to using the <code>aria-describedby</code> attribute. This will ensure that assistive technologies – such as screen readers – will announce this help text when the user focuses or enters the control.</p> </div> <div class=bs-example data-example-id=simple-help-text> <form> <div class=form-group> <label for=inputHelpBlock>Input with help text</label> <input id=inputHelpBlock class=form-control aria-describedby=helpBlock> </div> <span class=help-block id=helpBlock>A block of help text that breaks onto a new line and may extend beyond one line.</span> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"sr-only"</span> <span class=na>for=</span><span class=s>"inputHelpBlock"</span><span class=nt>&gt;</span>Input with help text<span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>id=</span><span class=s>"inputHelpBlock"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>aria-describedby=</span><span class=s>"helpBlock"</span><span class=nt>&gt;</span>
-...
-<span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"helpBlock"</span> <span class=na>class=</span><span class=s>"help-block"</span><span class=nt>&gt;</span>A block of help text that breaks onto a new line and may extend beyond one line.<span class=nt>&lt;/span&gt;</span></code></pre></figure> </div> <h2 id=forms-control-validation>Validation states</h2> <p>Bootstrap includes validation styles for error, warning, and success states on form controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</p> <div class="bs-callout bs-callout-warning" id=callout-form-validation-state-accessibility> <h4>Conveying validation state to assistive technologies and colorblind users</h4> <p>Using these validation styles to denote the state of a form control only provides a visual, color-based indication, which will not be conveyed to users of assistive technologies - such as screen readers - or to colorblind users.</p> <p>Ensure that an alternative indication of state is also provided. For instance, you can include a hint about state in the form control's <code>&lt;label&gt;</code> text itself (as is the case in the following code example), include a <a href=../components/#glyphicons>Glyphicon</a> (with appropriate alternative text using the <code>.sr-only</code> class - see the <a href=../components/#glyphicons-examples>Glyphicon examples</a>), or by providing an additional <a href=#forms-help-text>help text</a> block. Specifically for assistive technologies, invalid form controls can also be assigned an <code>aria-invalid="true"</code> attribute.</p> </div> <div class=bs-example data-example-id=form-validation-states> <form> <div class="form-group has-success"> <label class=control-label for=inputSuccess1>Input with success</label> <input class=form-control id=inputSuccess1 aria-describedby=helpBlock2> <span class=help-block id=helpBlock2>A block of help text that breaks onto a new line and may extend beyond one line.</span> </div> <div class="form-group has-warning"> <label class=control-label for=inputWarning1>Input with warning</label> <input class=form-control id=inputWarning1> </div> <div class="form-group has-error"> <label class=control-label for=inputError1>Input with error</label> <input class=form-control id=inputError1> </div> <div class=has-success> <div class=checkbox> <label> <input type=checkbox id=checkboxSuccess value=option1> Checkbox with success </label> </div> </div> <div class=has-warning> <div class=checkbox> <label> <input type=checkbox id=checkboxWarning value=option1> Checkbox with warning </label> </div> </div> <div class=has-error> <div class=checkbox> <label> <input type=checkbox id=checkboxError value=option1> Checkbox with error </label> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputSuccess1"</span><span class=nt>&gt;</span>Input with success<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputSuccess1"</span> <span class=na>aria-describedby=</span><span class=s>"helpBlock2"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"helpBlock2"</span> <span class=na>class=</span><span class=s>"help-block"</span><span class=nt>&gt;</span>A block of help text that breaks onto a new line and may extend beyond one line.<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-warning"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputWarning1"</span><span class=nt>&gt;</span>Input with warning<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputWarning1"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-error"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputError1"</span><span class=nt>&gt;</span>Input with error<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputError1"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"has-success"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"checkboxSuccess"</span> <span class=na>value=</span><span class=s>"option1"</span><span class=nt>&gt;</span>
-      Checkbox with success
-    <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"has-warning"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"checkboxWarning"</span> <span class=na>value=</span><span class=s>"option1"</span><span class=nt>&gt;</span>
-      Checkbox with warning
-    <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"has-error"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"checkbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>id=</span><span class=s>"checkboxError"</span> <span class=na>value=</span><span class=s>"option1"</span><span class=nt>&gt;</span>
-      Checkbox with error
-    <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3>With optional icons</h3> <p>You can also add optional feedback icons with the addition of <code>.has-feedback</code> and the right icon.</p> <p><strong class=text-danger>Feedback icons only work with textual <code>&lt;input class="form-control"&gt;</code> elements.</strong></p> <div class="bs-callout bs-callout-warning" id=callout-has-feedback-icon-positioning> <h4>Icons, labels, and input groups</h4> <p>Manual positioning of feedback icons is required for inputs without a label and for <a href=../components#input-groups>input groups</a> with an add-on on the right. You are strongly encouraged to provide labels for all inputs for accessibility reasons. If you wish to prevent labels from being displayed, hide them with the <code>.sr-only</code> class. If you must do without labels, adjust the <code>top</code> value of the feedback icon. For input groups, adjust the <code>right</code> value to an appropriate pixel value depending on the width of your addon.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-has-feedback-icon-accessibility> <h4>Conveying the icon's meaning to assistive technologies</h4> <p>To ensure that assistive technologies – such as screen readers – correctly convey the meaning of an icon, additional hidden text should be included with the <code>.sr-only</code> class and explicitly associated with the form control it relates to using <code>aria-describedby</code>. Alternatively, ensure that the meaning (for instance, the fact that there is a warning for a particular text entry field) is conveyed in some other form, such as changing the text of the actual <code>&lt;label&gt;</code> associated with the form control.</p> <p>Although the following examples already mention the validation state of their respective form controls in the <code>&lt;label&gt;</code> text itself, the above technique (using <code>.sr-only</code> text and <code>aria-describedby</code>) has been included for illustrative purposes.</p> </div> <div class=bs-example data-example-id=form-validation-states-with-icons> <form> <div class="form-group has-success has-feedback"> <label class=control-label for=inputSuccess2>Input with success</label> <input class=form-control id=inputSuccess2 aria-describedby=inputSuccess2Status> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputSuccess2Status>(success)</span> </div> <div class="form-group has-warning has-feedback"> <label class=control-label for=inputWarning2>Input with warning</label> <input class=form-control id=inputWarning2 aria-describedby=inputWarning2Status> <span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputWarning2Status>(warning)</span> </div> <div class="form-group has-error has-feedback"> <label class=control-label for=inputError2>Input with error</label> <input class=form-control id=inputError2 aria-describedby=inputError2Status> <span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputError2Status>(error)</span> </div> <div class="form-group has-success has-feedback"> <label class=control-label for=inputGroupSuccess1>Input group with success</label> <div class=input-group> <span class=input-group-addon>@</span> <input class=form-control id=inputGroupSuccess1 aria-describedby=inputGroupSuccess1Status> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputGroupSuccess1Status>(success)</span> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputSuccess2"</span><span class=nt>&gt;</span>Input with success<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputSuccess2"</span> <span class=na>aria-describedby=</span><span class=s>"inputSuccess2Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputSuccess2Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-warning has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputWarning2"</span><span class=nt>&gt;</span>Input with warning<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputWarning2"</span> <span class=na>aria-describedby=</span><span class=s>"inputWarning2Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-warning-sign form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputWarning2Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(warning)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-error has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputError2"</span><span class=nt>&gt;</span>Input with error<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputError2"</span> <span class=na>aria-describedby=</span><span class=s>"inputError2Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-remove form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputError2Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(error)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputGroupSuccess1"</span><span class=nt>&gt;</span>Input group with success<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputGroupSuccess1"</span> <span class=na>aria-describedby=</span><span class=s>"inputGroupSuccess1Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputGroupSuccess1Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h4>Optional icons in horizontal and inline forms</h4> <div class=bs-example data-example-id=horizontal-form-validation-state-with-icon> <form class=form-horizontal> <div class="form-group has-success has-feedback"> <label class="control-label col-sm-3" for=inputSuccess3>Input with success</label> <div class=col-sm-9> <input class=form-control id=inputSuccess3 aria-describedby=inputSuccess3Status> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputSuccess3Status>(success)</span> </div> </div> <div class="form-group has-success has-feedback"> <label class="control-label col-sm-3" for=inputGroupSuccess2>Input group with success</label> <div class=col-sm-9> <div class=input-group> <span class=input-group-addon>@</span> <input class=form-control id=inputGroupSuccess2 aria-describedby=inputGroupSuccess2Status> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputGroupSuccess2Status>(success)</span> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-horizontal"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label col-sm-3"</span> <span class=na>for=</span><span class=s>"inputSuccess3"</span><span class=nt>&gt;</span>Input with success<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-9"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputSuccess3"</span> <span class=na>aria-describedby=</span><span class=s>"inputSuccess3Status"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputSuccess3Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label col-sm-3"</span> <span class=na>for=</span><span class=s>"inputGroupSuccess2"</span><span class=nt>&gt;</span>Input group with success<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-9"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-        <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputGroupSuccess2"</span> <span class=na>aria-describedby=</span><span class=s>"inputGroupSuccess2Status"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputGroupSuccess2Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <div class=bs-example data-example-id=inline-form-validation-state-with-icon> <form class=form-inline> <div class="form-group has-success has-feedback"> <label class=control-label for=inputSuccess4>Input with success</label> <input class=form-control id=inputSuccess4 aria-describedby=inputSuccess4Status> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputSuccess4Status>(success)</span> </div> </form> <br> <form class=form-inline> <div class="form-group has-success has-feedback"> <label class=control-label for=inputGroupSuccess3>Input group with success</label> <div class=input-group> <span class=input-group-addon>@</span> <input class=form-control id=inputGroupSuccess3 aria-describedby=inputGroupSuccess3Status> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputGroupSuccess3Status>(success)</span> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputSuccess4"</span><span class=nt>&gt;</span>Input with success<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputSuccess4"</span> <span class=na>aria-describedby=</span><span class=s>"inputSuccess4Status"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputSuccess4Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span>
-<span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-inline"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label"</span> <span class=na>for=</span><span class=s>"inputGroupSuccess3"</span><span class=nt>&gt;</span>Input group with success<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputGroupSuccess3"</span> <span class=na>aria-describedby=</span><span class=s>"inputGroupSuccess3Status"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputGroupSuccess3Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h4>Optional icons with hidden <code>.sr-only</code> labels</h4> <p>If you use the <code>.sr-only</code> class to hide a form control's <code>&lt;label&gt;</code> (rather than using other labelling options, such as the <code>aria-label</code> attribute), Bootstrap will automatically adjust the position of the icon once it's been added.</p> <div class=bs-example data-example-id=form-validation-state-with-icon-without-label> <div class="form-group has-success has-feedback"> <label class="sr-only control-label" for=inputSuccess5>Hidden label</label> <input class=form-control id=inputSuccess5 aria-describedby=inputSuccess5Status> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputSuccess5Status>(success)</span> </div> <div class="form-group has-success has-feedback"> <label class="sr-only control-label" for=inputGroupSuccess4>Input group with success</label> <div class=input-group> <span class=input-group-addon>@</span> <input class=form-control id=inputGroupSuccess4 aria-describedby=inputGroupSuccess4Status> </div> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden=true></span> <span class=sr-only id=inputGroupSuccess4Status>(success)</span> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label sr-only"</span> <span class=na>for=</span><span class=s>"inputSuccess5"</span><span class=nt>&gt;</span>Hidden label<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputSuccess5"</span> <span class=na>aria-describedby=</span><span class=s>"inputSuccess5Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputSuccess5Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group has-success has-feedback"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"control-label sr-only"</span> <span class=na>for=</span><span class=s>"inputGroupSuccess4"</span><span class=nt>&gt;</span>Input group with success<span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"input-group"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"input-group-addon"</span><span class=nt>&gt;</span>@<span class=nt>&lt;/span&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"inputGroupSuccess4"</span> <span class=na>aria-describedby=</span><span class=s>"inputGroupSuccess4Status"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-ok form-control-feedback"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>id=</span><span class=s>"inputGroupSuccess4Status"</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>(success)<span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=forms-control-sizes>Control sizing</h2> <p>Set heights using classes like <code>.input-lg</code>, and set widths using grid column classes like <code>.col-lg-*</code>.</p> <h3>Height sizing</h3> <p>Create taller or shorter form controls that match button sizes.</p> <div class="bs-example bs-example-control-sizing" data-example-id=form-control-height-sizes> <form> <div class=controls> <input class="form-control input-lg" placeholder=.input-lg> <input class=form-control placeholder="Default input"> <input class="form-control input-sm" placeholder=.input-sm> <select class="form-control input-lg"> <option value="">.input-lg</option> </select> <select class=form-control> <option value="">Default select</option> </select> <select class="form-control input-sm"> <option value="">.input-sm</option> </select> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control input-lg"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>placeholder=</span><span class=s>".input-lg"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>placeholder=</span><span class=s>"Default input"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control input-sm"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>placeholder=</span><span class=s>".input-sm"</span><span class=nt>&gt;</span>
-
-<span class=nt>&lt;select</span> <span class=na>class=</span><span class=s>"form-control input-lg"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/select&gt;</span>
-<span class=nt>&lt;select</span> <span class=na>class=</span><span class=s>"form-control"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/select&gt;</span>
-<span class=nt>&lt;select</span> <span class=na>class=</span><span class=s>"form-control input-sm"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/select&gt;</span></code></pre></figure> <h3>Horizontal form group sizes</h3> <p>Quickly size labels and form controls within <code>.form-horizontal</code> by adding <code>.form-group-lg</code> or <code>.form-group-sm</code>.</p> <div class=bs-example data-example-id=form-group-height-sizes> <form class=form-horizontal> <div class="form-group form-group-lg"> <label class="col-sm-2 control-label" for=formGroupInputLarge>Large label</label> <div class=col-sm-10> <input class=form-control id=formGroupInputLarge placeholder="Large input"> </div> </div> <div class="form-group form-group-sm"> <label class="col-sm-2 control-label" for=formGroupInputSmall>Small label</label> <div class=col-sm-10> <input class=form-control id=formGroupInputSmall placeholder="Small input"> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;form</span> <span class=na>class=</span><span class=s>"form-horizontal"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group form-group-lg"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span> <span class=na>for=</span><span class=s>"formGroupInputLarge"</span><span class=nt>&gt;</span>Large label<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>id=</span><span class=s>"formGroupInputLarge"</span> <span class=na>placeholder=</span><span class=s>"Large input"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group form-group-sm"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"col-sm-2 control-label"</span> <span class=na>for=</span><span class=s>"formGroupInputSmall"</span><span class=nt>&gt;</span>Small label<span class=nt>&lt;/label&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-10"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>id=</span><span class=s>"formGroupInputSmall"</span> <span class=na>placeholder=</span><span class=s>"Small input"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/form&gt;</span></code></pre></figure> <h3>Column sizing</h3> <p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p> <div class=bs-example data-example-id=form-control-column-sizing> <form> <div class=row> <div class=col-xs-2> <input class=form-control placeholder=.col-xs-2> </div> <div class=col-xs-3> <input class=form-control placeholder=.col-xs-3> </div> <div class=col-xs-4> <input class=form-control placeholder=.col-xs-4> </div> </div> </form> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-2"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>".col-xs-2"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-3"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>".col-xs-3"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-4"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>placeholder=</span><span class=s>".col-xs-4"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class=bs-docs-section> <h1 class=page-header id=buttons>Buttons</h1> <h2 id=buttons-tags>Button tags</h2> <p>Use the button classes on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.</p> <form class=bs-example data-example-id=btn-tags> <a href=# class="btn btn-default" role=button>Link</a> <button class="btn btn-default" type=submit>Button</button> <input class="btn btn-default" type=button value=Input> <input class="btn btn-default" type=submit value=Submit> </form> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>type=</span><span class=s>"submit"</span><span class=nt>&gt;</span>Button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>value=</span><span class=s>"Input"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;input</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>type=</span><span class=s>"submit"</span> <span class=na>value=</span><span class=s>"Submit"</span><span class=nt>&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-buttons-context-usage> <h4>Context-specific usage</h4> <p>While button classes can be used on <code>&lt;a&gt;</code> and <code>&lt;button&gt;</code> elements, only <code>&lt;button&gt;</code> elements are supported within our nav and navbar components.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-buttons-anchor-accessibility> <h4>Links acting as buttons</h4> <p>If the <code>&lt;a&gt;</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> <div class="bs-callout bs-callout-warning" id=callout-buttons-ff-height> <h4>Cross-browser rendering</h4> <p>As a best practice, <strong>we highly recommend using the <code>&lt;button&gt;</code> element whenever possible</strong> to ensure matching cross-browser rendering.</p> <p>Among other things, there's <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=697451">a bug in Firefox &lt;30</a> that prevents us from setting the <code>line-height</code> of <code>&lt;input&gt;</code>-based buttons, causing them to not exactly match the height of other buttons on Firefox.</p> </div> <h2 id=buttons-options>Options</h2> <p>Use any of the available button classes to quickly create a styled button.</p> <div class=bs-example data-example-id=btn-variants> <button type=button class="btn btn-default">Default</button> <button type=button class="btn btn-primary">Primary</button> <button type=button class="btn btn-success">Success</button> <button type=button class="btn btn-info">Info</button> <button type=button class="btn btn-warning">Warning</button> <button type=button class="btn btn-danger">Danger</button> <button type=button class="btn btn-link">Link</button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Standard button --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Default<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Provides extra visual weight and identifies the primary action in a set of buttons --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Primary<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Indicates a successful or positive action --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-success"</span><span class=nt>&gt;</span>Success<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Contextual button for informational alert messages --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-info"</span><span class=nt>&gt;</span>Info<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Indicates caution should be taken with this action --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-warning"</span><span class=nt>&gt;</span>Warning<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Indicates a dangerous or potentially negative action --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-danger"</span><span class=nt>&gt;</span>Danger<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Deemphasize a button by making it look like a link while maintaining button behavior --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-link"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/button&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-buttons-color-accessibility> <h4>Conveying meaning to assistive technologies</h4> <p>Using color to add meaning to a button only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the visible text of the button), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p> </div> <h2 id=buttons-sizes>Sizes</h2> <p>Fancy larger or smaller buttons? Add <code>.btn-lg</code>, <code>.btn-sm</code>, or <code>.btn-xs</code> for additional sizes.</p> <div class=bs-example data-example-id=btn-sizes> <p> <button type=button class="btn btn-primary btn-lg">Large button</button> <button type=button class="btn btn-default btn-lg">Large button</button> </p> <p> <button type=button class="btn btn-primary">Default button</button> <button type=button class="btn btn-default">Default button</button> </p> <p> <button type=button class="btn btn-primary btn-sm">Small button</button> <button type=button class="btn btn-default btn-sm">Small button</button> </p> <p> <button type=button class="btn btn-primary btn-xs">Extra small button</button> <button type=button class="btn btn-default btn-xs">Extra small button</button> </p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg"</span><span class=nt>&gt;</span>Large button<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg"</span><span class=nt>&gt;</span>Large button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Default button<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span><span class=nt>&gt;</span>Default button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-sm"</span><span class=nt>&gt;</span>Small button<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-sm"</span><span class=nt>&gt;</span>Small button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-xs"</span><span class=nt>&gt;</span>Extra small button<span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-xs"</span><span class=nt>&gt;</span>Extra small button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;/p&gt;</span></code></pre></figure> <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p> <div class=bs-example data-example-id=block-btns> <div class="well center-block" style=max-width:400px> <button type=button class="btn btn-primary btn-lg btn-block">Block level button</button> <button type=button class="btn btn-default btn-lg btn-block">Block level button</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg btn-block"</span><span class=nt>&gt;</span>Block level button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg btn-block"</span><span class=nt>&gt;</span>Block level button<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h2 id=buttons-active>Active state</h2> <p>Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. For <code>&lt;button&gt;</code> elements, this is done via <code>:active</code>. For <code>&lt;a&gt;</code> elements, it's done with <code>.active</code>. However, you may use <code>.active</code> on <code>&lt;button&gt;</code>s (and include the <code>aria-pressed="true"</code> attribute) should you need to replicate the active state programmatically.</p> <h3>Button element</h3> <p>No need to add <code>:active</code> as it's a pseudo-class, but if you need to force the same appearance, go ahead and add <code>.active</code>.</p> <p class=bs-example data-example-id=active-button-btns> <button type=button class="btn btn-primary btn-lg active">Primary button</button> <button type=button class="btn btn-default btn-lg active">Button</button> </p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg active"</span><span class=nt>&gt;</span>Primary button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg active"</span><span class=nt>&gt;</span>Button<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h3>Anchor element</h3> <p>Add the <code>.active</code> class to <code>&lt;a&gt;</code> buttons.</p> <p class=bs-example data-example-id=active-anchor-btns> <a href=# class="btn btn-primary btn-lg active" role=button>Primary link</a> <a href=# class="btn btn-default btn-lg active" role=button>Link</a> </p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg active"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Primary link<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg active"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/a&gt;</span></code></pre></figure> <h2 id=buttons-disabled>Disabled state</h2> <p>Make buttons look unclickable by fading them back with <code>opacity</code>.</p> <h3>Button element</h3> <p>Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.</p> <p class=bs-example data-example-id=disabled-button-btns> <button type=button class="btn btn-primary btn-lg" disabled>Primary button</button> <button type=button class="btn btn-default btn-lg" disabled>Button</button> </p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-lg btn-primary"</span> <span class=na>disabled=</span><span class=s>"disabled"</span><span class=nt>&gt;</span>Primary button<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg"</span> <span class=na>disabled=</span><span class=s>"disabled"</span><span class=nt>&gt;</span>Button<span class=nt>&lt;/button&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-danger" id=callout-buttons-ie-disabled> <h4>Cross-browser compatibility</h4> <p>If you add the <code>disabled</code> attribute to a <code>&lt;button&gt;</code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p> </div> <h3>Anchor element</h3> <p>Add the <code>.disabled</code> class to <code>&lt;a&gt;</code> buttons.</p> <p class=bs-example data-example-id=disabled-anchor-btns> <a href=# class="btn btn-primary btn-lg disabled" role=button>Primary link</a> <a href=# class="btn btn-default btn-lg disabled" role=button>Link</a> </p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg disabled"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Primary link<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>class=</span><span class=s>"btn btn-default btn-lg disabled"</span> <span class=na>role=</span><span class=s>"button"</span><span class=nt>&gt;</span>Link<span class=nt>&lt;/a&gt;</span></code></pre></figure> <p> We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. </p> <div class="bs-callout bs-callout-warning" id=callout-buttons-disabled-anchor> <h4>Link functionality caveat</h4> <p>This class uses <code>pointer-events: none</code> to try to disable the link functionality of <code>&lt;a&gt;</code>s, but that CSS property is not yet standardized and isn't fully supported in Opera 18 and below, or in Internet Explorer 11. In addition, even in browsers that do support <code>pointer-events: none</code>, keyboard navigation remains unaffected, meaning that sighted keyboard users and users of assistive technologies will still be able to activate these links. So to be safe, use custom JavaScript to disable such links.</p> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=images>Images</h1> <h2 id=images-responsive>Responsive images</h2> <p>Images in Bootstrap 3 can be made responsive-friendly via the addition of the <code>.img-responsive</code> class. This applies <code>max-width: 100%;</code>, <code>height: auto;</code> and <code>display: block;</code> to the image so that it scales nicely to the parent element.</p> <p>To center images which use the <code>.img-responsive</code> class, use <code>.center-block</code> instead of <code>.text-center</code>. <a href=../css/#helper-classes-center>See the helper classes section</a> for more details about <code>.center-block</code> usage.</p> <div class="bs-callout bs-callout-warning" id=callout-images-ie-svg> <h4>SVG images and IE 8-10</h4> <p>In Internet Explorer 8-10, SVG images with <code>.img-responsive</code> are disproportionately sized. To fix this, add <code>width: 100% \9;</code> where necessary. Bootstrap doesn't apply this automatically as it causes complications to other image formats.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>class=</span><span class=s>"img-responsive"</span> <span class=na>alt=</span><span class=s>"Responsive image"</span><span class=nt>&gt;</span></code></pre></figure> <h2 id=images-shapes>Image shapes</h2> <p>Add classes to an <code>&lt;img&gt;</code> element to easily style images in any project.</p> <div class="bs-callout bs-callout-danger" id=callout-images-ie-rounded-corners> <h4>Cross-browser compatibility</h4> <p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p> </div> <div class="bs-example bs-example-images" data-example-id=image-shapes> <img alt="A generic square placeholder image with rounded corners" data-src=holder.js/140x140 class=img-rounded> <img alt="A generic square placeholder image where only the portion within the circle circumscribed about said square is visible" data-src=holder.js/140x140 class=img-circle> <img alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera" data-src=holder.js/140x140 class=img-thumbnail> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span> <span class=na>class=</span><span class=s>"img-rounded"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span> <span class=na>class=</span><span class=s>"img-circle"</span><span class=nt>&gt;</span>
-<span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span> <span class=na>class=</span><span class=s>"img-thumbnail"</span><span class=nt>&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=helper-classes>Helper classes</h1> <h3 id=helper-classes-colors>Contextual colors</h3> <p>Convey meaning through color with a handful of emphasis utility classes. These may also be applied to links and will darken on hover just like our default link styles.</p> <div class=bs-example data-example-id=contextual-colors-helpers> <p class=text-muted>Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> <p class=text-primary>Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p class=text-success>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> <p class=text-info>Maecenas sed diam eget risus varius blandit sit amet non magna.</p> <p class=text-warning>Etiam porta sem malesuada magna mollis euismod.</p> <p class=text-danger>Donec ullamcorper nulla non metus auctor fringilla.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-muted"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-primary"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-success"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-info"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-warning"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"text-danger"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-helper-context-color-specificity> <h4>Dealing with specificity</h4> <p>Sometimes emphasis classes cannot be applied due to the specificity of another selector. In most cases, a sufficient workaround is to wrap your text in a <code>&lt;span&gt;</code> with the class.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-helper-context-color-accessibility> <h4>Conveying meaning to assistive technologies</h4> <p>Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (the contextual colors are only used to reinforce meaning that is already present in the text/markup), or is included through alternative means, such as additional text hidden with the <code>.sr-only</code> class.</p> </div> <h3 id=helper-classes-backgrounds>Contextual backgrounds</h3> <p>Similar to the contextual text color classes, easily set the background of an element to any contextual class. Anchor components will darken on hover, just like the text classes.</p> <div class="bs-example bs-example-bg-classes" data-example-id=contextual-backgrounds-helpers> <p class=bg-primary>Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p class=bg-success>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> <p class=bg-info>Maecenas sed diam eget risus varius blandit sit amet non magna.</p> <p class=bg-warning>Etiam porta sem malesuada magna mollis euismod.</p> <p class=bg-danger>Donec ullamcorper nulla non metus auctor fringilla.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"bg-primary"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"bg-success"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"bg-info"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"bg-warning"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-<span class=nt>&lt;p</span> <span class=na>class=</span><span class=s>"bg-danger"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/p&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-helper-bg-specificity> <h4>Dealing with specificity</h4> <p>Sometimes contextual background classes cannot be applied due to the specificity of another selector. In some cases, a sufficient workaround is to wrap your element's content in a <code>&lt;div&gt;</code> with the class.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-helper-bg-accessibility> <h4>Conveying meaning to assistive technologies</h4> <p>As with <a href=#helper-classes-colors>contextual colors</a>, ensure that any meaning conveyed through color is also conveyed in a format that is not purely presentational.</p> </div> <h3 id=helper-classes-close>Close icon</h3> <p>Use the generic close icon for dismissing content like modals and alerts.</p> <div class=bs-example data-example-id=close-icon> <p><button type=button class=close aria-label=Close><span aria-hidden=true>&times;</span></button></p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span></code></pre></figure> <h3 id=helper-classes-carets>Carets</h3> <p>Use carets to indicate dropdown functionality and direction. Note that the default caret will reverse automatically in <a href=../components/#btn-dropdowns-dropup>dropup menus</a>.</p> <div class=bs-example data-example-id=caret> <span class=caret></span> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span></code></pre></figure> <h3 id=helper-classes-floats>Quick floats</h3> <p>Float an element to the left or right with a class. <code>!important</code> is included to avoid specificity issues. Classes can also be used as mixins.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"pull-left"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"pull-right"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Classes
-</span><span class=nc>.pull-left</span> <span class=p>{</span>
-  <span class=nl>float</span><span class=p>:</span> <span class=nb>left</span> <span class=o>!</span><span class=n>important</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.pull-right</span> <span class=p>{</span>
-  <span class=nl>float</span><span class=p>:</span> <span class=nb>right</span> <span class=o>!</span><span class=n>important</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage as mixins
-</span><span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.pull-left</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.another-element</span> <span class=p>{</span>
-  <span class=nc>.pull-right</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-helper-pull-navbar> <h4>Not for use in navbars</h4> <p>To align components in navbars with utility classes, use <code>.navbar-left</code> or <code>.navbar-right</code> instead. <a href=../components/#navbar-component-alignment>See the navbar docs</a> for details.</p> </div> <h3 id=helper-classes-center>Center content blocks</h3> <p>Set an element to <code>display: block</code> and center via <code>margin</code>. Available as a mixin and class.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"center-block"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Class
-</span><span class=nc>.center-block</span> <span class=p>{</span>
-  <span class=nl>display</span><span class=p>:</span> <span class=nb>block</span><span class=p>;</span>
-  <span class=nl>margin-left</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-  <span class=nl>margin-right</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage as a mixin
-</span><span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.center-block</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=helper-classes-clearfix>Clearfix</h3> <p>Easily clear <code>float</code>s by adding <code>.clearfix</code> <strong>to the parent element</strong>. Utilizes <a href=http://nicolasgallagher.com/micro-clearfix-hack/ >the micro clearfix</a> as popularized by Nicolas Gallagher. Can also be used as a mixin.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Usage as a class --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"clearfix"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Mixin itself
-</span><span class=nc>.clearfix</span><span class=o>()</span> <span class=p>{</span>
-  <span class=k>&amp;</span><span class=nd>:before</span><span class=o>,</span>
-  <span class=k>&amp;</span><span class=nd>:after</span> <span class=p>{</span>
-    <span class=nl>content</span><span class=p>:</span> <span class=s2>" "</span><span class=p>;</span>
-    <span class=nl>display</span><span class=p>:</span> <span class=n>table</span><span class=p>;</span>
-  <span class=p>}</span>
-  <span class=k>&amp;</span><span class=nd>:after</span> <span class=p>{</span>
-    <span class=nl>clear</span><span class=p>:</span> <span class=nb>both</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage as a mixin
-</span><span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.clearfix</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=helper-classes-show-hide>Showing and hiding content</h3> <p>Force an element to be shown or hidden (<strong>including for screen readers</strong>) with the use of <code>.show</code> and <code>.hidden</code> classes. These classes use <code>!important</code> to avoid specificity conflicts, just like the <a href=#helper-classes-floats>quick floats</a>. They are only available for block level toggling. They can also be used as mixins.</p> <p><code>.hide</code> is available, but it does not always affect screen readers and is <strong>deprecated</strong> as of v3.0.1. Use <code>.hidden</code> or <code>.sr-only</code> instead.</p> <p>Furthermore, <code>.invisible</code> can be used to toggle only the visibility of an element, meaning its <code>display</code> is not modified and the element can still affect the flow of the document.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"show"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"hidden"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Classes
-</span><span class=nc>.show</span> <span class=p>{</span>
-  <span class=nl>display</span><span class=p>:</span> <span class=nb>block</span> <span class=o>!</span><span class=n>important</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.hidden</span> <span class=p>{</span>
-  <span class=nl>display</span><span class=p>:</span> <span class=nb>none</span> <span class=o>!</span><span class=n>important</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.invisible</span> <span class=p>{</span>
-  <span class=nl>visibility</span><span class=p>:</span> <span class=nb>hidden</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage as mixins
-</span><span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.show</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.another-element</span> <span class=p>{</span>
-  <span class=nc>.hidden</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=helper-classes-screen-readers>Screen reader and keyboard navigation content</h3> <p>Hide an element to all devices <strong>except screen readers</strong> with <code>.sr-only</code>. Combine <code>.sr-only</code> with <code>.sr-only-focusable</code> to show the element again when it's focused (e.g. by a keyboard-only user). Necessary for following <a href=../getting-started/#accessibility>accessibility best practices</a>. Can also be used as mixins.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"sr-only sr-only-focusable"</span> <span class=na>href=</span><span class=s>"#content"</span><span class=nt>&gt;</span>Skip to main content<span class=nt>&lt;/a&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Usage as a mixin
-</span><span class=nc>.skip-navigation</span> <span class=p>{</span>
-  <span class=nc>.sr-only</span><span class=o>()</span><span class=p>;</span>
-  <span class=nc>.sr-only-focusable</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=helper-classes-image-replacement>Image replacement</h3> <p>Utilize the <code>.text-hide</code> class or mixin to help replace an element's text content with a background image.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;h1</span> <span class=na>class=</span><span class=s>"text-hide"</span><span class=nt>&gt;</span>Custom heading<span class=nt>&lt;/h1&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Usage as a mixin
-</span><span class=nc>.heading</span> <span class=p>{</span>
-  <span class=nc>.text-hide</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=responsive-utilities>Responsive utilities</h1> <p class=lead>For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p> <p>Try to use these on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.</p> <h2 id=responsive-utilities-classes>Available classes</h2> <p>Use a single or combination of the available classes for toggling content across viewport breakpoints.</p> <div class=table-responsive> <table class="table table-bordered table-striped responsive-utilities"> <thead> <tr> <th></th> <th> Extra small devices <small>Phones (&lt;768px)</small> </th> <th> Small devices <small>Tablets (&ge;768px)</small> </th> <th> Medium devices <small>Desktops (&ge;992px)</small> </th> <th> Large devices <small>Desktops (&ge;1200px)</small> </th> </tr> </thead> <tbody> <tr> <th scope=row><code>.visible-xs-*</code></th> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> </tr> <tr> <th scope=row><code>.visible-sm-*</code></th> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> </tr> <tr> <th scope=row><code>.visible-md-*</code></th> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> </tr> <tr> <th scope=row><code>.visible-lg-*</code></th> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> </tr> </tbody> <tbody> <tr> <th scope=row><code>.hidden-xs</code></th> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> </tr> <tr> <th scope=row><code>.hidden-sm</code></th> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> </tr> <tr> <th scope=row><code>.hidden-md</code></th> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> </tr> <tr> <th scope=row><code>.hidden-lg</code></th> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> </tr> </tbody> </table> </div> <p>As of v3.2.0, the <code>.visible-*-*</code> classes for each breakpoint come in three variations, one for each CSS <code>display</code> property value listed below.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <th>Group of classes</th> <th>CSS <code>display</code></th> </tr> </thead> <tbody> <tr> <th scope=row><code>.visible-*-block</code></th> <td><code>display: block;</code></td> </tr> <tr> <th scope=row><code>.visible-*-inline</code></th> <td><code>display: inline;</code></td> </tr> <tr> <th scope=row><code>.visible-*-inline-block</code></th> <td><code>display: inline-block;</code></td> </tr> </tbody> </table> </div> <p>So, for extra small (<code>xs</code>) screens for example, the available <code>.visible-*-*</code> classes are: <code>.visible-xs-block</code>, <code>.visible-xs-inline</code>, and <code>.visible-xs-inline-block</code>.</p> <p>The classes <code>.visible-xs</code>, <code>.visible-sm</code>, <code>.visible-md</code>, and <code>.visible-lg</code> also exist, but are <strong>deprecated as of v3.2.0</strong>. They are approximately equivalent to <code>.visible-*-block</code>, except with additional special cases for toggling <code>&lt;table&gt;</code>-related elements.</p> <h2 id=responsive-utilities-print>Print classes</h2> <p>Similar to the regular responsive classes, use these for toggling content for print.</p> <div class=table-responsive> <table class="table table-bordered table-striped responsive-utilities"> <thead> <tr> <th>Classes</th> <th>Browser</th> <th>Print</th> </tr> </thead> <tbody> <tr> <th scope=row> <code>.visible-print-block</code><br> <code>.visible-print-inline</code><br> <code>.visible-print-inline-block</code> </th> <td class=is-hidden>Hidden</td> <td class=is-visible>Visible</td> </tr> <tr> <th scope=row><code>.hidden-print</code></th> <td class=is-visible>Visible</td> <td class=is-hidden>Hidden</td> </tr> </tbody> </table> </div> <p>The class <code>.visible-print</code> also exists but is <strong>deprecated</strong> as of v3.2.0. It is approximately equivalent to <code>.visible-print-block</code>, except with additional special cases for <code>&lt;table&gt;</code>-related elements.</p> <h2 id=responsive-utilities-tests>Test cases</h2> <p>Resize your browser or load on different devices to test the responsive utility classes.</p> <h3>Visible on...</h3> <p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p> <div class="row responsive-utilities-test visible-on"> <div class="col-xs-6 col-sm-3"> <span class=hidden-xs>Extra small</span> <span class=visible-xs-block>&#10004; Visible on x-small</span> </div> <div class="col-xs-6 col-sm-3"> <span class=hidden-sm>Small</span> <span class=visible-sm-block>&#10004; Visible on small</span> </div> <div class="clearfix visible-xs-block"></div> <div class="col-xs-6 col-sm-3"> <span class=hidden-md>Medium</span> <span class=visible-md-block>&#10004; Visible on medium</span> </div> <div class="col-xs-6 col-sm-3"> <span class=hidden-lg>Large</span> <span class=visible-lg-block>&#10004; Visible on large</span> </div> </div> <div class="row responsive-utilities-test visible-on"> <div class=col-xs-6> <span class="hidden-xs hidden-sm">Extra small and small</span> <span class="visible-xs-block visible-sm-block">&#10004; Visible on x-small and small</span> </div> <div class=col-xs-6> <span class="hidden-md hidden-lg">Medium and large</span> <span class="visible-md-block visible-lg-block">&#10004; Visible on medium and large</span> </div> <div class="clearfix visible-xs-block"></div> <div class=col-xs-6> <span class="hidden-xs hidden-md">Extra small and medium</span> <span class="visible-xs-block visible-md-block">&#10004; Visible on x-small and medium</span> </div> <div class=col-xs-6> <span class="hidden-sm hidden-lg">Small and large</span> <span class="visible-sm-block visible-lg-block">&#10004; Visible on small and large</span> </div> <div class="clearfix visible-xs-block"></div> <div class=col-xs-6> <span class="hidden-xs hidden-lg">Extra small and large</span> <span class="visible-xs-block visible-lg-block">&#10004; Visible on x-small and large</span> </div> <div class=col-xs-6> <span class="hidden-sm hidden-md">Small and medium</span> <span class="visible-sm-block visible-md-block">&#10004; Visible on small and medium</span> </div> </div> <h3>Hidden on...</h3> <p>Here, green checkmarks also indicate the element <strong>is hidden</strong> in your current viewport.</p> <div class="row responsive-utilities-test hidden-on"> <div class="col-xs-6 col-sm-3"> <span class=hidden-xs>Extra small</span> <span class=visible-xs-block>&#10004; Hidden on x-small</span> </div> <div class="col-xs-6 col-sm-3"> <span class=hidden-sm>Small</span> <span class=visible-sm-block>&#10004; Hidden on small</span> </div> <div class="clearfix visible-xs-block"></div> <div class="col-xs-6 col-sm-3"> <span class=hidden-md>Medium</span> <span class=visible-md-block>&#10004; Hidden on medium</span> </div> <div class="col-xs-6 col-sm-3"> <span class=hidden-lg>Large</span> <span class=visible-lg-block>&#10004; Hidden on large</span> </div> </div> <div class="row responsive-utilities-test hidden-on"> <div class=col-xs-6> <span class="hidden-xs hidden-sm">Extra small and small</span> <span class="visible-xs-block visible-sm-block">&#10004; Hidden on x-small and small</span> </div> <div class=col-xs-6> <span class="hidden-md hidden-lg">Medium and large</span> <span class="visible-md-block visible-lg-block">&#10004; Hidden on medium and large</span> </div> <div class="clearfix visible-xs-block"></div> <div class=col-xs-6> <span class="hidden-xs hidden-md">Extra small and medium</span> <span class="visible-xs-block visible-md-block">&#10004; Hidden on x-small and medium</span> </div> <div class=col-xs-6> <span class="hidden-sm hidden-lg">Small and large</span> <span class="visible-sm-block visible-lg-block">&#10004; Hidden on small and large</span> </div> <div class="clearfix visible-xs-block"></div> <div class=col-xs-6> <span class="hidden-xs hidden-lg">Extra small and large</span> <span class="visible-xs-block visible-lg-block">&#10004; Hidden on x-small and large</span> </div> <div class=col-xs-6> <span class="hidden-sm hidden-md">Small and medium</span> <span class="visible-sm-block visible-md-block">&#10004; Hidden on small and medium</span> </div> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=less>Using Less</h1> <p class=lead>Bootstrap's CSS is built on Less, a preprocessor with additional functionality like variables, mixins, and functions for compiling CSS. Those looking to use the source Less files instead of our compiled CSS files can make use of the numerous variables and mixins we use throughout the framework.</p> <p>Grid variables and mixins are covered <a href=#grid-less>within the Grid system section</a>.</p> <h2 id=less-bootstrap>Compiling Bootstrap</h2> <p>Bootstrap can be used in at least two ways: with the compiled CSS or with the source Less files. To compile the Less files, <a href=../getting-started/#grunt>consult the Getting Started section</a> for how to setup your development environment to run the necessary commands.</p> <p>Third party compilation tools may work with Bootstrap, but they are not supported by our core team.</p> <h2 id=less-variables>Variables</h2> <p>Variables are used throughout the entire project as a way to centralize and share commonly used values like colors, spacing, or font stacks. For a complete breakdown, please see <a href=../customize/#less-variables-section>the Customizer</a>.</p> <h3 id=less-variables-colors>Colors</h3> <p>Easily make use of two color schemes: grayscale and semantic. Grayscale colors provide quick access to commonly used shades of black while semantic include various colors assigned to meaningful contextual values.</p> <div class=bs-example> <div class=color-swatches> <div class="color-swatch gray-darker"></div> <div class="color-swatch gray-dark"></div> <div class="color-swatch gray"></div> <div class="color-swatch gray-light"></div> <div class="color-swatch gray-lighter"></div> </div> </div> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@gray-darker</span><span class=nd>:</span>  <span class=nt>lighten</span><span class=o>(</span><span class=nn>#000</span><span class=o>,</span> <span class=nt>13</span><span class=nc>.5</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span> <span class=c1>// #222
-</span><span class=k>@gray-dark</span><span class=nd>:</span>    <span class=nt>lighten</span><span class=o>(</span><span class=nn>#000</span><span class=o>,</span> <span class=nt>20</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span>   <span class=c1>// #333
-</span><span class=k>@gray</span><span class=nd>:</span>         <span class=nt>lighten</span><span class=o>(</span><span class=nn>#000</span><span class=o>,</span> <span class=nt>33</span><span class=nc>.5</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span> <span class=c1>// #555
-</span><span class=k>@gray-light</span><span class=nd>:</span>   <span class=nt>lighten</span><span class=o>(</span><span class=nn>#000</span><span class=o>,</span> <span class=nt>46</span><span class=nc>.7</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span> <span class=c1>// #777
-</span><span class=k>@gray-lighter</span><span class=nd>:</span> <span class=nt>lighten</span><span class=o>(</span><span class=nn>#000</span><span class=o>,</span> <span class=nt>93</span><span class=nc>.5</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span> <span class=o>//</span> <span class=nn>#eee</span></code></pre></figure> <div class=bs-example> <div class=color-swatches> <div class="color-swatch brand-primary"></div> <div class="color-swatch brand-success"></div> <div class="color-swatch brand-info"></div> <div class="color-swatch brand-warning"></div> <div class="color-swatch brand-danger"></div> </div> </div> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@brand-primary</span><span class=nd>:</span> <span class=nt>darken</span><span class=o>(</span><span class=nn>#428bca</span><span class=o>,</span> <span class=nt>6</span><span class=nc>.5</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span> <span class=c1>// #337ab7
-</span><span class=k>@brand-success</span><span class=nd>:</span> <span class=nn>#5cb85c</span><span class=p>;</span>
-<span class=k>@brand-info</span><span class=nd>:</span>    <span class=nn>#5bc0de</span><span class=p>;</span>
-<span class=k>@brand-warning</span><span class=nd>:</span> <span class=nn>#f0ad4e</span><span class=p>;</span>
-<span class=k>@brand-danger</span><span class=nd>:</span>  <span class=nn>#d9534f</span><span class=p>;</span></code></pre></figure> <p>Use any of these color variables as they are or reassign them to more meaningful variables for your project.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Use as-is
-</span><span class=nc>.masthead</span> <span class=p>{</span>
-  <span class=nl>background-color</span><span class=p>:</span> <span class=o>@</span><span class=n>brand-primary</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Reassigned variables in Less
-</span><span class=k>@alert-message-background</span><span class=nd>:</span> <span class=o>@</span><span class=nt>brand-info</span><span class=p>;</span>
-<span class=nc>.alert</span> <span class=p>{</span>
-  <span class=nl>background-color</span><span class=p>:</span> <span class=o>@</span><span class=n>alert-message-background</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-variables-scaffolding>Scaffolding</h3> <p>A handful of variables for quickly customizing key elements of your site's skeleton.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Scaffolding
-</span><span class=k>@body-bg</span><span class=nd>:</span>    <span class=nn>#fff</span><span class=p>;</span>
-<span class=k>@text-color</span><span class=nd>:</span> <span class=o>@</span><span class=nt>black-50</span><span class=p>;</span></code></pre></figure> <h3 id=less-variables-links>Links</h3> <p>Easily style your links with the right color with only one value.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Variables
-</span><span class=k>@link-color</span><span class=nd>:</span>       <span class=o>@</span><span class=nt>brand-primary</span><span class=p>;</span>
-<span class=k>@link-hover-color</span><span class=nd>:</span> <span class=nt>darken</span><span class=o>(@</span><span class=nt>link-color</span><span class=o>,</span> <span class=nt>15</span><span class=nv>%</span><span class=o>)</span><span class=p>;</span>
-
-<span class=c1>// Usage
-</span><span class=nt>a</span> <span class=p>{</span>
-  <span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>link-color</span><span class=p>;</span>
-  <span class=nl>text-decoration</span><span class=p>:</span> <span class=nb>none</span><span class=p>;</span>
-
-  <span class=k>&amp;</span><span class=nd>:hover</span> <span class=p>{</span>
-    <span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>link-hover-color</span><span class=p>;</span>
-    <span class=nl>text-decoration</span><span class=p>:</span> <span class=nb>underline</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span></code></pre></figure> <p>Note that the <code>@link-hover-color</code> uses a function, another awesome tool from Less, to automagically create the right hover color. You can use <code>darken</code>, <code>lighten</code>, <code>saturate</code>, and <code>desaturate</code>.</p> <h3 id=less-variables-typography>Typography</h3> <p>Easily set your typeface, text size, leading, and more with a few quick variables. Bootstrap makes use of these as well to provide easy typographic mixins.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@font-family-sans-serif</span><span class=nd>:</span>  <span class=s2>"Helvetica Neue"</span><span class=o>,</span> <span class=nt>Helvetica</span><span class=o>,</span> <span class=nt>Arial</span><span class=o>,</span> <span class=nt>sans-serif</span><span class=p>;</span>
-<span class=k>@font-family-serif</span><span class=nd>:</span>       <span class=nt>Georgia</span><span class=o>,</span> <span class=s2>"Times New Roman"</span><span class=o>,</span> <span class=nt>Times</span><span class=o>,</span> <span class=nt>serif</span><span class=p>;</span>
-<span class=k>@font-family-monospace</span><span class=nd>:</span>   <span class=nt>Menlo</span><span class=o>,</span> <span class=nt>Monaco</span><span class=o>,</span> <span class=nt>Consolas</span><span class=o>,</span> <span class=s2>"Courier New"</span><span class=o>,</span> <span class=nt>monospace</span><span class=p>;</span>
-<span class=k>@font-family-base</span><span class=nd>:</span>        <span class=o>@</span><span class=nt>font-family-sans-serif</span><span class=p>;</span>
-
-<span class=k>@font-size-base</span><span class=nd>:</span>          <span class=nt>14px</span><span class=p>;</span>
-<span class=k>@font-size-large</span><span class=nd>:</span>         <span class=nt>ceil</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>1</span><span class=nc>.25</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~18px
-</span><span class=k>@font-size-small</span><span class=nd>:</span>         <span class=nt>ceil</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>0</span><span class=nc>.85</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~12px
-</span>
-<span class=k>@font-size-h1</span><span class=nd>:</span>            <span class=nt>floor</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>2</span><span class=nc>.6</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~36px
-</span><span class=k>@font-size-h2</span><span class=nd>:</span>            <span class=nt>floor</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>2</span><span class=nc>.15</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~30px
-</span><span class=k>@font-size-h3</span><span class=nd>:</span>            <span class=nt>ceil</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>1</span><span class=nc>.7</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~24px
-</span><span class=k>@font-size-h4</span><span class=nd>:</span>            <span class=nt>ceil</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>1</span><span class=nc>.25</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~18px
-</span><span class=k>@font-size-h5</span><span class=nd>:</span>            <span class=o>@</span><span class=nt>font-size-base</span><span class=p>;</span>
-<span class=k>@font-size-h6</span><span class=nd>:</span>            <span class=nt>ceil</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=nt>0</span><span class=nc>.85</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~12px
-</span>
-<span class=k>@line-height-base</span><span class=nd>:</span>        <span class=nt>1</span><span class=nc>.428571429</span><span class=p>;</span> <span class=c1>// 20/14
-</span><span class=k>@line-height-computed</span><span class=nd>:</span>    <span class=nt>floor</span><span class=o>((@</span><span class=nt>font-size-base</span> <span class=o>*</span> <span class=o>@</span><span class=nt>line-height-base</span><span class=o>))</span><span class=p>;</span> <span class=c1>// ~20px
-</span>
-<span class=k>@headings-font-family</span><span class=nd>:</span>    <span class=nt>inherit</span><span class=p>;</span>
-<span class=k>@headings-font-weight</span><span class=nd>:</span>    <span class=nt>500</span><span class=p>;</span>
-<span class=k>@headings-line-height</span><span class=nd>:</span>    <span class=nt>1</span><span class=nc>.1</span><span class=p>;</span>
-<span class=k>@headings-color</span><span class=nd>:</span>          <span class=nt>inherit</span><span class=p>;</span></code></pre></figure> <h3 id=less-variables-icons>Icons</h3> <p>Two quick variables for customizing the location and filename of your icons.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@icon-font-path</span><span class=nd>:</span>          <span class=s2>"../fonts/"</span><span class=p>;</span>
-<span class=k>@icon-font-name</span><span class=nd>:</span>          <span class=s2>"glyphicons-halflings-regular"</span><span class=p>;</span></code></pre></figure> <h3 id=less-variables-components>Components</h3> <p>Components throughout Bootstrap make use of some default variables for setting common values. Here are the most commonly used.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@padding-base-vertical</span><span class=nd>:</span>          <span class=nt>6px</span><span class=p>;</span>
-<span class=k>@padding-base-horizontal</span><span class=nd>:</span>        <span class=nt>12px</span><span class=p>;</span>
-
-<span class=k>@padding-large-vertical</span><span class=nd>:</span>         <span class=nt>10px</span><span class=p>;</span>
-<span class=k>@padding-large-horizontal</span><span class=nd>:</span>       <span class=nt>16px</span><span class=p>;</span>
-
-<span class=k>@padding-small-vertical</span><span class=nd>:</span>         <span class=nt>5px</span><span class=p>;</span>
-<span class=k>@padding-small-horizontal</span><span class=nd>:</span>       <span class=nt>10px</span><span class=p>;</span>
-
-<span class=k>@padding-xs-vertical</span><span class=nd>:</span>            <span class=nt>1px</span><span class=p>;</span>
-<span class=k>@padding-xs-horizontal</span><span class=nd>:</span>          <span class=nt>5px</span><span class=p>;</span>
-
-<span class=k>@line-height-large</span><span class=nd>:</span>              <span class=nt>1</span><span class=nc>.33</span><span class=p>;</span>
-<span class=k>@line-height-small</span><span class=nd>:</span>              <span class=nt>1</span><span class=nc>.5</span><span class=p>;</span>
-
-<span class=k>@border-radius-base</span><span class=nd>:</span>             <span class=nt>4px</span><span class=p>;</span>
-<span class=k>@border-radius-large</span><span class=nd>:</span>            <span class=nt>6px</span><span class=p>;</span>
-<span class=k>@border-radius-small</span><span class=nd>:</span>            <span class=nt>3px</span><span class=p>;</span>
-
-<span class=k>@component-active-color</span><span class=nd>:</span>         <span class=nn>#fff</span><span class=p>;</span>
-<span class=k>@component-active-bg</span><span class=nd>:</span>            <span class=o>@</span><span class=nt>brand-primary</span><span class=p>;</span>
-
-<span class=k>@caret-width-base</span><span class=nd>:</span>               <span class=nt>4px</span><span class=p>;</span>
-<span class=k>@caret-width-large</span><span class=nd>:</span>              <span class=nt>5px</span><span class=p>;</span></code></pre></figure> <h2 id=less-mixins-vendor>Vendor mixins</h2> <p>Vendor mixins are mixins to help support multiple browsers by including all relevant vendor prefixes in your compiled CSS.</p> <h3 id=less-mixins-box-sizing>Box-sizing</h3> <p>Reset your components' box model with a single mixin. For context, see this <a href=https://developer.mozilla.org/en-US/docs/CSS/box-sizing target=_blank>helpful article from Mozilla</a>.</p> <p>The mixin is <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.box-sizing</span><span class=o>(@</span><span class=nt>box-model</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-box-sizing</span><span class=p>:</span> <span class=o>@</span><span class=n>box-model</span><span class=p>;</span> <span class=c1>// Safari &lt;= 5
-</span>     <span class=na>-moz-box-sizing</span><span class=p>:</span> <span class=o>@</span><span class=n>box-model</span><span class=p>;</span> <span class=c1>// Firefox &lt;= 19
-</span>          <span class=nl>box-sizing</span><span class=p>:</span> <span class=o>@</span><span class=n>box-model</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-rounded-corners>Rounded corners</h3> <p>Today all modern browsers support the non-prefixed <code>border-radius</code> property. As such, there is no <code>.border-radius()</code> mixin, but Bootstrap does include shortcuts for quickly rounding two corners on a particular side of an object.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.border-top-radius</span><span class=o>(@</span><span class=nt>radius</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>border-top-right-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-   <span class=nl>border-top-left-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.border-right-radius</span><span class=o>(@</span><span class=nt>radius</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>border-bottom-right-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-     <span class=nl>border-top-right-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.border-bottom-radius</span><span class=o>(@</span><span class=nt>radius</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>border-bottom-right-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-   <span class=nl>border-bottom-left-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.border-left-radius</span><span class=o>(@</span><span class=nt>radius</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>border-bottom-left-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-     <span class=nl>border-top-left-radius</span><span class=p>:</span> <span class=o>@</span><span class=n>radius</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-box-shadow>Box (Drop) shadows</h3> <p>If your target audience is using the latest and greatest browsers and devices, be sure to just use the <code>box-shadow</code> property on its own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use the <strong>deprecated</strong> mixin to pick up the required <code>-webkit</code> prefix.</p> <p>The mixin is <strong>deprecated</strong> as of v3.1.0, since Bootstrap doesn't officially support the outdated platforms that don't support the standard property. To preserve backwards-compatibility, Bootstrap will continue to use the mixin internally until Bootstrap v4.</p> <p>Be sure to use <code>rgba()</code> colors in your box shadows so they blend as seamlessly as possible with backgrounds.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=err>.</span><span class=nl>box-shadow</span><span class=err>(@</span><span class=na>shadow</span><span class=p>:</span> <span class=m>0</span> <span class=m>1px</span> <span class=m>3px</span> <span class=nf>rgba</span><span class=p>(</span><span class=m>0</span><span class=o>,</span><span class=m>0</span><span class=o>,</span><span class=m>0</span><span class=o>,.</span><span class=m>25</span><span class=p>))</span> <span class=p>{</span>
-  <span class=na>-webkit-box-shadow</span><span class=p>:</span> <span class=o>@</span><span class=n>shadow</span><span class=p>;</span> <span class=c1>// iOS &lt;4.3 &amp; Android &lt;4.1
-</span>          <span class=nl>box-shadow</span><span class=p>:</span> <span class=o>@</span><span class=n>shadow</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-transitions>Transitions</h3> <p>Multiple mixins for flexibility. Set all transition information with one, or specify a separate delay and duration as needed.</p> <p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.transition</span><span class=o>(@</span><span class=nt>transition</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition</span><span class=p>:</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-          <span class=nl>transition</span><span class=p>:</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transition-property</span><span class=o>(@</span><span class=nt>transition-property</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition-property</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-property</span><span class=p>;</span>
-          <span class=nl>transition-property</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-property</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transition-delay</span><span class=o>(@</span><span class=nt>transition-delay</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition-delay</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-delay</span><span class=p>;</span>
-          <span class=nl>transition-delay</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-delay</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transition-duration</span><span class=o>(@</span><span class=nt>transition-duration</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition-duration</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-duration</span><span class=p>;</span>
-          <span class=nl>transition-duration</span><span class=p>:</span> <span class=o>@</span><span class=n>transition-duration</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transition-timing-function</span><span class=o>(@</span><span class=nt>timing-function</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition-timing-function</span><span class=p>:</span> <span class=o>@</span><span class=n>timing-function</span><span class=p>;</span>
-          <span class=nl>transition-timing-function</span><span class=p>:</span> <span class=o>@</span><span class=n>timing-function</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transition-transform</span><span class=o>(@</span><span class=nt>transition</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transition</span><span class=p>:</span> <span class=o>-</span><span class=n>webkit-transform</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-     <span class=na>-moz-transition</span><span class=p>:</span> <span class=o>-</span><span class=n>moz-transform</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-       <span class=na>-o-transition</span><span class=p>:</span> <span class=o>-</span><span class=n>o-transform</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-          <span class=nl>transition</span><span class=p>:</span> <span class=n>transform</span> <span class=o>@</span><span class=n>transition</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-transformations>Transformations</h3> <p>Rotate, scale, translate (move), or skew any object.</p> <p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.rotate</span><span class=o>(@</span><span class=nt>degrees</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>rotate</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>rotate</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>rotate</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.scale</span><span class=o>(@</span><span class=nt>ratio</span><span class=p>;</span> <span class=k>@ratio-y</span><span class=nc>...</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>scale</span><span class=p>(</span><span class=o>@</span><span class=n>ratio</span><span class=o>,</span> <span class=o>@</span><span class=n>ratio-y</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>scale</span><span class=p>(</span><span class=o>@</span><span class=n>ratio</span><span class=o>,</span> <span class=o>@</span><span class=n>ratio-y</span><span class=p>);</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>scale</span><span class=p>(</span><span class=o>@</span><span class=n>ratio</span><span class=o>,</span> <span class=o>@</span><span class=n>ratio-y</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.translate</span><span class=o>(@</span><span class=nt>x</span><span class=p>;</span> <span class=k>@y</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>translate</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>translate</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=p>);</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>translate</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.skew</span><span class=o>(@</span><span class=nt>x</span><span class=p>;</span> <span class=k>@y</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>skew</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>skewX</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=p>)</span> <span class=nf>skewY</span><span class=p>(</span><span class=o>@</span><span class=n>y</span><span class=p>);</span> <span class=c1>// See https://github.com/twbs/bootstrap/issues/4885; IE9+
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>skew</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.translate3d</span><span class=o>(@</span><span class=nt>x</span><span class=p>;</span> <span class=k>@y</span><span class=p>;</span> <span class=k>@z</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>translate3d</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=o>,</span> <span class=o>@</span><span class=n>z</span><span class=p>);</span>
-          <span class=nl>transform</span><span class=p>:</span> <span class=nf>translate3d</span><span class=p>(</span><span class=o>@</span><span class=n>x</span><span class=o>,</span> <span class=o>@</span><span class=n>y</span><span class=o>,</span> <span class=o>@</span><span class=n>z</span><span class=p>);</span>
-<span class=p>}</span>
-
-<span class=nc>.rotateX</span><span class=o>(@</span><span class=nt>degrees</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>rotateX</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>rotateX</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>rotateX</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.rotateY</span><span class=o>(@</span><span class=nt>degrees</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform</span><span class=p>:</span> <span class=nf>rotateY</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-      <span class=na>-ms-transform</span><span class=p>:</span> <span class=nf>rotateY</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform</span><span class=p>:</span> <span class=nf>rotateY</span><span class=p>(</span><span class=o>@</span><span class=n>degrees</span><span class=p>);</span>
-<span class=p>}</span>
-<span class=nc>.perspective</span><span class=o>(@</span><span class=nt>perspective</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-perspective</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-     <span class=na>-moz-perspective</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-          <span class=nl>perspective</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.perspective-origin</span><span class=o>(@</span><span class=nt>perspective</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-perspective-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-     <span class=na>-moz-perspective-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-          <span class=nl>perspective-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>perspective</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.transform-origin</span><span class=o>(@</span><span class=nt>origin</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-transform-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>origin</span><span class=p>;</span>
-     <span class=na>-moz-transform-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>origin</span><span class=p>;</span>
-      <span class=na>-ms-transform-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>origin</span><span class=p>;</span> <span class=c1>// IE9 only
-</span>          <span class=nl>transform-origin</span><span class=p>:</span> <span class=o>@</span><span class=n>origin</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-animations>Animations</h3> <p>A single mixin for using all of CSS3's animation properties in one declaration and other mixins for individual properties.</p> <p>The mixins are <strong>deprecated</strong> as of v3.2.0, with the introduction of Autoprefixer. To preserve backwards-compatibility, Bootstrap will continue to use the mixins internally until Bootstrap v4.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.animation</span><span class=o>(@</span><span class=nt>animation</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation</span><span class=p>:</span> <span class=o>@</span><span class=n>animation</span><span class=p>;</span>
-          <span class=nl>animation</span><span class=p>:</span> <span class=o>@</span><span class=n>animation</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-name</span><span class=o>(@</span><span class=nt>name</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-name</span><span class=p>:</span> <span class=o>@</span><span class=n>name</span><span class=p>;</span>
-          <span class=nl>animation-name</span><span class=p>:</span> <span class=o>@</span><span class=n>name</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-duration</span><span class=o>(@</span><span class=nt>duration</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-duration</span><span class=p>:</span> <span class=o>@</span><span class=n>duration</span><span class=p>;</span>
-          <span class=nl>animation-duration</span><span class=p>:</span> <span class=o>@</span><span class=n>duration</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-timing-function</span><span class=o>(@</span><span class=nt>timing-function</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-timing-function</span><span class=p>:</span> <span class=o>@</span><span class=n>timing-function</span><span class=p>;</span>
-          <span class=nl>animation-timing-function</span><span class=p>:</span> <span class=o>@</span><span class=n>timing-function</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-delay</span><span class=o>(@</span><span class=nt>delay</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-delay</span><span class=p>:</span> <span class=o>@</span><span class=n>delay</span><span class=p>;</span>
-          <span class=nl>animation-delay</span><span class=p>:</span> <span class=o>@</span><span class=n>delay</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-iteration-count</span><span class=o>(@</span><span class=nt>iteration-count</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-iteration-count</span><span class=p>:</span> <span class=o>@</span><span class=n>iteration-count</span><span class=p>;</span>
-          <span class=nl>animation-iteration-count</span><span class=p>:</span> <span class=o>@</span><span class=n>iteration-count</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.animation-direction</span><span class=o>(@</span><span class=nt>direction</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-animation-direction</span><span class=p>:</span> <span class=o>@</span><span class=n>direction</span><span class=p>;</span>
-          <span class=nl>animation-direction</span><span class=p>:</span> <span class=o>@</span><span class=n>direction</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-opacity>Opacity</h3> <p>Set the opacity for all browsers and provide a <code>filter</code> fallback for IE8.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.opacity</span><span class=o>(@</span><span class=nt>opacity</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>opacity</span><span class=p>:</span> <span class=o>@</span><span class=n>opacity</span><span class=p>;</span>
-  <span class=c1>// IE8 filter
-</span>  <span class=k>@opacity-ie</span><span class=nd>:</span> <span class=o>(@</span><span class=nt>opacity</span> <span class=o>*</span> <span class=nt>100</span><span class=o>)</span><span class=p>;</span>
-  <span class=nl>filter</span><span class=p>:</span> <span class=o>~</span><span class=s2>"alpha(opacity=@{opacity-ie})"</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-placeholder>Placeholder text</h3> <p>Provide context for form controls within each field.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=err>.</span><span class=na>placeholder</span><span class=err>(@</span><span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>input-color-placeholder</span><span class=p>)</span> <span class=p>{</span>
-  <span class=err>&amp;</span><span class=p>:</span><span class=o>:-</span><span class=n>moz-placeholder</span>           <span class=p>{</span> <span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>color</span><span class=p>;</span> <span class=p>}</span> <span class=c1>// Firefox
-</span>  <span class=err>&amp;</span><span class=p>:</span><span class=o>-</span><span class=n>ms-input-placeholder</span>       <span class=p>{</span> <span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>color</span><span class=p>;</span> <span class=p>}</span> <span class=c1>// Internet Explorer 10+
-</span>  <span class=err>&amp;</span><span class=p>:</span><span class=o>:-</span><span class=n>webkit-input-placeholder</span>  <span class=p>{</span> <span class=nl>color</span><span class=p>:</span> <span class=o>@</span><span class=n>color</span><span class=p>;</span> <span class=p>}</span> <span class=c1>// Safari and Chrome
-</span><span class=p>}</span></code></pre></figure> <h3 id=less-mixins-columns>Columns</h3> <p>Generate columns via CSS within a single element.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.content-columns</span><span class=o>(@</span><span class=nt>width</span><span class=p>;</span> <span class=k>@count</span><span class=p>;</span> <span class=k>@gap</span><span class=o>)</span> <span class=p>{</span>
-  <span class=na>-webkit-column-width</span><span class=p>:</span> <span class=o>@</span><span class=n>width</span><span class=p>;</span>
-     <span class=na>-moz-column-width</span><span class=p>:</span> <span class=o>@</span><span class=n>width</span><span class=p>;</span>
-          <span class=nl>column-width</span><span class=p>:</span> <span class=o>@</span><span class=n>width</span><span class=p>;</span>
-  <span class=na>-webkit-column-count</span><span class=p>:</span> <span class=o>@</span><span class=n>count</span><span class=p>;</span>
-     <span class=na>-moz-column-count</span><span class=p>:</span> <span class=o>@</span><span class=n>count</span><span class=p>;</span>
-          <span class=nl>column-count</span><span class=p>:</span> <span class=o>@</span><span class=n>count</span><span class=p>;</span>
-  <span class=na>-webkit-column-gap</span><span class=p>:</span> <span class=o>@</span><span class=n>gap</span><span class=p>;</span>
-     <span class=na>-moz-column-gap</span><span class=p>:</span> <span class=o>@</span><span class=n>gap</span><span class=p>;</span>
-          <span class=nl>column-gap</span><span class=p>:</span> <span class=o>@</span><span class=n>gap</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-gradients>Gradients</h3> <p>Easily turn any two colors into a background gradient. Get more advanced and set a direction, use three colors, or use a radial gradient. With a single mixin you get all the prefixed syntaxes you'll need.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.vertical</span><span class=o>(</span><span class=nn>#333</span><span class=p>;</span> <span class=nn>#000</span><span class=o>)</span><span class=p>;</span>
-<span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.horizontal</span><span class=o>(</span><span class=nn>#333</span><span class=p>;</span> <span class=nn>#000</span><span class=o>)</span><span class=p>;</span>
-<span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.radial</span><span class=o>(</span><span class=nn>#333</span><span class=p>;</span> <span class=nn>#000</span><span class=o>)</span><span class=p>;</span></code></pre></figure> <p>You can also specify the angle of a standard two-color, linear gradient:</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.directional</span><span class=o>(</span><span class=nn>#333</span><span class=p>;</span> <span class=nn>#000</span><span class=p>;</span> <span class=nt>45deg</span><span class=o>)</span><span class=p>;</span></code></pre></figure> <p>If you need a barber-stripe style gradient, that's easy, too. Just specify a single color and we'll overlay a translucent white stripe.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.striped</span><span class=o>(</span><span class=nn>#333</span><span class=p>;</span> <span class=nt>45deg</span><span class=o>)</span><span class=p>;</span></code></pre></figure> <p>Up the ante and use three colors instead. Set the first color, the second color, the second color's color stop (a percentage value like 25%), and the third color with these mixins:</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.vertical-three-colors</span><span class=o>(</span><span class=nn>#777</span><span class=p>;</span> <span class=nn>#333</span><span class=p>;</span> <span class=nt>25</span><span class=nv>%</span><span class=p>;</span> <span class=nn>#000</span><span class=o>)</span><span class=p>;</span>
-<span class=nn>#gradient</span> <span class=o>&gt;</span> <span class=nc>.horizontal-three-colors</span><span class=o>(</span><span class=nn>#777</span><span class=p>;</span> <span class=nn>#333</span><span class=p>;</span> <span class=nt>25</span><span class=nv>%</span><span class=p>;</span> <span class=nn>#000</span><span class=o>)</span><span class=p>;</span></code></pre></figure> <p><strong>Heads up!</strong> Should you ever need to remove a gradient, be sure to remove any IE-specific <code>filter</code> you may have added. You can do that by using the <code>.reset-filter()</code> mixin alongside <code>background-image: none;</code>.</p> <h2 id=less-mixins-utility>Utility mixins</h2> <p>Utility mixins are mixins that combine otherwise unrelated CSS properties to achieve a specific goal or task.</p> <h3 id=less-mixins-clearfix>Clearfix</h3> <p>Forget adding <code>class="clearfix"</code> to any element and instead add the <code>.clearfix()</code> mixin where appropriate. Uses the <a href=http://nicolasgallagher.com/micro-clearfix-hack/ target=_blank>micro clearfix</a> from <a href=https://twitter.com/necolas target=_blank>Nicolas Gallagher</a>.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Mixin
-</span><span class=nc>.clearfix</span><span class=o>()</span> <span class=p>{</span>
-  <span class=k>&amp;</span><span class=nd>:before</span><span class=o>,</span>
-  <span class=k>&amp;</span><span class=nd>:after</span> <span class=p>{</span>
-    <span class=nl>content</span><span class=p>:</span> <span class=s2>" "</span><span class=p>;</span>
-    <span class=nl>display</span><span class=p>:</span> <span class=n>table</span><span class=p>;</span>
-  <span class=p>}</span>
-  <span class=k>&amp;</span><span class=nd>:after</span> <span class=p>{</span>
-    <span class=nl>clear</span><span class=p>:</span> <span class=nb>both</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage
-</span><span class=nc>.container</span> <span class=p>{</span>
-  <span class=nc>.clearfix</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-centering>Horizontal centering</h3> <p>Quickly center any element within its parent. <strong>Requires <code>width</code> or <code>max-width</code> to be set.</strong></p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Mixin
-</span><span class=nc>.center-block</span><span class=o>()</span> <span class=p>{</span>
-  <span class=nl>display</span><span class=p>:</span> <span class=nb>block</span><span class=p>;</span>
-  <span class=nl>margin-left</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-  <span class=nl>margin-right</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage
-</span><span class=nc>.container</span> <span class=p>{</span>
-  <span class=nl>width</span><span class=p>:</span> <span class=m>940px</span><span class=p>;</span>
-  <span class=nc>.center-block</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-sizing>Sizing helpers</h3> <p>Specify the dimensions of an object more easily.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Mixins
-</span><span class=nc>.size</span><span class=o>(@</span><span class=nt>width</span><span class=p>;</span> <span class=k>@height</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>width</span><span class=p>:</span> <span class=o>@</span><span class=n>width</span><span class=p>;</span>
-  <span class=nl>height</span><span class=p>:</span> <span class=o>@</span><span class=n>height</span><span class=p>;</span>
-<span class=p>}</span>
-<span class=nc>.square</span><span class=o>(@</span><span class=nt>size</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nc>.size</span><span class=o>(@</span><span class=nt>size</span><span class=p>;</span> <span class=k>@size</span><span class=o>)</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage
-</span><span class=nc>.image</span> <span class=p>{</span> <span class=nc>.size</span><span class=o>(</span><span class=nt>400px</span><span class=p>;</span> <span class=nt>300px</span><span class=o>)</span><span class=p>;</span> <span class=p>}</span>
-<span class=nc>.avatar</span> <span class=p>{</span> <span class=nc>.square</span><span class=o>(</span><span class=nt>48px</span><span class=o>)</span><span class=p>;</span> <span class=p>}</span></code></pre></figure> <h3 id=less-mixins-resizable>Resizable textareas</h3> <p>Easily configure the resize options for any textarea, or any other element. Defaults to normal browser behavior (<code>both</code>).</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=err>.</span><span class=na>resizable</span><span class=err>(@</span><span class=nl>direction</span><span class=p>:</span> <span class=nb>both</span><span class=p>)</span> <span class=p>{</span>
-  <span class=c1>// Options: horizontal, vertical, both
-</span>  <span class=nl>resize</span><span class=p>:</span> <span class=o>@</span><span class=n>direction</span><span class=p>;</span>
-  <span class=c1>// Safari fix
-</span>  <span class=nl>overflow</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-truncating>Truncating text</h3> <p>Easily truncate text with an ellipsis with a single mixin. <strong>Requires element to be <code>block</code> or <code>inline-block</code> level.</strong></p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=c1>// Mixin
-</span><span class=nc>.text-overflow</span><span class=o>()</span> <span class=p>{</span>
-  <span class=nl>overflow</span><span class=p>:</span> <span class=nb>hidden</span><span class=p>;</span>
-  <span class=nl>text-overflow</span><span class=p>:</span> <span class=n>ellipsis</span><span class=p>;</span>
-  <span class=nl>white-space</span><span class=p>:</span> <span class=nb>nowrap</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage
-</span><span class=nc>.branch-name</span> <span class=p>{</span>
-  <span class=nl>display</span><span class=p>:</span> <span class=n>inline-block</span><span class=p>;</span>
-  <span class=nl>max-width</span><span class=p>:</span> <span class=m>200px</span><span class=p>;</span>
-  <span class=nc>.text-overflow</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <h3 id=less-mixins-retina-images>Retina images</h3> <p>Specify two image paths and the @1x image dimensions, and Bootstrap will provide an @2x media query. <strong>If you have many images to serve, consider writing your retina image CSS manually in a single media query.</strong></p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=nc>.img-retina</span><span class=o>(@</span><span class=nt>file-1x</span><span class=p>;</span> <span class=k>@file-2x</span><span class=p>;</span> <span class=k>@width-1x</span><span class=p>;</span> <span class=k>@height-1x</span><span class=o>)</span> <span class=p>{</span>
-  <span class=nl>background-image</span><span class=p>:</span> <span class=sx>url("@{file-1x}")</span><span class=p>;</span>
-
-  <span class=k>@media</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span><span class=o>-</span><span class=n>webkit-min-device-pixel-ratio</span><span class=o>:</span> <span class=m>2</span><span class=p>)</span><span class=o>,</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span>   <span class=n>min--moz-device-pixel-ratio</span><span class=o>:</span> <span class=m>2</span><span class=p>)</span><span class=o>,</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span>     <span class=o>-</span><span class=n>o-min-device-pixel-ratio</span><span class=o>:</span> <span class=m>2</span><span class=o>/</span><span class=m>1</span><span class=p>)</span><span class=o>,</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span>        <span class=n>min-device-pixel-ratio</span><span class=o>:</span> <span class=m>2</span><span class=p>)</span><span class=o>,</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span>                <span class=n>min-resolution</span><span class=o>:</span> <span class=m>192dpi</span><span class=p>)</span><span class=o>,</span>
-  <span class=n>only</span> <span class=n>screen</span> <span class=nf>and</span> <span class=p>(</span>                <span class=n>min-resolution</span><span class=o>:</span> <span class=m>2dppx</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nl>background-image</span><span class=p>:</span> <span class=sx>url("@{file-2x}")</span><span class=p>;</span>
-    <span class=nl>background-size</span><span class=p>:</span> <span class=o>@</span><span class=n>width-1x</span> <span class=o>@</span><span class=n>height-1x</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-
-<span class=c1>// Usage
-</span><span class=nc>.jumbotron</span> <span class=p>{</span>
-  <span class=nc>.img-retina</span><span class=o>(</span><span class=s2>"/img/bg-1x.png"</span><span class=o>,</span> <span class=s2>"/img/bg-2x.png"</span><span class=o>,</span> <span class=nt>100px</span><span class=o>,</span> <span class=nt>100px</span><span class=o>)</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=sass>Using Sass</h1> <p class=lead>While Bootstrap is built on Less, it also has an <a href=https://github.com/twbs/bootstrap-sass>official Sass port</a>. We maintain it in a separate GitHub repository and handle updates with a conversion script.</p> <h2 id=sass-contents>What's included</h2> <p>Since the Sass port has a separate repo and serves a slightly different audience, the contents of the project differ greatly from the main Bootstrap project. This ensures the Sass port is as compatible with as many Sass-based systems as possible.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <th>Path</th> <th>Description</th> </tr> </thead> <tbody> <tr> <th scope=row><code>lib/</code></th> <td>Ruby gem code (Sass configuration, Rails and Compass integrations)</td> </tr> <tr> <th scope=row><code>tasks/</code></th> <td>Converter scripts (turning upstream Less to Sass)</td> </tr> <tr> <th scope=row><code>test/</code></th> <td>Compilation tests</td> </tr> <tr> <th scope=row><code>templates/</code></th> <td>Compass package manifest</td> </tr> <tr> <th scope=row><code>vendor/assets/</code></th> <td>Sass, JavaScript, and font files</td> </tr> <tr> <th scope=row><code>Rakefile</code></th> <td>Internal tasks, such as rake and convert</td> </tr> </tbody> </table> </div> <p>Visit the <a href=https://github.com/twbs/bootstrap-sass>Sass port's GitHub repository</a> to see these files in action.</p> <h2 id=sass-installation>Installation</h2> <p>For information on how to install and use Bootstrap for Sass, consult the <a href=https://github.com/twbs/bootstrap-sass>GitHub repository readme</a>. It's the most up to date source and includes information for use with Rails, Compass, and standard Sass projects.</p> <p> <a href=https://github.com/twbs/bootstrap-sass class="btn btn-lg btn-outline">Bootstrap for Sass</a> </p> </div> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li> <a href=#overview>Overview</a> <ul class=nav> <li><a href=#overview-doctype>HTML5 doctype</a></li> <li><a href=#overview-mobile>Mobile first</a></li> <li><a href=#overview-type-links>Typography and links</a></li> <li><a href=#overview-normalize>Normalize.css</a></li> <li><a href=#overview-container>Containers</a></li> </ul> </li> <li> <a href=#grid>Grid system</a> <ul class=nav> <li><a href=#grid-intro>Introduction</a></li> <li><a href=#grid-media-queries>Media queries</a></li> <li><a href=#grid-options>Grid options</a></li> <li><a href=#grid-example-basic>Ex: Stacked-to-horizontal</a></li> <li><a href=#grid-example-fluid>Ex: Fluid container</a></li> <li><a href=#grid-example-mixed>Ex: Mobile and desktop</a></li> <li><a href=#grid-example-mixed-complete>Ex: Mobile, tablet, desktop</a></li> <li><a href=#grid-example-wrapping>Ex: Column wrapping</a></li> <li><a href=#grid-responsive-resets>Responsive column resets</a></li> <li><a href=#grid-offsetting>Offsetting columns</a></li> <li><a href=#grid-nesting>Nesting columns</a></li> <li><a href=#grid-column-ordering>Column ordering</a></li> <li><a href=#grid-less>Less mixins and variables</a></li> </ul> </li> <li> <a href=#type>Typography</a> <ul class=nav> <li><a href=#type-headings>Headings</a></li> <li><a href=#type-body-copy>Body copy</a></li> <li><a href=#type-inline-text>Inline text elements</a></li> <li><a href=#type-alignment>Alignment classes</a></li> <li><a href=#type-transformation>Transformation classes</a></li> <li><a href=#type-abbreviations>Abbreviations</a></li> <li><a href=#type-addresses>Addresses</a></li> <li><a href=#type-blockquotes>Blockquotes</a></li> <li><a href=#type-lists>Lists</a></li> </ul> </li> <li> <a href=#code>Code</a> <ul class=nav> <li><a href=#code-inline>Inline</a></li> <li><a href=#code-user-input>User input</a></li> <li><a href=#code-block>Basic block</a></li> <li><a href=#code-variables>Variables</a></li> <li><a href=#code-sample-output>Sample output</a></li> </ul> </li> <li> <a href=#tables>Tables</a> <ul class=nav> <li><a href=#tables-example>Basic example</a></li> <li><a href=#tables-striped>Striped rows</a></li> <li><a href=#tables-bordered>Bordered table</a></li> <li><a href=#tables-hover-rows>Hover rows</a></li> <li><a href=#tables-condensed>Condensed table</a></li> <li><a href=#tables-contextual-classes>Contextual classes</a></li> <li><a href=#tables-responsive>Responsive tables</a></li> </ul> </li> <li> <a href=#forms>Forms</a> <ul class=nav> <li><a href=#forms-example>Basic example</a></li> <li><a href=#forms-inline>Inline form</a></li> <li><a href=#forms-horizontal>Horizontal form</a></li> <li><a href=#forms-controls>Supported controls</a></li> <li><a href=#forms-controls-static>Static control</a></li> <li><a href=#forms-control-focus>Focus state</a></li> <li><a href=#forms-control-disabled>Disabled state</a></li> <li><a href=#forms-control-readonly>Readonly state</a></li> <li><a href=#forms-help-text>Help text</a></li> <li><a href=#forms-control-validation>Validation states</a></li> <li><a href=#forms-control-sizes>Control sizing</a></li> </ul> </li> <li> <a href=#buttons>Buttons</a> <ul class=nav> <li><a href=#buttons-tags>Button tags</a></li> <li><a href=#buttons-options>Options</a></li> <li><a href=#buttons-sizes>Sizes</a></li> <li><a href=#buttons-active>Active state</a></li> <li><a href=#buttons-disabled>Disabled state</a></li> </ul> </li> <li> <a href=#images>Images</a> <ul class=nav> <li><a href=#images-responsive>Responsive images</a></li> <li><a href=#images-shapes>Image shapes</a></li> </ul> </li> <li> <a href=#helper-classes>Helper classes</a> <ul class=nav> <li><a href=#helper-classes-colors>Contextual colors</a></li> <li><a href=#helper-classes-backgrounds>Contextual backgrounds</a></li> <li><a href=#helper-classes-close>Close icon</a></li> <li><a href=#helper-classes-carets>Carets</a></li> <li><a href=#helper-classes-floats>Quick floats</a></li> <li><a href=#helper-classes-center>Center content blocks</a></li> <li><a href=#helper-classes-clearfix>Clearfix</a></li> <li><a href=#helper-classes-show-hide>Showing and hiding content</a></li> <li><a href=#helper-classes-screen-readers>Screen reader and keyboard navigation content</a></li> <li><a href=#helper-classes-image-replacement>Image replacement</a></li> </ul> </li> <li> <a href=#responsive-utilities>Responsive utilities</a> <ul class=nav> <li><a href=#responsive-utilities-classes>Available classes</a></li> <li><a href=#responsive-utilities-print>Print classes</a></li> <li><a href=#responsive-utilities-tests>Test cases</a></li> </ul> </li> <li> <a href=#less>Using Less</a> <ul class=nav> <li><a href=#less-bootstrap>Compiling Bootstrap</a></li> <li><a href=#less-variables>Variables</a></li> <li><a href=#less-mixins-vendor>Vendor mixins</a></li> <li><a href=#less-mixins-utility>Utility mixins</a></li> </ul> </li> <li> <a href=#sass>Using Sass</a> <ul class=nav> <li><a href=#sass-contents>What's included</a></li> <li><a href=#sass-installation>Installation</a></li> </ul> </li> </ul> <a href=#top class=back-to-top> Back to top </a> <a href=# class=bs-docs-theme-toggle role=button> Preview theme </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/css/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/css/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/css/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/css/"</script>
+</html>
index 359bec3b6731b8e8f5e18abf0b6434a732180f3d..be1b44ec299bfa7e647ff26fa509f042dd7ce1cd 100644 (file)
@@ -1 +1,10 @@
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> Customize and download &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li class=active> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>Customize and download</h1> <p>Customize Bootstrap's components, Less variables, and jQuery plugins to get your very own version.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <!--[if lt IE 9]> <style>.bs-customizer,.bs-customizer-import,.bs-docs-sidebar{display:none}</style> <div class="alert alert-danger"> <strong>The Bootstrap Customizer does not support IE9 and below.</strong><br> Please take a second to <a href=http://browsehappy.com/ >upgrade to a more modern browser</a>. </div> <![endif]--> <div class="alert alert-warning alert-dismissible" role=alert id=defaults-change-alert> <button type=button class=close data-dismiss=alert aria-label=Close><span aria-hidden=true>&times;</span></button> <strong>Heads up!</strong> The default value for <code>@brand-primary</code> has changed in the latest release to improve contrast and accessibility. Please double check your compiled CSS when upgrading. </div> <div class="bs-docs-section bs-customizer-import"> <div class=bs-dropzone id=import-drop-target> <div class=import-header> <span class="glyphicon glyphicon-download-alt" aria-hidden=true></span> </div> <p class=lead>Have an existing configuration? Upload your <code>config.json</code> to import it.</p> <p>Drag and drop here, or <label id=import-manual-trigger class=btn-link>manually upload<input type=file id=import-file-select class=hidden></label>.</p> <hr> <p><strong>Don't have one?</strong> That's okay—just start customizing the fields below.</p> </div> </div> <form class=bs-customizer> <div class=bs-docs-section id=less-section> <button class="btn btn-default toggle" type=button>Toggle all</button> <h1 class=page-header id=less>Less files</h1> <p class=lead>Choose which Less files to compile into your custom build of Bootstrap. Not sure which files to use? Read through the <a href=../css/ >CSS</a> and <a href=../components/ >Components</a> pages in the docs.</p> <div class=row> <div class="col-xs-6 col-sm-4"> <h3>Common CSS</h3> <div class=checkbox> <label> <input type=checkbox checked value=print.less> Print media styles </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=type.less> Typography </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=code.less> Code </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=grid.less> Grid system </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=tables.less> Tables </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=forms.less data-dependents=navbar.less,input-groups.less> Forms </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=buttons.less data-dependents=button-groups.less> Buttons </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=responsive-utilities.less> Responsive utilities </label> </div> </div> <div class="col-xs-6 col-sm-4"> <h3>Components</h3> <div class=checkbox> <label> <input type=checkbox checked value=glyphicons.less> Glyphicons </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=button-groups.less data-dependencies=buttons.less> Button groups </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=input-groups.less data-dependencies=forms.less> Input groups </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=navs.less data-dependents=navbar.less> Navs </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=navbar.less data-dependencies=forms.less,navs.less> Navbar </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=breadcrumbs.less> Breadcrumbs </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=pagination.less> Pagination </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=pager.less> Pager </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=labels.less> Labels </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=badges.less> Badges </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=jumbotron.less> Jumbotron </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=thumbnails.less> Thumbnails </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=alerts.less> Alerts </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=progress-bars.less> Progress bars </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=media.less> Media items </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=list-group.less> List groups </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=panels.less> Panels </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=responsive-embed.less> Responsive embed </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=wells.less> Wells </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=close.less> Close icon </label> </div> </div> <div class="col-xs-6 col-sm-4"> <h3>JavaScript components</h3> <div class=checkbox> <label> <input type=checkbox checked value=component-animations.less> Component animations (for JS)<br> (includes Collapse) </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=dropdowns.less> Dropdown </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=tooltip.less> Tooltip </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=popovers.less> Popover </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=modals.less> Modal </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=carousel.less> Carousel </label> </div> </div> </div> </div> <div class=bs-docs-section id=plugin-section> <button class="btn btn-default toggle" type=button>Toggle all</button> <h1 class=page-header id=plugins>jQuery plugins</h1> <p class=lead>Choose which jQuery plugins should be included in your custom JavaScript files. Unsure what to include? Read the <a href=../javascript/ >JavaScript</a> page in the docs.</p> <div class=row> <div class=col-lg-6> <h4>Linked to components</h4> <div class=checkbox> <label> <input type=checkbox checked value=alert.js> Alert dismissal </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=button.js> Advanced buttons </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=carousel.js> Carousel functionality </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=dropdown.js> Dropdowns </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=modal.js> Modals </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=tooltip.js> Tooltips </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=popover.js data-dependencies=tooltip.js> Popovers <small>(requires Tooltips)</small> </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=tab.js> Togglable tabs </label> </div> </div> <div class=col-lg-6> <h4>Magic</h4> <div class=checkbox> <label> <input type=checkbox checked value=affix.js> Affix </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=collapse.js> Collapse </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=scrollspy.js> Scrollspy </label> </div> <div class=checkbox> <label> <input type=checkbox checked value=transition.js> Transitions <small>(required for any kind of animation)</small> </label> </div> </div> </div> <div class="bs-callout bs-callout-info"> <h4>Produces two files</h4> <p>All checked plugins will be compiled into a readable <code>bootstrap.js</code> and a minified <code>bootstrap.min.js</code>. We recommend you use the minified version in production.</p> </div> <div class="bs-callout bs-callout-danger"> <h4>jQuery required</h4> <p>All plugins require the latest version of <a href=http://jquery.com/ target=_blank>jQuery</a> to be included.</p> </div> </div> <div class=bs-docs-section id=less-variables-section> <button class="btn btn-default toggle" type=button>Reset to defaults</button> <h1 class=page-header id=less-variables>Less variables</h1> <p class=lead>Customize Less variables to define colors, sizes and more inside your custom CSS stylesheets.</p> <h2 id=colors>Colors</h2> <p>Gray and brand colors for use across Bootstrap.</p> <div class=row> <div class=col-xs-4> <label for=input-@gray-base>@gray-base</label> <input class=form-control id=input-@gray-base value=#000 data-var=@gray-base> </div> <div class=col-xs-4> <label for=input-@gray-darker>@gray-darker</label> <input class=form-control id=input-@gray-darker value="lighten(@gray-base, 13.5%)" data-var=@gray-darker> </div> <div class=col-xs-4> <label for=input-@gray-dark>@gray-dark</label> <input class=form-control id=input-@gray-dark value="lighten(@gray-base, 20%)" data-var=@gray-dark> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@gray>@gray</label> <input class=form-control id=input-@gray value="lighten(@gray-base, 33.5%)" data-var=@gray> </div> <div class=col-xs-4> <label for=input-@gray-light>@gray-light</label> <input class=form-control id=input-@gray-light value="lighten(@gray-base, 46.7%)" data-var=@gray-light> </div> <div class=col-xs-4> <label for=input-@gray-lighter>@gray-lighter</label> <input class=form-control id=input-@gray-lighter value="lighten(@gray-base, 93.5%)" data-var=@gray-lighter> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@brand-primary>@brand-primary</label> <input class=form-control id=input-@brand-primary value="darken(#428bca, 6.5%)" data-var=@brand-primary> </div> <div class=col-xs-4> <label for=input-@brand-success>@brand-success</label> <input class=form-control id=input-@brand-success value=#5cb85c data-var=@brand-success> </div> <div class=col-xs-4> <label for=input-@brand-info>@brand-info</label> <input class=form-control id=input-@brand-info value=#5bc0de data-var=@brand-info> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@brand-warning>@brand-warning</label> <input class=form-control id=input-@brand-warning value=#f0ad4e data-var=@brand-warning> </div> <div class=col-xs-4> <label for=input-@brand-danger>@brand-danger</label> <input class=form-control id=input-@brand-danger value=#d9534f data-var=@brand-danger> </div> </div> <h2 id=scaffolding>Scaffolding</h2> <p>Settings for some of the most global styles.</p> <div class=row> <div class=col-xs-4> <label for=input-@body-bg>@body-bg</label> <input class=form-control id=input-@body-bg aria-describedby=help-block-@body-bg value=#fff data-var=@body-bg> <p class=help-block id=help-block-@body-bg>Background color for <code>&lt;body&gt;</code>.</p> </div> <div class=col-xs-4> <label for=input-@text-color>@text-color</label> <input class=form-control id=input-@text-color aria-describedby=help-block-@text-color value=@gray-dark data-var=@text-color> <p class=help-block id=help-block-@text-color>Global text color on <code>&lt;body&gt;</code>.</p> </div> <div class=col-xs-4> <label for=input-@link-color>@link-color</label> <input class=form-control id=input-@link-color aria-describedby=help-block-@link-color value=@brand-primary data-var=@link-color> <p class=help-block id=help-block-@link-color>Global textual link color.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@link-hover-color>@link-hover-color</label> <input class=form-control id=input-@link-hover-color aria-describedby=help-block-@link-hover-color value="darken(@link-color, 15%)" data-var=@link-hover-color> <p class=help-block id=help-block-@link-hover-color>Link hover color set via <code>darken()</code> function.</p> </div> <div class=col-xs-4> <label for=input-@link-hover-decoration>@link-hover-decoration</label> <input class=form-control id=input-@link-hover-decoration aria-describedby=help-block-@link-hover-decoration value=underline data-var=@link-hover-decoration> <p class=help-block id=help-block-@link-hover-decoration>Link hover decoration.</p> </div> </div> <h2 id=typography>Typography</h2> <p>Font, line-height, and color for body text, headings, and more.</p> <div class=row> <div class=col-xs-4> <label for=input-@font-family-sans-serif>@font-family-sans-serif</label> <input class=form-control id=input-@font-family-sans-serif value="&quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif" data-var=@font-family-sans-serif> </div> <div class=col-xs-4> <label for=input-@font-family-serif>@font-family-serif</label> <input class=form-control id=input-@font-family-serif value="Georgia, &quot;Times New Roman&quot;, Times, serif" data-var=@font-family-serif> </div> <div class=col-xs-4> <label for=input-@font-family-monospace>@font-family-monospace</label> <input class=form-control id=input-@font-family-monospace aria-describedby=help-block-@font-family-monospace value="Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace" data-var=@font-family-monospace> <p class=help-block id=help-block-@font-family-monospace>Default monospace fonts for <code>&lt;code&gt;</code>, <code>&lt;kbd&gt;</code>, and <code>&lt;pre&gt;</code>.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@font-family-base>@font-family-base</label> <input class=form-control id=input-@font-family-base value=@font-family-sans-serif data-var=@font-family-base> </div> <div class=col-xs-4> <label for=input-@font-size-base>@font-size-base</label> <input class=form-control id=input-@font-size-base value=14px data-var=@font-size-base> </div> <div class=col-xs-4> <label for=input-@font-size-large>@font-size-large</label> <input class=form-control id=input-@font-size-large value="ceil((@font-size-base * 1.25))" data-var=@font-size-large> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@font-size-small>@font-size-small</label> <input class=form-control id=input-@font-size-small value="ceil((@font-size-base * 0.85))" data-var=@font-size-small> </div> <div class=col-xs-4> <label for=input-@font-size-h1>@font-size-h1</label> <input class=form-control id=input-@font-size-h1 value="floor((@font-size-base * 2.6))" data-var=@font-size-h1> </div> <div class=col-xs-4> <label for=input-@font-size-h2>@font-size-h2</label> <input class=form-control id=input-@font-size-h2 value="floor((@font-size-base * 2.15))" data-var=@font-size-h2> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@font-size-h3>@font-size-h3</label> <input class=form-control id=input-@font-size-h3 value="ceil((@font-size-base * 1.7))" data-var=@font-size-h3> </div> <div class=col-xs-4> <label for=input-@font-size-h4>@font-size-h4</label> <input class=form-control id=input-@font-size-h4 value="ceil((@font-size-base * 1.25))" data-var=@font-size-h4> </div> <div class=col-xs-4> <label for=input-@font-size-h5>@font-size-h5</label> <input class=form-control id=input-@font-size-h5 value=@font-size-base data-var=@font-size-h5> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@font-size-h6>@font-size-h6</label> <input class=form-control id=input-@font-size-h6 value="ceil((@font-size-base * 0.85))" data-var=@font-size-h6> </div> <div class=col-xs-4> <label for=input-@line-height-base>@line-height-base</label> <input class=form-control id=input-@line-height-base aria-describedby=help-block-@line-height-base value=1.428571429 data-var=@line-height-base> <p class=help-block id=help-block-@line-height-base>Unit-less <code>line-height</code> for use in components like buttons.</p> </div> <div class=col-xs-4> <label for=input-@line-height-computed>@line-height-computed</label> <input class=form-control id=input-@line-height-computed aria-describedby=help-block-@line-height-computed value="floor((@font-size-base * @line-height-base))" data-var=@line-height-computed> <p class=help-block id=help-block-@line-height-computed>Computed &quot;line-height&quot; (<code>font-size</code> * <code>line-height</code>) for use with <code>margin</code>, <code>padding</code>, etc.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@headings-font-family>@headings-font-family</label> <input class=form-control id=input-@headings-font-family aria-describedby=help-block-@headings-font-family value=inherit data-var=@headings-font-family> <p class=help-block id=help-block-@headings-font-family>By default, this inherits from the <code>&lt;body&gt;</code>.</p> </div> <div class=col-xs-4> <label for=input-@headings-font-weight>@headings-font-weight</label> <input class=form-control id=input-@headings-font-weight value=500 data-var=@headings-font-weight> </div> <div class=col-xs-4> <label for=input-@headings-line-height>@headings-line-height</label> <input class=form-control id=input-@headings-line-height value=1.1 data-var=@headings-line-height> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@headings-color>@headings-color</label> <input class=form-control id=input-@headings-color value=inherit data-var=@headings-color> </div> </div> <h2 id=iconography>Iconography</h2> <p>Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.</p> <div class=row> <div class=col-xs-4> <label for=input-@icon-font-path>@icon-font-path</label> <input class=form-control id=input-@icon-font-path aria-describedby=help-block-@icon-font-path value=&quot;../fonts/&quot; data-var=@icon-font-path> <p class=help-block id=help-block-@icon-font-path>Load fonts from this directory.</p> </div> <div class=col-xs-4> <label for=input-@icon-font-name>@icon-font-name</label> <input class=form-control id=input-@icon-font-name aria-describedby=help-block-@icon-font-name value=&quot;glyphicons-halflings-regular&quot; data-var=@icon-font-name> <p class=help-block id=help-block-@icon-font-name>File name for all font files.</p> </div> <div class=col-xs-4> <label for=input-@icon-font-svg-id>@icon-font-svg-id</label> <input class=form-control id=input-@icon-font-svg-id aria-describedby=help-block-@icon-font-svg-id value=&quot;glyphicons_halflingsregular&quot; data-var=@icon-font-svg-id> <p class=help-block id=help-block-@icon-font-svg-id>Element ID within SVG icon file.</p> </div> </div> <h2 id=components>Components</h2> <p>Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).</p> <div class=row> <div class=col-xs-4> <label for=input-@padding-base-vertical>@padding-base-vertical</label> <input class=form-control id=input-@padding-base-vertical value=6px data-var=@padding-base-vertical> </div> <div class=col-xs-4> <label for=input-@padding-base-horizontal>@padding-base-horizontal</label> <input class=form-control id=input-@padding-base-horizontal value=12px data-var=@padding-base-horizontal> </div> <div class=col-xs-4> <label for=input-@padding-large-vertical>@padding-large-vertical</label> <input class=form-control id=input-@padding-large-vertical value=10px data-var=@padding-large-vertical> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@padding-large-horizontal>@padding-large-horizontal</label> <input class=form-control id=input-@padding-large-horizontal value=16px data-var=@padding-large-horizontal> </div> <div class=col-xs-4> <label for=input-@padding-small-vertical>@padding-small-vertical</label> <input class=form-control id=input-@padding-small-vertical value=5px data-var=@padding-small-vertical> </div> <div class=col-xs-4> <label for=input-@padding-small-horizontal>@padding-small-horizontal</label> <input class=form-control id=input-@padding-small-horizontal value=10px data-var=@padding-small-horizontal> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@padding-xs-vertical>@padding-xs-vertical</label> <input class=form-control id=input-@padding-xs-vertical value=1px data-var=@padding-xs-vertical> </div> <div class=col-xs-4> <label for=input-@padding-xs-horizontal>@padding-xs-horizontal</label> <input class=form-control id=input-@padding-xs-horizontal value=5px data-var=@padding-xs-horizontal> </div> <div class=col-xs-4> <label for=input-@line-height-large>@line-height-large</label> <input class=form-control id=input-@line-height-large value=1.3333333 data-var=@line-height-large> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@line-height-small>@line-height-small</label> <input class=form-control id=input-@line-height-small value=1.5 data-var=@line-height-small> </div> <div class=col-xs-4> <label for=input-@border-radius-base>@border-radius-base</label> <input class=form-control id=input-@border-radius-base value=4px data-var=@border-radius-base> </div> <div class=col-xs-4> <label for=input-@border-radius-large>@border-radius-large</label> <input class=form-control id=input-@border-radius-large value=6px data-var=@border-radius-large> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@border-radius-small>@border-radius-small</label> <input class=form-control id=input-@border-radius-small value=3px data-var=@border-radius-small> </div> <div class=col-xs-4> <label for=input-@component-active-color>@component-active-color</label> <input class=form-control id=input-@component-active-color aria-describedby=help-block-@component-active-color value=#fff data-var=@component-active-color> <p class=help-block id=help-block-@component-active-color>Global color for active items (e.g., navs or dropdowns).</p> </div> <div class=col-xs-4> <label for=input-@component-active-bg>@component-active-bg</label> <input class=form-control id=input-@component-active-bg aria-describedby=help-block-@component-active-bg value=@brand-primary data-var=@component-active-bg> <p class=help-block id=help-block-@component-active-bg>Global background color for active items (e.g., navs or dropdowns).</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@caret-width-base>@caret-width-base</label> <input class=form-control id=input-@caret-width-base aria-describedby=help-block-@caret-width-base value=4px data-var=@caret-width-base> <p class=help-block id=help-block-@caret-width-base>Width of the <code>border</code> for generating carets that indicate dropdowns.</p> </div> <div class=col-xs-4> <label for=input-@caret-width-large>@caret-width-large</label> <input class=form-control id=input-@caret-width-large aria-describedby=help-block-@caret-width-large value=5px data-var=@caret-width-large> <p class=help-block id=help-block-@caret-width-large>Carets increase slightly in size for larger components.</p> </div> </div> <h2 id=tables>Tables</h2> <p>Customizes the <code>.table</code> component with basic values, each used across all table variations.</p> <div class=row> <div class=col-xs-4> <label for=input-@table-cell-padding>@table-cell-padding</label> <input class=form-control id=input-@table-cell-padding aria-describedby=help-block-@table-cell-padding value=8px data-var=@table-cell-padding> <p class=help-block id=help-block-@table-cell-padding>Padding for <code>&lt;th&gt;</code>s and <code>&lt;td&gt;</code>s.</p> </div> <div class=col-xs-4> <label for=input-@table-condensed-cell-padding>@table-condensed-cell-padding</label> <input class=form-control id=input-@table-condensed-cell-padding aria-describedby=help-block-@table-condensed-cell-padding value=5px data-var=@table-condensed-cell-padding> <p class=help-block id=help-block-@table-condensed-cell-padding>Padding for cells in <code>.table-condensed</code>.</p> </div> <div class=col-xs-4> <label for=input-@table-bg>@table-bg</label> <input class=form-control id=input-@table-bg aria-describedby=help-block-@table-bg value=transparent data-var=@table-bg> <p class=help-block id=help-block-@table-bg>Default background color used for all tables.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@table-bg-accent>@table-bg-accent</label> <input class=form-control id=input-@table-bg-accent aria-describedby=help-block-@table-bg-accent value=#f9f9f9 data-var=@table-bg-accent> <p class=help-block id=help-block-@table-bg-accent>Background color used for <code>.table-striped</code>.</p> </div> <div class=col-xs-4> <label for=input-@table-bg-hover>@table-bg-hover</label> <input class=form-control id=input-@table-bg-hover aria-describedby=help-block-@table-bg-hover value=#f5f5f5 data-var=@table-bg-hover> <p class=help-block id=help-block-@table-bg-hover>Background color used for <code>.table-hover</code>.</p> </div> <div class=col-xs-4> <label for=input-@table-bg-active>@table-bg-active</label> <input class=form-control id=input-@table-bg-active value=@table-bg-hover data-var=@table-bg-active> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@table-border-color>@table-border-color</label> <input class=form-control id=input-@table-border-color aria-describedby=help-block-@table-border-color value=#ddd data-var=@table-border-color> <p class=help-block id=help-block-@table-border-color>Border color for table and cell borders.</p> </div> </div> <h2 id=buttons>Buttons</h2> <p>For each of Bootstrap's buttons, define text, background and border color.</p> <div class=row> <div class=col-xs-4> <label for=input-@btn-font-weight>@btn-font-weight</label> <input class=form-control id=input-@btn-font-weight value=normal data-var=@btn-font-weight> </div> <div class=col-xs-4> <label for=input-@btn-default-color>@btn-default-color</label> <input class=form-control id=input-@btn-default-color value=#333 data-var=@btn-default-color> </div> <div class=col-xs-4> <label for=input-@btn-default-bg>@btn-default-bg</label> <input class=form-control id=input-@btn-default-bg value=#fff data-var=@btn-default-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-default-border>@btn-default-border</label> <input class=form-control id=input-@btn-default-border value=#ccc data-var=@btn-default-border> </div> <div class=col-xs-4> <label for=input-@btn-primary-color>@btn-primary-color</label> <input class=form-control id=input-@btn-primary-color value=#fff data-var=@btn-primary-color> </div> <div class=col-xs-4> <label for=input-@btn-primary-bg>@btn-primary-bg</label> <input class=form-control id=input-@btn-primary-bg value=@brand-primary data-var=@btn-primary-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-primary-border>@btn-primary-border</label> <input class=form-control id=input-@btn-primary-border value="darken(@btn-primary-bg, 5%)" data-var=@btn-primary-border> </div> <div class=col-xs-4> <label for=input-@btn-success-color>@btn-success-color</label> <input class=form-control id=input-@btn-success-color value=#fff data-var=@btn-success-color> </div> <div class=col-xs-4> <label for=input-@btn-success-bg>@btn-success-bg</label> <input class=form-control id=input-@btn-success-bg value=@brand-success data-var=@btn-success-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-success-border>@btn-success-border</label> <input class=form-control id=input-@btn-success-border value="darken(@btn-success-bg, 5%)" data-var=@btn-success-border> </div> <div class=col-xs-4> <label for=input-@btn-info-color>@btn-info-color</label> <input class=form-control id=input-@btn-info-color value=#fff data-var=@btn-info-color> </div> <div class=col-xs-4> <label for=input-@btn-info-bg>@btn-info-bg</label> <input class=form-control id=input-@btn-info-bg value=@brand-info data-var=@btn-info-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-info-border>@btn-info-border</label> <input class=form-control id=input-@btn-info-border value="darken(@btn-info-bg, 5%)" data-var=@btn-info-border> </div> <div class=col-xs-4> <label for=input-@btn-warning-color>@btn-warning-color</label> <input class=form-control id=input-@btn-warning-color value=#fff data-var=@btn-warning-color> </div> <div class=col-xs-4> <label for=input-@btn-warning-bg>@btn-warning-bg</label> <input class=form-control id=input-@btn-warning-bg value=@brand-warning data-var=@btn-warning-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-warning-border>@btn-warning-border</label> <input class=form-control id=input-@btn-warning-border value="darken(@btn-warning-bg, 5%)" data-var=@btn-warning-border> </div> <div class=col-xs-4> <label for=input-@btn-danger-color>@btn-danger-color</label> <input class=form-control id=input-@btn-danger-color value=#fff data-var=@btn-danger-color> </div> <div class=col-xs-4> <label for=input-@btn-danger-bg>@btn-danger-bg</label> <input class=form-control id=input-@btn-danger-bg value=@brand-danger data-var=@btn-danger-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-danger-border>@btn-danger-border</label> <input class=form-control id=input-@btn-danger-border value="darken(@btn-danger-bg, 5%)" data-var=@btn-danger-border> </div> <div class=col-xs-4> <label for=input-@btn-link-disabled-color>@btn-link-disabled-color</label> <input class=form-control id=input-@btn-link-disabled-color value=@gray-light data-var=@btn-link-disabled-color> </div> <div class=col-xs-4> <label for=input-@btn-border-radius-base>@btn-border-radius-base</label> <input class=form-control id=input-@btn-border-radius-base value=@border-radius-base data-var=@btn-border-radius-base> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@btn-border-radius-large>@btn-border-radius-large</label> <input class=form-control id=input-@btn-border-radius-large value=@border-radius-large data-var=@btn-border-radius-large> </div> <div class=col-xs-4> <label for=input-@btn-border-radius-small>@btn-border-radius-small</label> <input class=form-control id=input-@btn-border-radius-small value=@border-radius-small data-var=@btn-border-radius-small> </div> </div> <h2 id=forms>Forms</h2> <div class=row> <div class=col-xs-4> <label for=input-@input-bg>@input-bg</label> <input class=form-control id=input-@input-bg aria-describedby=help-block-@input-bg value=#fff data-var=@input-bg> <p class=help-block id=help-block-@input-bg><code>&lt;input&gt;</code> background color</p> </div> <div class=col-xs-4> <label for=input-@input-bg-disabled>@input-bg-disabled</label> <input class=form-control id=input-@input-bg-disabled aria-describedby=help-block-@input-bg-disabled value=@gray-lighter data-var=@input-bg-disabled> <p class=help-block id=help-block-@input-bg-disabled><code>&lt;input disabled&gt;</code> background color</p> </div> <div class=col-xs-4> <label for=input-@input-color>@input-color</label> <input class=form-control id=input-@input-color aria-describedby=help-block-@input-color value=@gray data-var=@input-color> <p class=help-block id=help-block-@input-color>Text color for <code>&lt;input&gt;</code>s</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@input-border>@input-border</label> <input class=form-control id=input-@input-border aria-describedby=help-block-@input-border value=#ccc data-var=@input-border> <p class=help-block id=help-block-@input-border><code>&lt;input&gt;</code> border color</p> </div> <div class=col-xs-4> <label for=input-@input-border-radius>@input-border-radius</label> <input class=form-control id=input-@input-border-radius aria-describedby=help-block-@input-border-radius value=@border-radius-base data-var=@input-border-radius> <p class=help-block id=help-block-@input-border-radius>Default <code>.form-control</code> border radius</p> </div> <div class=col-xs-4> <label for=input-@input-border-radius-large>@input-border-radius-large</label> <input class=form-control id=input-@input-border-radius-large aria-describedby=help-block-@input-border-radius-large value=@border-radius-large data-var=@input-border-radius-large> <p class=help-block id=help-block-@input-border-radius-large>Large <code>.form-control</code> border radius</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@input-border-radius-small>@input-border-radius-small</label> <input class=form-control id=input-@input-border-radius-small aria-describedby=help-block-@input-border-radius-small value=@border-radius-small data-var=@input-border-radius-small> <p class=help-block id=help-block-@input-border-radius-small>Small <code>.form-control</code> border radius</p> </div> <div class=col-xs-4> <label for=input-@input-border-focus>@input-border-focus</label> <input class=form-control id=input-@input-border-focus aria-describedby=help-block-@input-border-focus value=#66afe9 data-var=@input-border-focus> <p class=help-block id=help-block-@input-border-focus>Border color for inputs on focus</p> </div> <div class=col-xs-4> <label for=input-@input-color-placeholder>@input-color-placeholder</label> <input class=form-control id=input-@input-color-placeholder aria-describedby=help-block-@input-color-placeholder value=#999 data-var=@input-color-placeholder> <p class=help-block id=help-block-@input-color-placeholder>Placeholder text color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@input-height-base>@input-height-base</label> <input class=form-control id=input-@input-height-base aria-describedby=help-block-@input-height-base value="(@line-height-computed + (@padding-base-vertical * 2) + 2)" data-var=@input-height-base> <p class=help-block id=help-block-@input-height-base>Default <code>.form-control</code> height</p> </div> <div class=col-xs-4> <label for=input-@input-height-large>@input-height-large</label> <input class=form-control id=input-@input-height-large aria-describedby=help-block-@input-height-large value="(ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2)" data-var=@input-height-large> <p class=help-block id=help-block-@input-height-large>Large <code>.form-control</code> height</p> </div> <div class=col-xs-4> <label for=input-@input-height-small>@input-height-small</label> <input class=form-control id=input-@input-height-small aria-describedby=help-block-@input-height-small value="(floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2)" data-var=@input-height-small> <p class=help-block id=help-block-@input-height-small>Small <code>.form-control</code> height</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@form-group-margin-bottom>@form-group-margin-bottom</label> <input class=form-control id=input-@form-group-margin-bottom aria-describedby=help-block-@form-group-margin-bottom value=15px data-var=@form-group-margin-bottom> <p class=help-block id=help-block-@form-group-margin-bottom><code>.form-group</code> margin</p> </div> <div class=col-xs-4> <label for=input-@legend-color>@legend-color</label> <input class=form-control id=input-@legend-color value=@gray-dark data-var=@legend-color> </div> <div class=col-xs-4> <label for=input-@legend-border-color>@legend-border-color</label> <input class=form-control id=input-@legend-border-color value=#e5e5e5 data-var=@legend-border-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@input-group-addon-bg>@input-group-addon-bg</label> <input class=form-control id=input-@input-group-addon-bg aria-describedby=help-block-@input-group-addon-bg value=@gray-lighter data-var=@input-group-addon-bg> <p class=help-block id=help-block-@input-group-addon-bg>Background color for textual input addons</p> </div> <div class=col-xs-4> <label for=input-@input-group-addon-border-color>@input-group-addon-border-color</label> <input class=form-control id=input-@input-group-addon-border-color aria-describedby=help-block-@input-group-addon-border-color value=@input-border data-var=@input-group-addon-border-color> <p class=help-block id=help-block-@input-group-addon-border-color>Border color for textual input addons</p> </div> <div class=col-xs-4> <label for=input-@cursor-disabled>@cursor-disabled</label> <input class=form-control id=input-@cursor-disabled aria-describedby=help-block-@cursor-disabled value=not-allowed data-var=@cursor-disabled> <p class=help-block id=help-block-@cursor-disabled>Disabled cursor for form controls and buttons.</p> </div> </div> <h2 id=dropdowns>Dropdowns</h2> <p>Dropdown menu container and contents.</p> <div class=row> <div class=col-xs-4> <label for=input-@dropdown-bg>@dropdown-bg</label> <input class=form-control id=input-@dropdown-bg aria-describedby=help-block-@dropdown-bg value=#fff data-var=@dropdown-bg> <p class=help-block id=help-block-@dropdown-bg>Background for the dropdown menu.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-border>@dropdown-border</label> <input class=form-control id=input-@dropdown-border aria-describedby=help-block-@dropdown-border value=rgba(0,0,0,.15) data-var=@dropdown-border> <p class=help-block id=help-block-@dropdown-border>Dropdown menu <code>border-color</code>.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-fallback-border>@dropdown-fallback-border</label> <input class=form-control id=input-@dropdown-fallback-border aria-describedby=help-block-@dropdown-fallback-border value=#ccc data-var=@dropdown-fallback-border> <p class=help-block id=help-block-@dropdown-fallback-border>Dropdown menu <code>border-color</code> <strong>for IE8</strong>.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@dropdown-divider-bg>@dropdown-divider-bg</label> <input class=form-control id=input-@dropdown-divider-bg aria-describedby=help-block-@dropdown-divider-bg value=#e5e5e5 data-var=@dropdown-divider-bg> <p class=help-block id=help-block-@dropdown-divider-bg>Divider color for between dropdown items.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-link-color>@dropdown-link-color</label> <input class=form-control id=input-@dropdown-link-color aria-describedby=help-block-@dropdown-link-color value=@gray-dark data-var=@dropdown-link-color> <p class=help-block id=help-block-@dropdown-link-color>Dropdown link text color.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-link-hover-color>@dropdown-link-hover-color</label> <input class=form-control id=input-@dropdown-link-hover-color aria-describedby=help-block-@dropdown-link-hover-color value="darken(@gray-dark, 5%)" data-var=@dropdown-link-hover-color> <p class=help-block id=help-block-@dropdown-link-hover-color>Hover color for dropdown links.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@dropdown-link-hover-bg>@dropdown-link-hover-bg</label> <input class=form-control id=input-@dropdown-link-hover-bg aria-describedby=help-block-@dropdown-link-hover-bg value=#f5f5f5 data-var=@dropdown-link-hover-bg> <p class=help-block id=help-block-@dropdown-link-hover-bg>Hover background for dropdown links.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-link-active-color>@dropdown-link-active-color</label> <input class=form-control id=input-@dropdown-link-active-color aria-describedby=help-block-@dropdown-link-active-color value=@component-active-color data-var=@dropdown-link-active-color> <p class=help-block id=help-block-@dropdown-link-active-color>Active dropdown menu item text color.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-link-active-bg>@dropdown-link-active-bg</label> <input class=form-control id=input-@dropdown-link-active-bg aria-describedby=help-block-@dropdown-link-active-bg value=@component-active-bg data-var=@dropdown-link-active-bg> <p class=help-block id=help-block-@dropdown-link-active-bg>Active dropdown menu item background color.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@dropdown-link-disabled-color>@dropdown-link-disabled-color</label> <input class=form-control id=input-@dropdown-link-disabled-color aria-describedby=help-block-@dropdown-link-disabled-color value=@gray-light data-var=@dropdown-link-disabled-color> <p class=help-block id=help-block-@dropdown-link-disabled-color>Disabled dropdown menu item background color.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-header-color>@dropdown-header-color</label> <input class=form-control id=input-@dropdown-header-color aria-describedby=help-block-@dropdown-header-color value=@gray-light data-var=@dropdown-header-color> <p class=help-block id=help-block-@dropdown-header-color>Text color for headers within dropdown menus.</p> </div> <div class=col-xs-4> <label for=input-@dropdown-caret-color>@dropdown-caret-color</label> <input class=form-control id=input-@dropdown-caret-color aria-describedby=help-block-@dropdown-caret-color value=#000 data-var=@dropdown-caret-color> <p class=help-block id=help-block-@dropdown-caret-color>Deprecated <code>@dropdown-caret-color</code> as of v3.1.0</p> </div> </div> <h2 id=media-queries-breakpoints>Media queries breakpoints</h2> <p>Define the breakpoints at which your layout will change, adapting to different screen sizes.</p> <div class=row> <div class=col-xs-4> <label for=input-@screen-xs>@screen-xs</label> <input class=form-control id=input-@screen-xs aria-describedby=help-block-@screen-xs value=480px data-var=@screen-xs> <p class=help-block id=help-block-@screen-xs>Deprecated <code>@screen-xs</code> as of v3.0.1</p> </div> <div class=col-xs-4> <label for=input-@screen-xs-min>@screen-xs-min</label> <input class=form-control id=input-@screen-xs-min aria-describedby=help-block-@screen-xs-min value=@screen-xs data-var=@screen-xs-min> <p class=help-block id=help-block-@screen-xs-min>Deprecated <code>@screen-xs-min</code> as of v3.2.0</p> </div> <div class=col-xs-4> <label for=input-@screen-phone>@screen-phone</label> <input class=form-control id=input-@screen-phone aria-describedby=help-block-@screen-phone value=@screen-xs-min data-var=@screen-phone> <p class=help-block id=help-block-@screen-phone>Deprecated <code>@screen-phone</code> as of v3.0.1</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@screen-sm>@screen-sm</label> <input class=form-control id=input-@screen-sm aria-describedby=help-block-@screen-sm value=768px data-var=@screen-sm> <p class=help-block id=help-block-@screen-sm>Deprecated <code>@screen-sm</code> as of v3.0.1</p> </div> <div class=col-xs-4> <label for=input-@screen-sm-min>@screen-sm-min</label> <input class=form-control id=input-@screen-sm-min value=@screen-sm data-var=@screen-sm-min> </div> <div class=col-xs-4> <label for=input-@screen-tablet>@screen-tablet</label> <input class=form-control id=input-@screen-tablet aria-describedby=help-block-@screen-tablet value=@screen-sm-min data-var=@screen-tablet> <p class=help-block id=help-block-@screen-tablet>Deprecated <code>@screen-tablet</code> as of v3.0.1</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@screen-md>@screen-md</label> <input class=form-control id=input-@screen-md aria-describedby=help-block-@screen-md value=992px data-var=@screen-md> <p class=help-block id=help-block-@screen-md>Deprecated <code>@screen-md</code> as of v3.0.1</p> </div> <div class=col-xs-4> <label for=input-@screen-md-min>@screen-md-min</label> <input class=form-control id=input-@screen-md-min value=@screen-md data-var=@screen-md-min> </div> <div class=col-xs-4> <label for=input-@screen-desktop>@screen-desktop</label> <input class=form-control id=input-@screen-desktop aria-describedby=help-block-@screen-desktop value=@screen-md-min data-var=@screen-desktop> <p class=help-block id=help-block-@screen-desktop>Deprecated <code>@screen-desktop</code> as of v3.0.1</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@screen-lg>@screen-lg</label> <input class=form-control id=input-@screen-lg aria-describedby=help-block-@screen-lg value=1200px data-var=@screen-lg> <p class=help-block id=help-block-@screen-lg>Deprecated <code>@screen-lg</code> as of v3.0.1</p> </div> <div class=col-xs-4> <label for=input-@screen-lg-min>@screen-lg-min</label> <input class=form-control id=input-@screen-lg-min value=@screen-lg data-var=@screen-lg-min> </div> <div class=col-xs-4> <label for=input-@screen-lg-desktop>@screen-lg-desktop</label> <input class=form-control id=input-@screen-lg-desktop aria-describedby=help-block-@screen-lg-desktop value=@screen-lg-min data-var=@screen-lg-desktop> <p class=help-block id=help-block-@screen-lg-desktop>Deprecated <code>@screen-lg-desktop</code> as of v3.0.1</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@screen-xs-max>@screen-xs-max</label> <input class=form-control id=input-@screen-xs-max value="(@screen-sm-min - 1)" data-var=@screen-xs-max> </div> <div class=col-xs-4> <label for=input-@screen-sm-max>@screen-sm-max</label> <input class=form-control id=input-@screen-sm-max value="(@screen-md-min - 1)" data-var=@screen-sm-max> </div> <div class=col-xs-4> <label for=input-@screen-md-max>@screen-md-max</label> <input class=form-control id=input-@screen-md-max value="(@screen-lg-min - 1)" data-var=@screen-md-max> </div> </div> <h2 id=grid-system>Grid system</h2> <p>Define your custom responsive grid.</p> <div class=row> <div class=col-xs-4> <label for=input-@grid-columns>@grid-columns</label> <input class=form-control id=input-@grid-columns aria-describedby=help-block-@grid-columns value=12 data-var=@grid-columns> <p class=help-block id=help-block-@grid-columns>Number of columns in the grid.</p> </div> <div class=col-xs-4> <label for=input-@grid-gutter-width>@grid-gutter-width</label> <input class=form-control id=input-@grid-gutter-width aria-describedby=help-block-@grid-gutter-width value=30px data-var=@grid-gutter-width> <p class=help-block id=help-block-@grid-gutter-width>Padding between columns. Gets divided in half for the left and right.</p> </div> <div class=col-xs-4> <label for=input-@grid-float-breakpoint>@grid-float-breakpoint</label> <input class=form-control id=input-@grid-float-breakpoint aria-describedby=help-block-@grid-float-breakpoint value=@screen-sm-min data-var=@grid-float-breakpoint> <p class=help-block id=help-block-@grid-float-breakpoint>Point at which the navbar becomes uncollapsed.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@grid-float-breakpoint-max>@grid-float-breakpoint-max</label> <input class=form-control id=input-@grid-float-breakpoint-max aria-describedby=help-block-@grid-float-breakpoint-max value="(@grid-float-breakpoint - 1)" data-var=@grid-float-breakpoint-max> <p class=help-block id=help-block-@grid-float-breakpoint-max>Point at which the navbar begins collapsing.</p> </div> </div> <h2 id=container-sizes>Container sizes</h2> <p>Define the maximum width of <code>.container</code> for different screen sizes.</p> <div class=row> <div class=col-xs-4> <label for=input-@container-tablet>@container-tablet</label> <input class=form-control id=input-@container-tablet value="(720px + @grid-gutter-width)" data-var=@container-tablet> </div> <div class=col-xs-4> <label for=input-@container-sm>@container-sm</label> <input class=form-control id=input-@container-sm aria-describedby=help-block-@container-sm value=@container-tablet data-var=@container-sm> <p class=help-block id=help-block-@container-sm>For <code>@screen-sm-min</code> and up.</p> </div> <div class=col-xs-4> <label for=input-@container-desktop>@container-desktop</label> <input class=form-control id=input-@container-desktop value="(940px + @grid-gutter-width)" data-var=@container-desktop> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@container-md>@container-md</label> <input class=form-control id=input-@container-md aria-describedby=help-block-@container-md value=@container-desktop data-var=@container-md> <p class=help-block id=help-block-@container-md>For <code>@screen-md-min</code> and up.</p> </div> <div class=col-xs-4> <label for=input-@container-large-desktop>@container-large-desktop</label> <input class=form-control id=input-@container-large-desktop value="(1140px + @grid-gutter-width)" data-var=@container-large-desktop> </div> <div class=col-xs-4> <label for=input-@container-lg>@container-lg</label> <input class=form-control id=input-@container-lg aria-describedby=help-block-@container-lg value=@container-large-desktop data-var=@container-lg> <p class=help-block id=help-block-@container-lg>For <code>@screen-lg-min</code> and up.</p> </div> </div> <h2 id=navbar>Navbar</h2> <div class=row> <div class=col-xs-4> <label for=input-@navbar-height>@navbar-height</label> <input class=form-control id=input-@navbar-height value=50px data-var=@navbar-height> </div> <div class=col-xs-4> <label for=input-@navbar-margin-bottom>@navbar-margin-bottom</label> <input class=form-control id=input-@navbar-margin-bottom value=@line-height-computed data-var=@navbar-margin-bottom> </div> <div class=col-xs-4> <label for=input-@navbar-border-radius>@navbar-border-radius</label> <input class=form-control id=input-@navbar-border-radius value=@border-radius-base data-var=@navbar-border-radius> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-padding-horizontal>@navbar-padding-horizontal</label> <input class=form-control id=input-@navbar-padding-horizontal value="floor((@grid-gutter-width / 2))" data-var=@navbar-padding-horizontal> </div> <div class=col-xs-4> <label for=input-@navbar-padding-vertical>@navbar-padding-vertical</label> <input class=form-control id=input-@navbar-padding-vertical value="((@navbar-height - @line-height-computed) / 2)" data-var=@navbar-padding-vertical> </div> <div class=col-xs-4> <label for=input-@navbar-collapse-max-height>@navbar-collapse-max-height</label> <input class=form-control id=input-@navbar-collapse-max-height value=340px data-var=@navbar-collapse-max-height> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-color>@navbar-default-color</label> <input class=form-control id=input-@navbar-default-color value=#777 data-var=@navbar-default-color> </div> <div class=col-xs-4> <label for=input-@navbar-default-bg>@navbar-default-bg</label> <input class=form-control id=input-@navbar-default-bg value=#f8f8f8 data-var=@navbar-default-bg> </div> <div class=col-xs-4> <label for=input-@navbar-default-border>@navbar-default-border</label> <input class=form-control id=input-@navbar-default-border value="darken(@navbar-default-bg, 6.5%)" data-var=@navbar-default-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-link-color>@navbar-default-link-color</label> <input class=form-control id=input-@navbar-default-link-color value=#777 data-var=@navbar-default-link-color> </div> <div class=col-xs-4> <label for=input-@navbar-default-link-hover-color>@navbar-default-link-hover-color</label> <input class=form-control id=input-@navbar-default-link-hover-color value=#333 data-var=@navbar-default-link-hover-color> </div> <div class=col-xs-4> <label for=input-@navbar-default-link-hover-bg>@navbar-default-link-hover-bg</label> <input class=form-control id=input-@navbar-default-link-hover-bg value=transparent data-var=@navbar-default-link-hover-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-link-active-color>@navbar-default-link-active-color</label> <input class=form-control id=input-@navbar-default-link-active-color value=#555 data-var=@navbar-default-link-active-color> </div> <div class=col-xs-4> <label for=input-@navbar-default-link-active-bg>@navbar-default-link-active-bg</label> <input class=form-control id=input-@navbar-default-link-active-bg value="darken(@navbar-default-bg, 6.5%)" data-var=@navbar-default-link-active-bg> </div> <div class=col-xs-4> <label for=input-@navbar-default-link-disabled-color>@navbar-default-link-disabled-color</label> <input class=form-control id=input-@navbar-default-link-disabled-color value=#ccc data-var=@navbar-default-link-disabled-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-link-disabled-bg>@navbar-default-link-disabled-bg</label> <input class=form-control id=input-@navbar-default-link-disabled-bg value=transparent data-var=@navbar-default-link-disabled-bg> </div> <div class=col-xs-4> <label for=input-@navbar-default-brand-color>@navbar-default-brand-color</label> <input class=form-control id=input-@navbar-default-brand-color value=@navbar-default-link-color data-var=@navbar-default-brand-color> </div> <div class=col-xs-4> <label for=input-@navbar-default-brand-hover-color>@navbar-default-brand-hover-color</label> <input class=form-control id=input-@navbar-default-brand-hover-color value="darken(@navbar-default-brand-color, 10%)" data-var=@navbar-default-brand-hover-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-brand-hover-bg>@navbar-default-brand-hover-bg</label> <input class=form-control id=input-@navbar-default-brand-hover-bg value=transparent data-var=@navbar-default-brand-hover-bg> </div> <div class=col-xs-4> <label for=input-@navbar-default-toggle-hover-bg>@navbar-default-toggle-hover-bg</label> <input class=form-control id=input-@navbar-default-toggle-hover-bg value=#ddd data-var=@navbar-default-toggle-hover-bg> </div> <div class=col-xs-4> <label for=input-@navbar-default-toggle-icon-bar-bg>@navbar-default-toggle-icon-bar-bg</label> <input class=form-control id=input-@navbar-default-toggle-icon-bar-bg value=#888 data-var=@navbar-default-toggle-icon-bar-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-default-toggle-border-color>@navbar-default-toggle-border-color</label> <input class=form-control id=input-@navbar-default-toggle-border-color value=#ddd data-var=@navbar-default-toggle-border-color> </div> </div> <h3 id=inverted-navbar>Inverted navbar</h3> <div class=row> <div class=col-xs-4> <label for=input-@navbar-inverse-color>@navbar-inverse-color</label> <input class=form-control id=input-@navbar-inverse-color value="lighten(@gray-light, 15%)" data-var=@navbar-inverse-color> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-bg>@navbar-inverse-bg</label> <input class=form-control id=input-@navbar-inverse-bg value=#222 data-var=@navbar-inverse-bg> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-border>@navbar-inverse-border</label> <input class=form-control id=input-@navbar-inverse-border value="darken(@navbar-inverse-bg, 10%)" data-var=@navbar-inverse-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-color>@navbar-inverse-link-color</label> <input class=form-control id=input-@navbar-inverse-link-color value="lighten(@gray-light, 15%)" data-var=@navbar-inverse-link-color> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-hover-color>@navbar-inverse-link-hover-color</label> <input class=form-control id=input-@navbar-inverse-link-hover-color value=#fff data-var=@navbar-inverse-link-hover-color> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-hover-bg>@navbar-inverse-link-hover-bg</label> <input class=form-control id=input-@navbar-inverse-link-hover-bg value=transparent data-var=@navbar-inverse-link-hover-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-active-color>@navbar-inverse-link-active-color</label> <input class=form-control id=input-@navbar-inverse-link-active-color value=@navbar-inverse-link-hover-color data-var=@navbar-inverse-link-active-color> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-active-bg>@navbar-inverse-link-active-bg</label> <input class=form-control id=input-@navbar-inverse-link-active-bg value="darken(@navbar-inverse-bg, 10%)" data-var=@navbar-inverse-link-active-bg> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-disabled-color>@navbar-inverse-link-disabled-color</label> <input class=form-control id=input-@navbar-inverse-link-disabled-color value=#444 data-var=@navbar-inverse-link-disabled-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-inverse-link-disabled-bg>@navbar-inverse-link-disabled-bg</label> <input class=form-control id=input-@navbar-inverse-link-disabled-bg value=transparent data-var=@navbar-inverse-link-disabled-bg> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-brand-color>@navbar-inverse-brand-color</label> <input class=form-control id=input-@navbar-inverse-brand-color value=@navbar-inverse-link-color data-var=@navbar-inverse-brand-color> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-brand-hover-color>@navbar-inverse-brand-hover-color</label> <input class=form-control id=input-@navbar-inverse-brand-hover-color value=#fff data-var=@navbar-inverse-brand-hover-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-inverse-brand-hover-bg>@navbar-inverse-brand-hover-bg</label> <input class=form-control id=input-@navbar-inverse-brand-hover-bg value=transparent data-var=@navbar-inverse-brand-hover-bg> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-toggle-hover-bg>@navbar-inverse-toggle-hover-bg</label> <input class=form-control id=input-@navbar-inverse-toggle-hover-bg value=#333 data-var=@navbar-inverse-toggle-hover-bg> </div> <div class=col-xs-4> <label for=input-@navbar-inverse-toggle-icon-bar-bg>@navbar-inverse-toggle-icon-bar-bg</label> <input class=form-control id=input-@navbar-inverse-toggle-icon-bar-bg value=#fff data-var=@navbar-inverse-toggle-icon-bar-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@navbar-inverse-toggle-border-color>@navbar-inverse-toggle-border-color</label> <input class=form-control id=input-@navbar-inverse-toggle-border-color value=#333 data-var=@navbar-inverse-toggle-border-color> </div> </div> <h2 id=navs>Navs</h2> <h3 id=shared-nav-styles>Shared nav styles</h3> <div class=row> <div class=col-xs-4> <label for=input-@nav-link-padding>@nav-link-padding</label> <input class=form-control id=input-@nav-link-padding value="10px 15px" data-var=@nav-link-padding> </div> <div class=col-xs-4> <label for=input-@nav-link-hover-bg>@nav-link-hover-bg</label> <input class=form-control id=input-@nav-link-hover-bg value=@gray-lighter data-var=@nav-link-hover-bg> </div> <div class=col-xs-4> <label for=input-@nav-disabled-link-color>@nav-disabled-link-color</label> <input class=form-control id=input-@nav-disabled-link-color value=@gray-light data-var=@nav-disabled-link-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@nav-disabled-link-hover-color>@nav-disabled-link-hover-color</label> <input class=form-control id=input-@nav-disabled-link-hover-color value=@gray-light data-var=@nav-disabled-link-hover-color> </div> </div> <h2 id=tabs>Tabs</h2> <div class=row> <div class=col-xs-4> <label for=input-@nav-tabs-border-color>@nav-tabs-border-color</label> <input class=form-control id=input-@nav-tabs-border-color value=#ddd data-var=@nav-tabs-border-color> </div> <div class=col-xs-4> <label for=input-@nav-tabs-link-hover-border-color>@nav-tabs-link-hover-border-color</label> <input class=form-control id=input-@nav-tabs-link-hover-border-color value=@gray-lighter data-var=@nav-tabs-link-hover-border-color> </div> <div class=col-xs-4> <label for=input-@nav-tabs-active-link-hover-bg>@nav-tabs-active-link-hover-bg</label> <input class=form-control id=input-@nav-tabs-active-link-hover-bg value=@body-bg data-var=@nav-tabs-active-link-hover-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@nav-tabs-active-link-hover-color>@nav-tabs-active-link-hover-color</label> <input class=form-control id=input-@nav-tabs-active-link-hover-color value=@gray data-var=@nav-tabs-active-link-hover-color> </div> <div class=col-xs-4> <label for=input-@nav-tabs-active-link-hover-border-color>@nav-tabs-active-link-hover-border-color</label> <input class=form-control id=input-@nav-tabs-active-link-hover-border-color value=#ddd data-var=@nav-tabs-active-link-hover-border-color> </div> <div class=col-xs-4> <label for=input-@nav-tabs-justified-link-border-color>@nav-tabs-justified-link-border-color</label> <input class=form-control id=input-@nav-tabs-justified-link-border-color value=#ddd data-var=@nav-tabs-justified-link-border-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@nav-tabs-justified-active-link-border-color>@nav-tabs-justified-active-link-border-color</label> <input class=form-control id=input-@nav-tabs-justified-active-link-border-color value=@body-bg data-var=@nav-tabs-justified-active-link-border-color> </div> </div> <h2 id=pills>Pills</h2> <div class=row> <div class=col-xs-4> <label for=input-@nav-pills-border-radius>@nav-pills-border-radius</label> <input class=form-control id=input-@nav-pills-border-radius value=@border-radius-base data-var=@nav-pills-border-radius> </div> <div class=col-xs-4> <label for=input-@nav-pills-active-link-hover-bg>@nav-pills-active-link-hover-bg</label> <input class=form-control id=input-@nav-pills-active-link-hover-bg value=@component-active-bg data-var=@nav-pills-active-link-hover-bg> </div> <div class=col-xs-4> <label for=input-@nav-pills-active-link-hover-color>@nav-pills-active-link-hover-color</label> <input class=form-control id=input-@nav-pills-active-link-hover-color value=@component-active-color data-var=@nav-pills-active-link-hover-color> </div> </div> <h2 id=pagination>Pagination</h2> <div class=row> <div class=col-xs-4> <label for=input-@pagination-color>@pagination-color</label> <input class=form-control id=input-@pagination-color value=@link-color data-var=@pagination-color> </div> <div class=col-xs-4> <label for=input-@pagination-bg>@pagination-bg</label> <input class=form-control id=input-@pagination-bg value=#fff data-var=@pagination-bg> </div> <div class=col-xs-4> <label for=input-@pagination-border>@pagination-border</label> <input class=form-control id=input-@pagination-border value=#ddd data-var=@pagination-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pagination-hover-color>@pagination-hover-color</label> <input class=form-control id=input-@pagination-hover-color value=@link-hover-color data-var=@pagination-hover-color> </div> <div class=col-xs-4> <label for=input-@pagination-hover-bg>@pagination-hover-bg</label> <input class=form-control id=input-@pagination-hover-bg value=@gray-lighter data-var=@pagination-hover-bg> </div> <div class=col-xs-4> <label for=input-@pagination-hover-border>@pagination-hover-border</label> <input class=form-control id=input-@pagination-hover-border value=#ddd data-var=@pagination-hover-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pagination-active-color>@pagination-active-color</label> <input class=form-control id=input-@pagination-active-color value=#fff data-var=@pagination-active-color> </div> <div class=col-xs-4> <label for=input-@pagination-active-bg>@pagination-active-bg</label> <input class=form-control id=input-@pagination-active-bg value=@brand-primary data-var=@pagination-active-bg> </div> <div class=col-xs-4> <label for=input-@pagination-active-border>@pagination-active-border</label> <input class=form-control id=input-@pagination-active-border value=@brand-primary data-var=@pagination-active-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pagination-disabled-color>@pagination-disabled-color</label> <input class=form-control id=input-@pagination-disabled-color value=@gray-light data-var=@pagination-disabled-color> </div> <div class=col-xs-4> <label for=input-@pagination-disabled-bg>@pagination-disabled-bg</label> <input class=form-control id=input-@pagination-disabled-bg value=#fff data-var=@pagination-disabled-bg> </div> <div class=col-xs-4> <label for=input-@pagination-disabled-border>@pagination-disabled-border</label> <input class=form-control id=input-@pagination-disabled-border value=#ddd data-var=@pagination-disabled-border> </div> </div> <h2 id=pager>Pager</h2> <div class=row> <div class=col-xs-4> <label for=input-@pager-bg>@pager-bg</label> <input class=form-control id=input-@pager-bg value=@pagination-bg data-var=@pager-bg> </div> <div class=col-xs-4> <label for=input-@pager-border>@pager-border</label> <input class=form-control id=input-@pager-border value=@pagination-border data-var=@pager-border> </div> <div class=col-xs-4> <label for=input-@pager-border-radius>@pager-border-radius</label> <input class=form-control id=input-@pager-border-radius value=15px data-var=@pager-border-radius> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pager-hover-bg>@pager-hover-bg</label> <input class=form-control id=input-@pager-hover-bg value=@pagination-hover-bg data-var=@pager-hover-bg> </div> <div class=col-xs-4> <label for=input-@pager-active-bg>@pager-active-bg</label> <input class=form-control id=input-@pager-active-bg value=@pagination-active-bg data-var=@pager-active-bg> </div> <div class=col-xs-4> <label for=input-@pager-active-color>@pager-active-color</label> <input class=form-control id=input-@pager-active-color value=@pagination-active-color data-var=@pager-active-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pager-disabled-color>@pager-disabled-color</label> <input class=form-control id=input-@pager-disabled-color value=@pagination-disabled-color data-var=@pager-disabled-color> </div> </div> <h2 id=jumbotron>Jumbotron</h2> <div class=row> <div class=col-xs-4> <label for=input-@jumbotron-padding>@jumbotron-padding</label> <input class=form-control id=input-@jumbotron-padding value=30px data-var=@jumbotron-padding> </div> <div class=col-xs-4> <label for=input-@jumbotron-color>@jumbotron-color</label> <input class=form-control id=input-@jumbotron-color value=inherit data-var=@jumbotron-color> </div> <div class=col-xs-4> <label for=input-@jumbotron-bg>@jumbotron-bg</label> <input class=form-control id=input-@jumbotron-bg value=@gray-lighter data-var=@jumbotron-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@jumbotron-heading-color>@jumbotron-heading-color</label> <input class=form-control id=input-@jumbotron-heading-color value=inherit data-var=@jumbotron-heading-color> </div> <div class=col-xs-4> <label for=input-@jumbotron-font-size>@jumbotron-font-size</label> <input class=form-control id=input-@jumbotron-font-size value="ceil((@font-size-base * 1.5))" data-var=@jumbotron-font-size> </div> <div class=col-xs-4> <label for=input-@jumbotron-heading-font-size>@jumbotron-heading-font-size</label> <input class=form-control id=input-@jumbotron-heading-font-size value="ceil((@font-size-base * 4.5))" data-var=@jumbotron-heading-font-size> </div> </div> <h2 id=form-states-and-alerts>Form states and alerts</h2> <p>Define colors for form feedback states and, by default, alerts.</p> <div class=row> <div class=col-xs-4> <label for=input-@state-success-text>@state-success-text</label> <input class=form-control id=input-@state-success-text value=#3c763d data-var=@state-success-text> </div> <div class=col-xs-4> <label for=input-@state-success-bg>@state-success-bg</label> <input class=form-control id=input-@state-success-bg value=#dff0d8 data-var=@state-success-bg> </div> <div class=col-xs-4> <label for=input-@state-success-border>@state-success-border</label> <input class=form-control id=input-@state-success-border value="darken(spin(@state-success-bg, -10), 5%)" data-var=@state-success-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@state-info-text>@state-info-text</label> <input class=form-control id=input-@state-info-text value=#31708f data-var=@state-info-text> </div> <div class=col-xs-4> <label for=input-@state-info-bg>@state-info-bg</label> <input class=form-control id=input-@state-info-bg value=#d9edf7 data-var=@state-info-bg> </div> <div class=col-xs-4> <label for=input-@state-info-border>@state-info-border</label> <input class=form-control id=input-@state-info-border value="darken(spin(@state-info-bg, -10), 7%)" data-var=@state-info-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@state-warning-text>@state-warning-text</label> <input class=form-control id=input-@state-warning-text value=#8a6d3b data-var=@state-warning-text> </div> <div class=col-xs-4> <label for=input-@state-warning-bg>@state-warning-bg</label> <input class=form-control id=input-@state-warning-bg value=#fcf8e3 data-var=@state-warning-bg> </div> <div class=col-xs-4> <label for=input-@state-warning-border>@state-warning-border</label> <input class=form-control id=input-@state-warning-border value="darken(spin(@state-warning-bg, -10), 5%)" data-var=@state-warning-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@state-danger-text>@state-danger-text</label> <input class=form-control id=input-@state-danger-text value=#a94442 data-var=@state-danger-text> </div> <div class=col-xs-4> <label for=input-@state-danger-bg>@state-danger-bg</label> <input class=form-control id=input-@state-danger-bg value=#f2dede data-var=@state-danger-bg> </div> <div class=col-xs-4> <label for=input-@state-danger-border>@state-danger-border</label> <input class=form-control id=input-@state-danger-border value="darken(spin(@state-danger-bg, -10), 5%)" data-var=@state-danger-border> </div> </div> <h2 id=tooltips>Tooltips</h2> <div class=row> <div class=col-xs-4> <label for=input-@tooltip-max-width>@tooltip-max-width</label> <input class=form-control id=input-@tooltip-max-width aria-describedby=help-block-@tooltip-max-width value=200px data-var=@tooltip-max-width> <p class=help-block id=help-block-@tooltip-max-width>Tooltip max width</p> </div> <div class=col-xs-4> <label for=input-@tooltip-color>@tooltip-color</label> <input class=form-control id=input-@tooltip-color aria-describedby=help-block-@tooltip-color value=#fff data-var=@tooltip-color> <p class=help-block id=help-block-@tooltip-color>Tooltip text color</p> </div> <div class=col-xs-4> <label for=input-@tooltip-bg>@tooltip-bg</label> <input class=form-control id=input-@tooltip-bg aria-describedby=help-block-@tooltip-bg value=#000 data-var=@tooltip-bg> <p class=help-block id=help-block-@tooltip-bg>Tooltip background color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@tooltip-opacity>@tooltip-opacity</label> <input class=form-control id=input-@tooltip-opacity value=.9 data-var=@tooltip-opacity> </div> <div class=col-xs-4> <label for=input-@tooltip-arrow-width>@tooltip-arrow-width</label> <input class=form-control id=input-@tooltip-arrow-width aria-describedby=help-block-@tooltip-arrow-width value=5px data-var=@tooltip-arrow-width> <p class=help-block id=help-block-@tooltip-arrow-width>Tooltip arrow width</p> </div> <div class=col-xs-4> <label for=input-@tooltip-arrow-color>@tooltip-arrow-color</label> <input class=form-control id=input-@tooltip-arrow-color aria-describedby=help-block-@tooltip-arrow-color value=@tooltip-bg data-var=@tooltip-arrow-color> <p class=help-block id=help-block-@tooltip-arrow-color>Tooltip arrow color</p> </div> </div> <h2 id=popovers>Popovers</h2> <div class=row> <div class=col-xs-4> <label for=input-@popover-bg>@popover-bg</label> <input class=form-control id=input-@popover-bg aria-describedby=help-block-@popover-bg value=#fff data-var=@popover-bg> <p class=help-block id=help-block-@popover-bg>Popover body background color</p> </div> <div class=col-xs-4> <label for=input-@popover-max-width>@popover-max-width</label> <input class=form-control id=input-@popover-max-width aria-describedby=help-block-@popover-max-width value=276px data-var=@popover-max-width> <p class=help-block id=help-block-@popover-max-width>Popover maximum width</p> </div> <div class=col-xs-4> <label for=input-@popover-border-color>@popover-border-color</label> <input class=form-control id=input-@popover-border-color aria-describedby=help-block-@popover-border-color value=rgba(0,0,0,.2) data-var=@popover-border-color> <p class=help-block id=help-block-@popover-border-color>Popover border color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@popover-fallback-border-color>@popover-fallback-border-color</label> <input class=form-control id=input-@popover-fallback-border-color aria-describedby=help-block-@popover-fallback-border-color value=#ccc data-var=@popover-fallback-border-color> <p class=help-block id=help-block-@popover-fallback-border-color>Popover fallback border color</p> </div> <div class=col-xs-4> <label for=input-@popover-title-bg>@popover-title-bg</label> <input class=form-control id=input-@popover-title-bg aria-describedby=help-block-@popover-title-bg value="darken(@popover-bg, 3%)" data-var=@popover-title-bg> <p class=help-block id=help-block-@popover-title-bg>Popover title background color</p> </div> <div class=col-xs-4> <label for=input-@popover-arrow-width>@popover-arrow-width</label> <input class=form-control id=input-@popover-arrow-width aria-describedby=help-block-@popover-arrow-width value=10px data-var=@popover-arrow-width> <p class=help-block id=help-block-@popover-arrow-width>Popover arrow width</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@popover-arrow-color>@popover-arrow-color</label> <input class=form-control id=input-@popover-arrow-color aria-describedby=help-block-@popover-arrow-color value=@popover-bg data-var=@popover-arrow-color> <p class=help-block id=help-block-@popover-arrow-color>Popover arrow color</p> </div> <div class=col-xs-4> <label for=input-@popover-arrow-outer-width>@popover-arrow-outer-width</label> <input class=form-control id=input-@popover-arrow-outer-width aria-describedby=help-block-@popover-arrow-outer-width value="(@popover-arrow-width + 1)" data-var=@popover-arrow-outer-width> <p class=help-block id=help-block-@popover-arrow-outer-width>Popover outer arrow width</p> </div> <div class=col-xs-4> <label for=input-@popover-arrow-outer-color>@popover-arrow-outer-color</label> <input class=form-control id=input-@popover-arrow-outer-color aria-describedby=help-block-@popover-arrow-outer-color value="fadein(@popover-border-color, 5%)" data-var=@popover-arrow-outer-color> <p class=help-block id=help-block-@popover-arrow-outer-color>Popover outer arrow color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@popover-arrow-outer-fallback-color>@popover-arrow-outer-fallback-color</label> <input class=form-control id=input-@popover-arrow-outer-fallback-color aria-describedby=help-block-@popover-arrow-outer-fallback-color value="darken(@popover-fallback-border-color, 20%)" data-var=@popover-arrow-outer-fallback-color> <p class=help-block id=help-block-@popover-arrow-outer-fallback-color>Popover outer arrow fallback color</p> </div> </div> <h2 id=labels>Labels</h2> <div class=row> <div class=col-xs-4> <label for=input-@label-default-bg>@label-default-bg</label> <input class=form-control id=input-@label-default-bg aria-describedby=help-block-@label-default-bg value=@gray-light data-var=@label-default-bg> <p class=help-block id=help-block-@label-default-bg>Default label background color</p> </div> <div class=col-xs-4> <label for=input-@label-primary-bg>@label-primary-bg</label> <input class=form-control id=input-@label-primary-bg aria-describedby=help-block-@label-primary-bg value=@brand-primary data-var=@label-primary-bg> <p class=help-block id=help-block-@label-primary-bg>Primary label background color</p> </div> <div class=col-xs-4> <label for=input-@label-success-bg>@label-success-bg</label> <input class=form-control id=input-@label-success-bg aria-describedby=help-block-@label-success-bg value=@brand-success data-var=@label-success-bg> <p class=help-block id=help-block-@label-success-bg>Success label background color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@label-info-bg>@label-info-bg</label> <input class=form-control id=input-@label-info-bg aria-describedby=help-block-@label-info-bg value=@brand-info data-var=@label-info-bg> <p class=help-block id=help-block-@label-info-bg>Info label background color</p> </div> <div class=col-xs-4> <label for=input-@label-warning-bg>@label-warning-bg</label> <input class=form-control id=input-@label-warning-bg aria-describedby=help-block-@label-warning-bg value=@brand-warning data-var=@label-warning-bg> <p class=help-block id=help-block-@label-warning-bg>Warning label background color</p> </div> <div class=col-xs-4> <label for=input-@label-danger-bg>@label-danger-bg</label> <input class=form-control id=input-@label-danger-bg aria-describedby=help-block-@label-danger-bg value=@brand-danger data-var=@label-danger-bg> <p class=help-block id=help-block-@label-danger-bg>Danger label background color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@label-color>@label-color</label> <input class=form-control id=input-@label-color aria-describedby=help-block-@label-color value=#fff data-var=@label-color> <p class=help-block id=help-block-@label-color>Default label text color</p> </div> <div class=col-xs-4> <label for=input-@label-link-hover-color>@label-link-hover-color</label> <input class=form-control id=input-@label-link-hover-color aria-describedby=help-block-@label-link-hover-color value=#fff data-var=@label-link-hover-color> <p class=help-block id=help-block-@label-link-hover-color>Default text color of a linked label</p> </div> </div> <h2 id=modals>Modals</h2> <div class=row> <div class=col-xs-4> <label for=input-@modal-inner-padding>@modal-inner-padding</label> <input class=form-control id=input-@modal-inner-padding aria-describedby=help-block-@modal-inner-padding value=15px data-var=@modal-inner-padding> <p class=help-block id=help-block-@modal-inner-padding>Padding applied to the modal body</p> </div> <div class=col-xs-4> <label for=input-@modal-title-padding>@modal-title-padding</label> <input class=form-control id=input-@modal-title-padding aria-describedby=help-block-@modal-title-padding value=15px data-var=@modal-title-padding> <p class=help-block id=help-block-@modal-title-padding>Padding applied to the modal title</p> </div> <div class=col-xs-4> <label for=input-@modal-title-line-height>@modal-title-line-height</label> <input class=form-control id=input-@modal-title-line-height aria-describedby=help-block-@modal-title-line-height value=@line-height-base data-var=@modal-title-line-height> <p class=help-block id=help-block-@modal-title-line-height>Modal title line-height</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@modal-content-bg>@modal-content-bg</label> <input class=form-control id=input-@modal-content-bg aria-describedby=help-block-@modal-content-bg value=#fff data-var=@modal-content-bg> <p class=help-block id=help-block-@modal-content-bg>Background color of modal content area</p> </div> <div class=col-xs-4> <label for=input-@modal-content-border-color>@modal-content-border-color</label> <input class=form-control id=input-@modal-content-border-color aria-describedby=help-block-@modal-content-border-color value=rgba(0,0,0,.2) data-var=@modal-content-border-color> <p class=help-block id=help-block-@modal-content-border-color>Modal content border color</p> </div> <div class=col-xs-4> <label for=input-@modal-content-fallback-border-color>@modal-content-fallback-border-color</label> <input class=form-control id=input-@modal-content-fallback-border-color aria-describedby=help-block-@modal-content-fallback-border-color value=#999 data-var=@modal-content-fallback-border-color> <p class=help-block id=help-block-@modal-content-fallback-border-color>Modal content border color <strong>for IE8</strong></p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@modal-backdrop-bg>@modal-backdrop-bg</label> <input class=form-control id=input-@modal-backdrop-bg aria-describedby=help-block-@modal-backdrop-bg value=#000 data-var=@modal-backdrop-bg> <p class=help-block id=help-block-@modal-backdrop-bg>Modal backdrop background color</p> </div> <div class=col-xs-4> <label for=input-@modal-backdrop-opacity>@modal-backdrop-opacity</label> <input class=form-control id=input-@modal-backdrop-opacity aria-describedby=help-block-@modal-backdrop-opacity value=.5 data-var=@modal-backdrop-opacity> <p class=help-block id=help-block-@modal-backdrop-opacity>Modal backdrop opacity</p> </div> <div class=col-xs-4> <label for=input-@modal-header-border-color>@modal-header-border-color</label> <input class=form-control id=input-@modal-header-border-color aria-describedby=help-block-@modal-header-border-color value=#e5e5e5 data-var=@modal-header-border-color> <p class=help-block id=help-block-@modal-header-border-color>Modal header border color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@modal-footer-border-color>@modal-footer-border-color</label> <input class=form-control id=input-@modal-footer-border-color aria-describedby=help-block-@modal-footer-border-color value=@modal-header-border-color data-var=@modal-footer-border-color> <p class=help-block id=help-block-@modal-footer-border-color>Modal footer border color</p> </div> <div class=col-xs-4> <label for=input-@modal-lg>@modal-lg</label> <input class=form-control id=input-@modal-lg value=900px data-var=@modal-lg> </div> <div class=col-xs-4> <label for=input-@modal-md>@modal-md</label> <input class=form-control id=input-@modal-md value=600px data-var=@modal-md> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@modal-sm>@modal-sm</label> <input class=form-control id=input-@modal-sm value=300px data-var=@modal-sm> </div> </div> <h2 id=alerts>Alerts</h2> <p>Define alert colors, border radius, and padding.</p> <div class=row> <div class=col-xs-4> <label for=input-@alert-padding>@alert-padding</label> <input class=form-control id=input-@alert-padding value=15px data-var=@alert-padding> </div> <div class=col-xs-4> <label for=input-@alert-border-radius>@alert-border-radius</label> <input class=form-control id=input-@alert-border-radius value=@border-radius-base data-var=@alert-border-radius> </div> <div class=col-xs-4> <label for=input-@alert-link-font-weight>@alert-link-font-weight</label> <input class=form-control id=input-@alert-link-font-weight value=bold data-var=@alert-link-font-weight> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@alert-success-bg>@alert-success-bg</label> <input class=form-control id=input-@alert-success-bg value=@state-success-bg data-var=@alert-success-bg> </div> <div class=col-xs-4> <label for=input-@alert-success-text>@alert-success-text</label> <input class=form-control id=input-@alert-success-text value=@state-success-text data-var=@alert-success-text> </div> <div class=col-xs-4> <label for=input-@alert-success-border>@alert-success-border</label> <input class=form-control id=input-@alert-success-border value=@state-success-border data-var=@alert-success-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@alert-info-bg>@alert-info-bg</label> <input class=form-control id=input-@alert-info-bg value=@state-info-bg data-var=@alert-info-bg> </div> <div class=col-xs-4> <label for=input-@alert-info-text>@alert-info-text</label> <input class=form-control id=input-@alert-info-text value=@state-info-text data-var=@alert-info-text> </div> <div class=col-xs-4> <label for=input-@alert-info-border>@alert-info-border</label> <input class=form-control id=input-@alert-info-border value=@state-info-border data-var=@alert-info-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@alert-warning-bg>@alert-warning-bg</label> <input class=form-control id=input-@alert-warning-bg value=@state-warning-bg data-var=@alert-warning-bg> </div> <div class=col-xs-4> <label for=input-@alert-warning-text>@alert-warning-text</label> <input class=form-control id=input-@alert-warning-text value=@state-warning-text data-var=@alert-warning-text> </div> <div class=col-xs-4> <label for=input-@alert-warning-border>@alert-warning-border</label> <input class=form-control id=input-@alert-warning-border value=@state-warning-border data-var=@alert-warning-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@alert-danger-bg>@alert-danger-bg</label> <input class=form-control id=input-@alert-danger-bg value=@state-danger-bg data-var=@alert-danger-bg> </div> <div class=col-xs-4> <label for=input-@alert-danger-text>@alert-danger-text</label> <input class=form-control id=input-@alert-danger-text value=@state-danger-text data-var=@alert-danger-text> </div> <div class=col-xs-4> <label for=input-@alert-danger-border>@alert-danger-border</label> <input class=form-control id=input-@alert-danger-border value=@state-danger-border data-var=@alert-danger-border> </div> </div> <h2 id=progress-bars>Progress bars</h2> <div class=row> <div class=col-xs-4> <label for=input-@progress-bg>@progress-bg</label> <input class=form-control id=input-@progress-bg aria-describedby=help-block-@progress-bg value=#f5f5f5 data-var=@progress-bg> <p class=help-block id=help-block-@progress-bg>Background color of the whole progress component</p> </div> <div class=col-xs-4> <label for=input-@progress-bar-color>@progress-bar-color</label> <input class=form-control id=input-@progress-bar-color aria-describedby=help-block-@progress-bar-color value=#fff data-var=@progress-bar-color> <p class=help-block id=help-block-@progress-bar-color>Progress bar text color</p> </div> <div class=col-xs-4> <label for=input-@progress-border-radius>@progress-border-radius</label> <input class=form-control id=input-@progress-border-radius aria-describedby=help-block-@progress-border-radius value=@border-radius-base data-var=@progress-border-radius> <p class=help-block id=help-block-@progress-border-radius>Variable for setting rounded corners on progress bar.</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@progress-bar-bg>@progress-bar-bg</label> <input class=form-control id=input-@progress-bar-bg aria-describedby=help-block-@progress-bar-bg value=@brand-primary data-var=@progress-bar-bg> <p class=help-block id=help-block-@progress-bar-bg>Default progress bar color</p> </div> <div class=col-xs-4> <label for=input-@progress-bar-success-bg>@progress-bar-success-bg</label> <input class=form-control id=input-@progress-bar-success-bg aria-describedby=help-block-@progress-bar-success-bg value=@brand-success data-var=@progress-bar-success-bg> <p class=help-block id=help-block-@progress-bar-success-bg>Success progress bar color</p> </div> <div class=col-xs-4> <label for=input-@progress-bar-warning-bg>@progress-bar-warning-bg</label> <input class=form-control id=input-@progress-bar-warning-bg aria-describedby=help-block-@progress-bar-warning-bg value=@brand-warning data-var=@progress-bar-warning-bg> <p class=help-block id=help-block-@progress-bar-warning-bg>Warning progress bar color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@progress-bar-danger-bg>@progress-bar-danger-bg</label> <input class=form-control id=input-@progress-bar-danger-bg aria-describedby=help-block-@progress-bar-danger-bg value=@brand-danger data-var=@progress-bar-danger-bg> <p class=help-block id=help-block-@progress-bar-danger-bg>Danger progress bar color</p> </div> <div class=col-xs-4> <label for=input-@progress-bar-info-bg>@progress-bar-info-bg</label> <input class=form-control id=input-@progress-bar-info-bg aria-describedby=help-block-@progress-bar-info-bg value=@brand-info data-var=@progress-bar-info-bg> <p class=help-block id=help-block-@progress-bar-info-bg>Info progress bar color</p> </div> </div> <h2 id=list-group>List group</h2> <div class=row> <div class=col-xs-4> <label for=input-@list-group-bg>@list-group-bg</label> <input class=form-control id=input-@list-group-bg aria-describedby=help-block-@list-group-bg value=#fff data-var=@list-group-bg> <p class=help-block id=help-block-@list-group-bg>Background color on <code>.list-group-item</code></p> </div> <div class=col-xs-4> <label for=input-@list-group-border>@list-group-border</label> <input class=form-control id=input-@list-group-border aria-describedby=help-block-@list-group-border value=#ddd data-var=@list-group-border> <p class=help-block id=help-block-@list-group-border><code>.list-group-item</code> border color</p> </div> <div class=col-xs-4> <label for=input-@list-group-border-radius>@list-group-border-radius</label> <input class=form-control id=input-@list-group-border-radius aria-describedby=help-block-@list-group-border-radius value=@border-radius-base data-var=@list-group-border-radius> <p class=help-block id=help-block-@list-group-border-radius>List group border radius</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@list-group-hover-bg>@list-group-hover-bg</label> <input class=form-control id=input-@list-group-hover-bg aria-describedby=help-block-@list-group-hover-bg value=#f5f5f5 data-var=@list-group-hover-bg> <p class=help-block id=help-block-@list-group-hover-bg>Background color of single list items on hover</p> </div> <div class=col-xs-4> <label for=input-@list-group-active-color>@list-group-active-color</label> <input class=form-control id=input-@list-group-active-color aria-describedby=help-block-@list-group-active-color value=@component-active-color data-var=@list-group-active-color> <p class=help-block id=help-block-@list-group-active-color>Text color of active list items</p> </div> <div class=col-xs-4> <label for=input-@list-group-active-bg>@list-group-active-bg</label> <input class=form-control id=input-@list-group-active-bg aria-describedby=help-block-@list-group-active-bg value=@component-active-bg data-var=@list-group-active-bg> <p class=help-block id=help-block-@list-group-active-bg>Background color of active list items</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@list-group-active-border>@list-group-active-border</label> <input class=form-control id=input-@list-group-active-border aria-describedby=help-block-@list-group-active-border value=@list-group-active-bg data-var=@list-group-active-border> <p class=help-block id=help-block-@list-group-active-border>Border color of active list elements</p> </div> <div class=col-xs-4> <label for=input-@list-group-active-text-color>@list-group-active-text-color</label> <input class=form-control id=input-@list-group-active-text-color aria-describedby=help-block-@list-group-active-text-color value="lighten(@list-group-active-bg, 40%)" data-var=@list-group-active-text-color> <p class=help-block id=help-block-@list-group-active-text-color>Text color for content within active list items</p> </div> <div class=col-xs-4> <label for=input-@list-group-disabled-color>@list-group-disabled-color</label> <input class=form-control id=input-@list-group-disabled-color aria-describedby=help-block-@list-group-disabled-color value=@gray-light data-var=@list-group-disabled-color> <p class=help-block id=help-block-@list-group-disabled-color>Text color of disabled list items</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@list-group-disabled-bg>@list-group-disabled-bg</label> <input class=form-control id=input-@list-group-disabled-bg aria-describedby=help-block-@list-group-disabled-bg value=@gray-lighter data-var=@list-group-disabled-bg> <p class=help-block id=help-block-@list-group-disabled-bg>Background color of disabled list items</p> </div> <div class=col-xs-4> <label for=input-@list-group-disabled-text-color>@list-group-disabled-text-color</label> <input class=form-control id=input-@list-group-disabled-text-color aria-describedby=help-block-@list-group-disabled-text-color value=@list-group-disabled-color data-var=@list-group-disabled-text-color> <p class=help-block id=help-block-@list-group-disabled-text-color>Text color for content within disabled list items</p> </div> <div class=col-xs-4> <label for=input-@list-group-link-color>@list-group-link-color</label> <input class=form-control id=input-@list-group-link-color value=#555 data-var=@list-group-link-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@list-group-link-hover-color>@list-group-link-hover-color</label> <input class=form-control id=input-@list-group-link-hover-color value=@list-group-link-color data-var=@list-group-link-hover-color> </div> <div class=col-xs-4> <label for=input-@list-group-link-heading-color>@list-group-link-heading-color</label> <input class=form-control id=input-@list-group-link-heading-color value=#333 data-var=@list-group-link-heading-color> </div> </div> <h2 id=panels>Panels</h2> <div class=row> <div class=col-xs-4> <label for=input-@panel-bg>@panel-bg</label> <input class=form-control id=input-@panel-bg value=#fff data-var=@panel-bg> </div> <div class=col-xs-4> <label for=input-@panel-body-padding>@panel-body-padding</label> <input class=form-control id=input-@panel-body-padding value=15px data-var=@panel-body-padding> </div> <div class=col-xs-4> <label for=input-@panel-heading-padding>@panel-heading-padding</label> <input class=form-control id=input-@panel-heading-padding value="10px 15px" data-var=@panel-heading-padding> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-footer-padding>@panel-footer-padding</label> <input class=form-control id=input-@panel-footer-padding value=@panel-heading-padding data-var=@panel-footer-padding> </div> <div class=col-xs-4> <label for=input-@panel-border-radius>@panel-border-radius</label> <input class=form-control id=input-@panel-border-radius value=@border-radius-base data-var=@panel-border-radius> </div> <div class=col-xs-4> <label for=input-@panel-inner-border>@panel-inner-border</label> <input class=form-control id=input-@panel-inner-border aria-describedby=help-block-@panel-inner-border value=#ddd data-var=@panel-inner-border> <p class=help-block id=help-block-@panel-inner-border>Border color for elements within panels</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-footer-bg>@panel-footer-bg</label> <input class=form-control id=input-@panel-footer-bg value=#f5f5f5 data-var=@panel-footer-bg> </div> <div class=col-xs-4> <label for=input-@panel-default-text>@panel-default-text</label> <input class=form-control id=input-@panel-default-text value=@gray-dark data-var=@panel-default-text> </div> <div class=col-xs-4> <label for=input-@panel-default-border>@panel-default-border</label> <input class=form-control id=input-@panel-default-border value=#ddd data-var=@panel-default-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-default-heading-bg>@panel-default-heading-bg</label> <input class=form-control id=input-@panel-default-heading-bg value=#f5f5f5 data-var=@panel-default-heading-bg> </div> <div class=col-xs-4> <label for=input-@panel-primary-text>@panel-primary-text</label> <input class=form-control id=input-@panel-primary-text value=#fff data-var=@panel-primary-text> </div> <div class=col-xs-4> <label for=input-@panel-primary-border>@panel-primary-border</label> <input class=form-control id=input-@panel-primary-border value=@brand-primary data-var=@panel-primary-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-primary-heading-bg>@panel-primary-heading-bg</label> <input class=form-control id=input-@panel-primary-heading-bg value=@brand-primary data-var=@panel-primary-heading-bg> </div> <div class=col-xs-4> <label for=input-@panel-success-text>@panel-success-text</label> <input class=form-control id=input-@panel-success-text value=@state-success-text data-var=@panel-success-text> </div> <div class=col-xs-4> <label for=input-@panel-success-border>@panel-success-border</label> <input class=form-control id=input-@panel-success-border value=@state-success-border data-var=@panel-success-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-success-heading-bg>@panel-success-heading-bg</label> <input class=form-control id=input-@panel-success-heading-bg value=@state-success-bg data-var=@panel-success-heading-bg> </div> <div class=col-xs-4> <label for=input-@panel-info-text>@panel-info-text</label> <input class=form-control id=input-@panel-info-text value=@state-info-text data-var=@panel-info-text> </div> <div class=col-xs-4> <label for=input-@panel-info-border>@panel-info-border</label> <input class=form-control id=input-@panel-info-border value=@state-info-border data-var=@panel-info-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-info-heading-bg>@panel-info-heading-bg</label> <input class=form-control id=input-@panel-info-heading-bg value=@state-info-bg data-var=@panel-info-heading-bg> </div> <div class=col-xs-4> <label for=input-@panel-warning-text>@panel-warning-text</label> <input class=form-control id=input-@panel-warning-text value=@state-warning-text data-var=@panel-warning-text> </div> <div class=col-xs-4> <label for=input-@panel-warning-border>@panel-warning-border</label> <input class=form-control id=input-@panel-warning-border value=@state-warning-border data-var=@panel-warning-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-warning-heading-bg>@panel-warning-heading-bg</label> <input class=form-control id=input-@panel-warning-heading-bg value=@state-warning-bg data-var=@panel-warning-heading-bg> </div> <div class=col-xs-4> <label for=input-@panel-danger-text>@panel-danger-text</label> <input class=form-control id=input-@panel-danger-text value=@state-danger-text data-var=@panel-danger-text> </div> <div class=col-xs-4> <label for=input-@panel-danger-border>@panel-danger-border</label> <input class=form-control id=input-@panel-danger-border value=@state-danger-border data-var=@panel-danger-border> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@panel-danger-heading-bg>@panel-danger-heading-bg</label> <input class=form-control id=input-@panel-danger-heading-bg value=@state-danger-bg data-var=@panel-danger-heading-bg> </div> </div> <h2 id=thumbnails>Thumbnails</h2> <div class=row> <div class=col-xs-4> <label for=input-@thumbnail-padding>@thumbnail-padding</label> <input class=form-control id=input-@thumbnail-padding aria-describedby=help-block-@thumbnail-padding value=4px data-var=@thumbnail-padding> <p class=help-block id=help-block-@thumbnail-padding>Padding around the thumbnail image</p> </div> <div class=col-xs-4> <label for=input-@thumbnail-bg>@thumbnail-bg</label> <input class=form-control id=input-@thumbnail-bg aria-describedby=help-block-@thumbnail-bg value=@body-bg data-var=@thumbnail-bg> <p class=help-block id=help-block-@thumbnail-bg>Thumbnail background color</p> </div> <div class=col-xs-4> <label for=input-@thumbnail-border>@thumbnail-border</label> <input class=form-control id=input-@thumbnail-border aria-describedby=help-block-@thumbnail-border value=#ddd data-var=@thumbnail-border> <p class=help-block id=help-block-@thumbnail-border>Thumbnail border color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@thumbnail-border-radius>@thumbnail-border-radius</label> <input class=form-control id=input-@thumbnail-border-radius aria-describedby=help-block-@thumbnail-border-radius value=@border-radius-base data-var=@thumbnail-border-radius> <p class=help-block id=help-block-@thumbnail-border-radius>Thumbnail border radius</p> </div> <div class=col-xs-4> <label for=input-@thumbnail-caption-color>@thumbnail-caption-color</label> <input class=form-control id=input-@thumbnail-caption-color aria-describedby=help-block-@thumbnail-caption-color value=@text-color data-var=@thumbnail-caption-color> <p class=help-block id=help-block-@thumbnail-caption-color>Custom text color for thumbnail captions</p> </div> <div class=col-xs-4> <label for=input-@thumbnail-caption-padding>@thumbnail-caption-padding</label> <input class=form-control id=input-@thumbnail-caption-padding aria-describedby=help-block-@thumbnail-caption-padding value=9px data-var=@thumbnail-caption-padding> <p class=help-block id=help-block-@thumbnail-caption-padding>Padding around the thumbnail caption</p> </div> </div> <h2 id=wells>Wells</h2> <div class=row> <div class=col-xs-4> <label for=input-@well-bg>@well-bg</label> <input class=form-control id=input-@well-bg value=#f5f5f5 data-var=@well-bg> </div> <div class=col-xs-4> <label for=input-@well-border>@well-border</label> <input class=form-control id=input-@well-border value="darken(@well-bg, 7%)" data-var=@well-border> </div> </div> <h2 id=badges>Badges</h2> <div class=row> <div class=col-xs-4> <label for=input-@badge-color>@badge-color</label> <input class=form-control id=input-@badge-color value=#fff data-var=@badge-color> </div> <div class=col-xs-4> <label for=input-@badge-link-hover-color>@badge-link-hover-color</label> <input class=form-control id=input-@badge-link-hover-color aria-describedby=help-block-@badge-link-hover-color value=#fff data-var=@badge-link-hover-color> <p class=help-block id=help-block-@badge-link-hover-color>Linked badge text color on hover</p> </div> <div class=col-xs-4> <label for=input-@badge-bg>@badge-bg</label> <input class=form-control id=input-@badge-bg value=@gray-light data-var=@badge-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@badge-active-color>@badge-active-color</label> <input class=form-control id=input-@badge-active-color aria-describedby=help-block-@badge-active-color value=@link-color data-var=@badge-active-color> <p class=help-block id=help-block-@badge-active-color>Badge text color in active nav link</p> </div> <div class=col-xs-4> <label for=input-@badge-active-bg>@badge-active-bg</label> <input class=form-control id=input-@badge-active-bg aria-describedby=help-block-@badge-active-bg value=#fff data-var=@badge-active-bg> <p class=help-block id=help-block-@badge-active-bg>Badge background color in active nav link</p> </div> <div class=col-xs-4> <label for=input-@badge-font-weight>@badge-font-weight</label> <input class=form-control id=input-@badge-font-weight value=bold data-var=@badge-font-weight> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@badge-line-height>@badge-line-height</label> <input class=form-control id=input-@badge-line-height value=1 data-var=@badge-line-height> </div> <div class=col-xs-4> <label for=input-@badge-border-radius>@badge-border-radius</label> <input class=form-control id=input-@badge-border-radius value=10px data-var=@badge-border-radius> </div> </div> <h2 id=breadcrumbs>Breadcrumbs</h2> <div class=row> <div class=col-xs-4> <label for=input-@breadcrumb-padding-vertical>@breadcrumb-padding-vertical</label> <input class=form-control id=input-@breadcrumb-padding-vertical value=8px data-var=@breadcrumb-padding-vertical> </div> <div class=col-xs-4> <label for=input-@breadcrumb-padding-horizontal>@breadcrumb-padding-horizontal</label> <input class=form-control id=input-@breadcrumb-padding-horizontal value=15px data-var=@breadcrumb-padding-horizontal> </div> <div class=col-xs-4> <label for=input-@breadcrumb-bg>@breadcrumb-bg</label> <input class=form-control id=input-@breadcrumb-bg aria-describedby=help-block-@breadcrumb-bg value=#f5f5f5 data-var=@breadcrumb-bg> <p class=help-block id=help-block-@breadcrumb-bg>Breadcrumb background color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@breadcrumb-color>@breadcrumb-color</label> <input class=form-control id=input-@breadcrumb-color aria-describedby=help-block-@breadcrumb-color value=#ccc data-var=@breadcrumb-color> <p class=help-block id=help-block-@breadcrumb-color>Breadcrumb text color</p> </div> <div class=col-xs-4> <label for=input-@breadcrumb-active-color>@breadcrumb-active-color</label> <input class=form-control id=input-@breadcrumb-active-color aria-describedby=help-block-@breadcrumb-active-color value=@gray-light data-var=@breadcrumb-active-color> <p class=help-block id=help-block-@breadcrumb-active-color>Text color of current page in the breadcrumb</p> </div> <div class=col-xs-4> <label for=input-@breadcrumb-separator>@breadcrumb-separator</label> <input class=form-control id=input-@breadcrumb-separator aria-describedby=help-block-@breadcrumb-separator value=&quot;/&quot; data-var=@breadcrumb-separator> <p class=help-block id=help-block-@breadcrumb-separator>Textual separator for between breadcrumb elements</p> </div> </div> <h2 id=carousel>Carousel</h2> <div class=row> <div class=col-xs-4> <label for=input-@carousel-text-shadow>@carousel-text-shadow</label> <input class=form-control id=input-@carousel-text-shadow value="0 1px 2px rgba(0,0,0,.6)" data-var=@carousel-text-shadow> </div> <div class=col-xs-4> <label for=input-@carousel-control-color>@carousel-control-color</label> <input class=form-control id=input-@carousel-control-color value=#fff data-var=@carousel-control-color> </div> <div class=col-xs-4> <label for=input-@carousel-control-width>@carousel-control-width</label> <input class=form-control id=input-@carousel-control-width value=15% data-var=@carousel-control-width> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@carousel-control-opacity>@carousel-control-opacity</label> <input class=form-control id=input-@carousel-control-opacity value=.5 data-var=@carousel-control-opacity> </div> <div class=col-xs-4> <label for=input-@carousel-control-font-size>@carousel-control-font-size</label> <input class=form-control id=input-@carousel-control-font-size value=20px data-var=@carousel-control-font-size> </div> <div class=col-xs-4> <label for=input-@carousel-indicator-active-bg>@carousel-indicator-active-bg</label> <input class=form-control id=input-@carousel-indicator-active-bg value=#fff data-var=@carousel-indicator-active-bg> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@carousel-indicator-border-color>@carousel-indicator-border-color</label> <input class=form-control id=input-@carousel-indicator-border-color value=#fff data-var=@carousel-indicator-border-color> </div> <div class=col-xs-4> <label for=input-@carousel-caption-color>@carousel-caption-color</label> <input class=form-control id=input-@carousel-caption-color value=#fff data-var=@carousel-caption-color> </div> </div> <h2 id=close>Close</h2> <div class=row> <div class=col-xs-4> <label for=input-@close-font-weight>@close-font-weight</label> <input class=form-control id=input-@close-font-weight value=bold data-var=@close-font-weight> </div> <div class=col-xs-4> <label for=input-@close-color>@close-color</label> <input class=form-control id=input-@close-color value=#000 data-var=@close-color> </div> <div class=col-xs-4> <label for=input-@close-text-shadow>@close-text-shadow</label> <input class=form-control id=input-@close-text-shadow value="0 1px 0 #fff" data-var=@close-text-shadow> </div> </div> <h2 id=code>Code</h2> <div class=row> <div class=col-xs-4> <label for=input-@code-color>@code-color</label> <input class=form-control id=input-@code-color value=#c7254e data-var=@code-color> </div> <div class=col-xs-4> <label for=input-@code-bg>@code-bg</label> <input class=form-control id=input-@code-bg value=#f9f2f4 data-var=@code-bg> </div> <div class=col-xs-4> <label for=input-@kbd-color>@kbd-color</label> <input class=form-control id=input-@kbd-color value=#fff data-var=@kbd-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@kbd-bg>@kbd-bg</label> <input class=form-control id=input-@kbd-bg value=#333 data-var=@kbd-bg> </div> <div class=col-xs-4> <label for=input-@pre-bg>@pre-bg</label> <input class=form-control id=input-@pre-bg value=#f5f5f5 data-var=@pre-bg> </div> <div class=col-xs-4> <label for=input-@pre-color>@pre-color</label> <input class=form-control id=input-@pre-color value=@gray-dark data-var=@pre-color> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@pre-border-color>@pre-border-color</label> <input class=form-control id=input-@pre-border-color value=#ccc data-var=@pre-border-color> </div> <div class=col-xs-4> <label for=input-@pre-scrollable-max-height>@pre-scrollable-max-height</label> <input class=form-control id=input-@pre-scrollable-max-height value=340px data-var=@pre-scrollable-max-height> </div> </div> <h2 id=type>Type</h2> <div class=row> <div class=col-xs-4> <label for=input-@component-offset-horizontal>@component-offset-horizontal</label> <input class=form-control id=input-@component-offset-horizontal aria-describedby=help-block-@component-offset-horizontal value=180px data-var=@component-offset-horizontal> <p class=help-block id=help-block-@component-offset-horizontal>Horizontal offset for forms and lists.</p> </div> <div class=col-xs-4> <label for=input-@text-muted>@text-muted</label> <input class=form-control id=input-@text-muted aria-describedby=help-block-@text-muted value=@gray-light data-var=@text-muted> <p class=help-block id=help-block-@text-muted>Text muted color</p> </div> <div class=col-xs-4> <label for=input-@abbr-border-color>@abbr-border-color</label> <input class=form-control id=input-@abbr-border-color aria-describedby=help-block-@abbr-border-color value=@gray-light data-var=@abbr-border-color> <p class=help-block id=help-block-@abbr-border-color>Abbreviations and acronyms border color</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@headings-small-color>@headings-small-color</label> <input class=form-control id=input-@headings-small-color aria-describedby=help-block-@headings-small-color value=@gray-light data-var=@headings-small-color> <p class=help-block id=help-block-@headings-small-color>Headings small color</p> </div> <div class=col-xs-4> <label for=input-@blockquote-small-color>@blockquote-small-color</label> <input class=form-control id=input-@blockquote-small-color aria-describedby=help-block-@blockquote-small-color value=@gray-light data-var=@blockquote-small-color> <p class=help-block id=help-block-@blockquote-small-color>Blockquote small color</p> </div> <div class=col-xs-4> <label for=input-@blockquote-font-size>@blockquote-font-size</label> <input class=form-control id=input-@blockquote-font-size aria-describedby=help-block-@blockquote-font-size value="(@font-size-base * 1.25)" data-var=@blockquote-font-size> <p class=help-block id=help-block-@blockquote-font-size>Blockquote font size</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@blockquote-border-color>@blockquote-border-color</label> <input class=form-control id=input-@blockquote-border-color aria-describedby=help-block-@blockquote-border-color value=@gray-lighter data-var=@blockquote-border-color> <p class=help-block id=help-block-@blockquote-border-color>Blockquote border color</p> </div> <div class=col-xs-4> <label for=input-@page-header-border-color>@page-header-border-color</label> <input class=form-control id=input-@page-header-border-color aria-describedby=help-block-@page-header-border-color value=@gray-lighter data-var=@page-header-border-color> <p class=help-block id=help-block-@page-header-border-color>Page header border color</p> </div> <div class=col-xs-4> <label for=input-@dl-horizontal-offset>@dl-horizontal-offset</label> <input class=form-control id=input-@dl-horizontal-offset aria-describedby=help-block-@dl-horizontal-offset value=@component-offset-horizontal data-var=@dl-horizontal-offset> <p class=help-block id=help-block-@dl-horizontal-offset>Width of horizontal description list titles</p> </div> <div class=clearfix></div> <div class=col-xs-4> <label for=input-@dl-horizontal-breakpoint>@dl-horizontal-breakpoint</label> <input class=form-control id=input-@dl-horizontal-breakpoint aria-describedby=help-block-@dl-horizontal-breakpoint value=@grid-float-breakpoint data-var=@dl-horizontal-breakpoint> <p class=help-block id=help-block-@dl-horizontal-breakpoint>Point at which .dl-horizontal becomes horizontal</p> </div> <div class=col-xs-4> <label for=input-@hr-border>@hr-border</label> <input class=form-control id=input-@hr-border aria-describedby=help-block-@hr-border value=@gray-lighter data-var=@hr-border> <p class=help-block id=help-block-@hr-border>Horizontal line color.</p> </div> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=download>Download</h1> <p class=lead>Hooray! Your custom version of Bootstrap is now ready to be compiled. Just click the button below to finish the process.</p> <div class=bs-customize-download> <button type=submit id=btn-compile disabled class="btn btn-block btn-lg btn-outline" onclick='ga("send","event","Customize","Download","Customize and Download")'>Compile and Download</button> </div> </div> </form> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li><a href=#import-drop-target>Import</a></li> <li><a href=#less>Less components</a></li> <li><a href=#plugins>jQuery plugins</a></li> <li><a href=#less-variables>Less variables</a> <ul class=nav> <li><a href=#colors>Colors</a></li> <li><a href=#scaffolding>Scaffolding</a></li> <li><a href=#typography>Typography</a></li> <li><a href=#iconography>Iconography</a></li> <li><a href=#components>Components</a></li> <li><a href=#tables>Tables</a></li> <li><a href=#buttons>Buttons</a></li> <li><a href=#forms>Forms</a></li> <li><a href=#dropdowns>Dropdowns</a></li> <li><a href=#media-queries-breakpoints>Media queries breakpoints</a></li> <li><a href=#grid-system>Grid system</a></li> <li><a href=#container-sizes>Container sizes</a></li> <li><a href=#navbar>Navbar</a></li> <li><a href=#navs>Navs</a></li> <li><a href=#tabs>Tabs</a></li> <li><a href=#pills>Pills</a></li> <li><a href=#pagination>Pagination</a></li> <li><a href=#pager>Pager</a></li> <li><a href=#jumbotron>Jumbotron</a></li> <li><a href=#form-states-and-alerts>Form states and alerts</a></li> <li><a href=#tooltips>Tooltips</a></li> <li><a href=#popovers>Popovers</a></li> <li><a href=#labels>Labels</a></li> <li><a href=#modals>Modals</a></li> <li><a href=#alerts>Alerts</a></li> <li><a href=#progress-bars>Progress bars</a></li> <li><a href=#list-group>List group</a></li> <li><a href=#panels>Panels</a></li> <li><a href=#thumbnails>Thumbnails</a></li> <li><a href=#wells>Wells</a></li> <li><a href=#badges>Badges</a></li> <li><a href=#breadcrumbs>Breadcrumbs</a></li> <li><a href=#carousel>Carousel</a></li> <li><a href=#close>Close</a></li> <li><a href=#code>Code</a></li> <li><a href=#type>Type</a></li> </ul> </li> <li><a href=#download>Download</a></li> </ul> <a href=#top class=back-to-top> Back to top </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script>var __configBridge={autoprefixerBrowsers:["Android 2.3","Android >= 4","Chrome >= 20","Firefox >= 24","Explorer >= 8","iOS >= 6","Opera >= 12","Safari >= 6"],jqueryCheck:["if (typeof jQuery === 'undefined') {","  throw new Error('Bootstrap\\'s JavaScript requires jQuery')","}\n"],jqueryVersionCheck:["+function ($) {","  'use strict';","  var version = $.fn.jquery.split(' ')[0].split('.')","  if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) {","    throw new Error('Bootstrap\\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')","  }","}(jQuery);\n\n"]}</script> <script src=../assets/js/customize.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/customize/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/customize/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/customize/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/customize/"</script>
+</html>
index d9bf628459b5667630c858cfef6e0a13800d7416..6cbf01f39a9481953293226e6dd79303508d3737 100644 (file)
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> Getting started &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li class=active> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>Getting started</h1> <p>An overview of Bootstrap, how to download and use, basic templates and examples, and more.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <div class=bs-docs-section> <h1 class=page-header id=download>Download</h1> <p class=lead>Bootstrap (currently v3.3.7) has a few easy ways to quickly get started, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p> <div class="row bs-downloads"> <div class=col-sm-4> <h3 id=download-bootstrap>Bootstrap</h3> <p>Compiled and minified CSS, JavaScript, and fonts. No docs or original source files are included.</p> <p> <a href=https://github.com/twbs/bootstrap/releases/download/v3.3.7/bootstrap-3.3.7-dist.zip class="btn btn-lg btn-outline" onclick='ga("send","event","Getting started","Download","Download compiled")'>Download Bootstrap</a> </p> </div> <div class=col-sm-4> <h3 id=download-source>Source code</h3> <p>Source Less, JavaScript, and font files, along with our docs. <strong>Requires a Less compiler and <a href=#grunt>some setup.</a></strong></p> <p> <a href=https://github.com/twbs/bootstrap/archive/v3.3.7.zip class="btn btn-lg btn-outline" onclick='ga("send","event","Getting started","Download","Download source")'>Download source</a> </p> </div> <div class=col-sm-4> <h3 id=download-sass>Sass</h3> <p><a href=https://github.com/twbs/bootstrap-sass>Bootstrap ported from Less to Sass</a> for easy inclusion in Rails, Compass, or Sass-only projects.</p> <p> <a href=https://github.com/twbs/bootstrap-sass/archive/v3.3.7.tar.gz class="btn btn-lg btn-outline" onclick='ga("send","event","Getting started","Download","Download Sass")'>Download Sass</a> </p> </div> </div> <h2 id=download-cdn>Bootstrap CDN</h2> <p>The folks over at <a href=https://www.maxcdn.com/ >MaxCDN</a> graciously provide CDN support for Bootstrap's CSS and JavaScript. Just use these <a href=https://www.bootstrapcdn.com/ >Bootstrap CDN</a> links.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Latest compiled and minified CSS --&gt;</span>
-<span class=nt>&lt;link</span> <span class=na>rel=</span><span class=s>"stylesheet"</span> <span class=na>href=</span><span class=s>"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"</span> <span class=na>integrity=</span><span class=s>"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"</span> <span class=na>crossorigin=</span><span class=s>"anonymous"</span><span class=nt>&gt;</span>
-
-<span class=c>&lt;!-- Optional theme --&gt;</span>
-<span class=nt>&lt;link</span> <span class=na>rel=</span><span class=s>"stylesheet"</span> <span class=na>href=</span><span class=s>"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"</span> <span class=na>integrity=</span><span class=s>"sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"</span> <span class=na>crossorigin=</span><span class=s>"anonymous"</span><span class=nt>&gt;</span>
-
-<span class=c>&lt;!-- Latest compiled and minified JavaScript --&gt;</span>
-<span class=nt>&lt;script </span><span class=na>src=</span><span class=s>"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"</span> <span class=na>integrity=</span><span class=s>"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"</span> <span class=na>crossorigin=</span><span class=s>"anonymous"</span><span class=nt>&gt;&lt;/script&gt;</span></code></pre></figure> <h2 id=download-bower>Install with Bower</h2> <p>You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href=http://bower.io>Bower</a>:</p> <figure class=highlight><pre><code class=language-bash data-lang=bash><span class=gp>$ </span>bower install bootstrap</code></pre></figure> <h2 id=download-npm>Install with npm</h2> <p>You can also install Bootstrap using <a href=https://www.npmjs.com>npm</a>:</p> <figure class=highlight><pre><code class=language-bash data-lang=bash><span class=gp>$ </span>npm install bootstrap@3</code></pre></figure> <p><code>require('bootstrap')</code> will load all of Bootstrap's jQuery plugins onto the jQuery object. The <code>bootstrap</code> module itself does not export anything. You can manually load Bootstrap's jQuery plugins individually by loading the <code>/js/*.js</code> files under the package's top-level directory.</p> <p>Bootstrap's <code>package.json</code> contains some additional metadata under the following keys:</p> <ul> <li><code>less</code> - path to Bootstrap's main <a href=http://lesscss.org>Less</a> source file</li> <li><code>style</code> - path to Bootstrap's non-minified CSS that's been precompiled using the default settings (no customization)</li> </ul> <h2 id=download-composer>Install with Composer</h2> <p>You can also install and manage Bootstrap's Less, CSS, JavaScript, and fonts using <a href=https://getcomposer.org>Composer</a>:</p> <figure class=highlight><pre><code class=language-bash data-lang=bash><span class=gp>$ </span>composer require twbs/bootstrap</code></pre></figure> <h2 id=download-autoprefixer>Autoprefixer required for Less/Sass</h2> <p>Bootstrap uses <a href=https://github.com/postcss/autoprefixer>Autoprefixer</a> to deal with <a href=http://webdesign.about.com/od/css/a/css-vendor-prefixes.htm>CSS vendor prefixes</a>. If you're compiling Bootstrap from its Less/Sass source and not using our Gruntfile, you'll need to integrate Autoprefixer into your build process yourself. If you're using precompiled Bootstrap or using our Gruntfile, you don't need to worry about this because Autoprefixer is already integrated into our Gruntfile.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=whats-included>What's included</h1> <p class=lead>Bootstrap is downloadable in two forms, within which you'll find the following directories and files, logically grouping common resources and providing both compiled and minified variations.</p> <div class="bs-callout bs-callout-warning" id=jquery-required> <h4>jQuery required</h4> <p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <a href=#template>starter template</a>. <a href=https://github.com/twbs/bootstrap/blob/v3.3.7/bower.json>Consult our <code>bower.json</code></a> to see which versions of jQuery are supported.</p> </div> <h2 id=whats-included-precompiled>Precompiled Bootstrap</h2> <p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p> <figure class=highlight><pre><code class=language-bash data-lang=bash>bootstrap/
-├── css/
-│   ├── bootstrap.css
-│   ├── bootstrap.css.map
-│   ├── bootstrap.min.css
-│   ├── bootstrap.min.css.map
-│   ├── bootstrap-theme.css
-│   ├── bootstrap-theme.css.map
-│   ├── bootstrap-theme.min.css
-│   └── bootstrap-theme.min.css.map
-├── js/
-│   ├── bootstrap.js
-│   └── bootstrap.min.js
-└── fonts/
-    ├── glyphicons-halflings-regular.eot
-    ├── glyphicons-halflings-regular.svg
-    ├── glyphicons-halflings-regular.ttf
-    ├── glyphicons-halflings-regular.woff
-    └── glyphicons-halflings-regular.woff2</code></pre></figure> <p>This is the most basic form of Bootstrap: precompiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). CSS <a href=https://developer.chrome.com/devtools/docs/css-preprocessors>source maps</a> (<code>bootstrap.*.map</code>) are available for use with certain browsers' developer tools. Fonts from Glyphicons are included, as is the optional Bootstrap theme.</p> <h2 id=whats-included-source>Bootstrap source code</h2> <p>The Bootstrap source code download includes the precompiled CSS, JavaScript, and font assets, along with source Less, JavaScript, and documentation. More specifically, it includes the following and more:</p> <figure class=highlight><pre><code class=language-bash data-lang=bash>bootstrap/
-├── less/
-├── js/
-├── fonts/
-├── dist/
-│   ├── css/
-│   ├── js/
-│   └── fonts/
-└── docs/
-    └── examples/</code></pre></figure> <p>The <code>less/</code>, <code>js/</code>, and <code>fonts/</code> are the source code for our CSS, JS, and icon fonts (respectively). The <code>dist/</code> folder includes everything listed in the precompiled download section above. The <code>docs/</code> folder includes the source code for our documentation, and <code>examples/</code> of Bootstrap usage. Beyond that, any other included file provides support for packages, license information, and development.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=grunt>Compiling CSS and JavaScript</h1> <p class=lead>Bootstrap uses <a href=http://gruntjs.com>Grunt</a> for its build system, with convenient methods for working with the framework. It's how we compile our code, run tests, and more.</p> <h2 id=grunt-installing>Installing Grunt</h2> <p>To install Grunt, you must <strong>first <a href=https://nodejs.org/download/ >download and install node.js</a></strong> (which includes npm). npm stands for <a href=https://www.npmjs.com/ >node packaged modules</a> and is a way to manage development dependencies through node.js.</p> Then, from the command line: <ol> <li>Install <code>grunt-cli</code> globally with <code>npm install -g grunt-cli</code>.</li> <li>Navigate to the root <code>/bootstrap/</code> directory, then run <code>npm install</code>. npm will look at the <a href=https://github.com/twbs/bootstrap/blob/master/package.json><code>package.json</code></a> file and automatically install the necessary local dependencies listed there.</li> </ol> <p>When completed, you'll be able to run the various Grunt commands provided from the command line.</p> <h2 id=grunt-commands>Available Grunt commands</h2> <h3><code>grunt dist</code> (Just compile CSS and JavaScript)</h3> <p>Regenerates the <code>/dist/</code> directory with compiled and minified CSS and JavaScript files. As a Bootstrap user, this is normally the command you want.</p> <h3><code>grunt watch</code> (Watch)</h3> <p>Watches the Less source files and automatically recompiles them to CSS whenever you save a change.</p> <h3><code>grunt test</code> (Run tests)</h3> <p>Runs <a href=http://jshint.com>JSHint</a> and runs the <a href=http://qunitjs.com>QUnit</a> tests headlessly in <a href=http://phantomjs.org>PhantomJS</a>.</p> <h3><code>grunt docs</code> (Build &amp; test the docs assets)</h3> <p>Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via <code>bundle exec jekyll serve</code>.</p> <h3><code>grunt</code> (Build absolutely everything and run tests)</h3> <p>Compiles and minifies CSS and JavaScript, builds the documentation website, runs the HTML5 validator against the docs, regenerates the Customizer assets, and more. Requires <a href=http://jekyllrb.com/docs/installation/ >Jekyll</a>. Usually only necessary if you're hacking on Bootstrap itself.</p> <h2 id=grunt-troubleshooting>Troubleshooting</h2> <p>Should you encounter problems with installing dependencies or running Grunt commands, first delete the <code>/node_modules/</code> directory generated by npm. Then, rerun <code>npm install</code>.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=template>Basic template</h1> <p class=lead>Start with this basic HTML template, or modify <a href=#examples>these examples</a>. We hope you'll customize our templates and examples, adapting them to suit your needs.</p> <p>Copy the HTML below to begin working with a minimal Bootstrap document.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=cp>&lt;!DOCTYPE html&gt;</span>
-<span class=nt>&lt;html</span> <span class=na>lang=</span><span class=s>"en"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;head&gt;</span>
-    <span class=nt>&lt;meta</span> <span class=na>charset=</span><span class=s>"utf-8"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;meta</span> <span class=na>http-equiv=</span><span class=s>"X-UA-Compatible"</span> <span class=na>content=</span><span class=s>"IE=edge"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;meta</span> <span class=na>name=</span><span class=s>"viewport"</span> <span class=na>content=</span><span class=s>"width=device-width, initial-scale=1"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --&gt;</span>
-    <span class=nt>&lt;title&gt;</span>Bootstrap 101 Template<span class=nt>&lt;/title&gt;</span>
-
-    <span class=c>&lt;!-- Bootstrap --&gt;</span>
-    <span class=nt>&lt;link</span> <span class=na>href=</span><span class=s>"css/bootstrap.min.css"</span> <span class=na>rel=</span><span class=s>"stylesheet"</span><span class=nt>&gt;</span>
-
-    <span class=c>&lt;!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --&gt;</span>
-    <span class=c>&lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;</span>
-    <span class=c>&lt;!--[if lt IE 9]&gt;
-      &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"&gt;&lt;/script&gt;
-      &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
-    &lt;![endif]--&gt;</span>
-  <span class=nt>&lt;/head&gt;</span>
-  <span class=nt>&lt;body&gt;</span>
-    <span class=nt>&lt;h1&gt;</span>Hello, world!<span class=nt>&lt;/h1&gt;</span>
-
-    <span class=c>&lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt;</span>
-    <span class=nt>&lt;script </span><span class=na>src=</span><span class=s>"https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"</span><span class=nt>&gt;&lt;/script&gt;</span>
-    <span class=c>&lt;!-- Include all compiled plugins (below), or include individual files as needed --&gt;</span>
-    <span class=nt>&lt;script </span><span class=na>src=</span><span class=s>"js/bootstrap.min.js"</span><span class=nt>&gt;&lt;/script&gt;</span>
-  <span class=nt>&lt;/body&gt;</span>
-<span class=nt>&lt;/html&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=examples>Examples</h1> <p class=lead>Build on the basic template above with Bootstrap's many components. We encourage you to customize and adapt Bootstrap to suit your individual project's needs.</p> <p>Get the source code for every example below by <a href=https://github.com/twbs/bootstrap/archive/v3.3.7.zip>downloading the Bootstrap repository</a>. Examples can be found in the <code>docs/examples/</code> directory.</p> <h2 id=examples-framework>Using the framework</h2> <div class="row bs-examples"> <div class="col-xs-6 col-md-4"> <a href=../examples/starter-template/ class=thumbnail> <img alt="Starter template example" src=../examples/screenshots/starter-template.jpg> </a> <h3>Starter template</h3> <p>Nothing but the basics: compiled CSS and JavaScript along with a container.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/theme/ class=thumbnail> <img alt="Bootstrap theme example" src=../examples/screenshots/theme.jpg> </a> <h3>Bootstrap theme</h3> <p>Load the optional Bootstrap theme for a visually enhanced experience.</p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/grid/ class=thumbnail> <img alt="Multiple grids example" src=../examples/screenshots/grid.jpg> </a> <h3>Grids</h3> <p>Multiple examples of grid layouts with all four tiers, nesting, and more.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/jumbotron/ class=thumbnail> <img alt="Jumbotron example" src=../examples/screenshots/jumbotron.jpg> </a> <h3>Jumbotron</h3> <p>Build around the jumbotron with a navbar and some basic grid columns.</p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/jumbotron-narrow/ class=thumbnail> <img alt="Narrow jumbotron example" src=../examples/screenshots/jumbotron-narrow.jpg> </a> <h3>Narrow jumbotron</h3> <p>Build a more custom page by narrowing the default container and jumbotron.</p> </div> </div> <h2 id=examples-navbars>Navbars in action</h2> <div class="row bs-examples"> <div class="col-xs-6 col-md-4"> <a href=../examples/navbar/ class=thumbnail> <img alt="Navbar example" src=../examples/screenshots/navbar.jpg> </a> <h3>Navbar</h3> <p>Super basic template that includes the navbar along with some additional content.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/navbar-static-top/ class=thumbnail> <img alt="Static top navbar example" src=../examples/screenshots/navbar-static.jpg> </a> <h3>Static top navbar</h3> <p>Super basic template with a static top navbar along with some additional content.</p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/navbar-fixed-top/ class=thumbnail> <img alt="Fixed navbar example" src=../examples/screenshots/navbar-fixed.jpg> </a> <h3>Fixed navbar</h3> <p>Super basic template with a fixed top navbar along with some additional content.</p> </div> </div> <h2 id=examples-custom>Custom components</h2> <div class="row bs-examples"> <div class="col-xs-6 col-md-4"> <a href=../examples/cover/ class=thumbnail> <img alt="A one-page template example" src=../examples/screenshots/cover.jpg> </a> <h3>Cover</h3> <p>A one-page template for building simple and beautiful home pages.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/carousel/ class=thumbnail> <img alt="Carousel example" src=../examples/screenshots/carousel.jpg> </a> <h3>Carousel</h3> <p>Customize the navbar and carousel, then add some new components.</p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/blog/ class=thumbnail> <img alt="Blog layout example" src=../examples/screenshots/blog.jpg> </a> <h3>Blog</h3> <p>Simple two-column blog layout with custom navigation, header, and type.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/dashboard/ class=thumbnail> <img alt="Dashboard example" src=../examples/screenshots/dashboard.jpg> </a> <h3>Dashboard</h3> <p>Basic structure for an admin dashboard with fixed sidebar and navbar.</p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/signin/ class=thumbnail> <img alt="Sign-in page example" src=../examples/screenshots/sign-in.jpg> </a> <h3>Sign-in page</h3> <p>Custom form layout and design for a simple sign in form.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/justified-nav/ class=thumbnail> <img alt="Justified nav example" src=../examples/screenshots/justified-nav.jpg> </a> <h3>Justified nav</h3> <p>Create a custom navbar with justified links. Heads up! <a href=../components/#nav-justified>Not too Safari friendly.</a></p> </div> <div class="clearfix visible-xs"></div> <div class="col-xs-6 col-md-4"> <a href=../examples/sticky-footer/ class=thumbnail> <img alt="Sticky footer example" src=../examples/screenshots/sticky-footer.jpg> </a> <h3>Sticky footer</h3> <p>Attach a footer to the bottom of the viewport when the content is shorter than it.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/sticky-footer-navbar/ class=thumbnail> <img alt="Sticky footer with navbar example" src=../examples/screenshots/sticky-footer-navbar.jpg> </a> <h3>Sticky footer with navbar</h3> <p>Attach a footer to the bottom of the viewport with a fixed navbar at the top.</p> </div> </div> <h2 id=examples-experiments>Experiments</h2> <div class="row bs-examples"> <div class="col-xs-6 col-md-4"> <a href=../examples/non-responsive/ class=thumbnail> <img alt="Non-responsive example" src=../examples/screenshots/non-responsive.jpg> </a> <h3>Non-responsive Bootstrap</h3> <p>Easily disable the responsiveness of Bootstrap <a href=#disable-responsive>per our docs</a>.</p> </div> <div class="col-xs-6 col-md-4"> <a href=../examples/offcanvas/ class=thumbnail> <img alt="Off-canvas navigation example" src=../examples/screenshots/offcanvas.jpg> </a> <h3>Off-canvas</h3> <p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p> </div> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=tools>Tools</h1> <h2 id=tools-bootlint>Bootlint</h2> <p><strong><a href=https://github.com/twbs/bootlint>Bootlint</a></strong> is the official Bootstrap HTML <a href=http://en.wikipedia.org/wiki/Lint_(software)>linter</a> tool. It automatically checks for several common HTML mistakes in webpages that are using Bootstrap in a fairly "vanilla" way. Vanilla Bootstrap's components/widgets require their parts of the DOM to conform to certain structures. Bootlint checks that instances of Bootstrap components have correctly-structured HTML. Consider adding Bootlint to your Bootstrap web development toolchain so that none of the common mistakes slow down your project's development.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=community>Community</h1> <p class=lead>Stay up to date on the development of Bootstrap and reach out to the community with these helpful resources.</p> <ul> <li>Read and subscribe to <a href=http://blog.getbootstrap.com/ >The Official Bootstrap Blog</a>.</li> <li>Chat with fellow Bootstrappers using IRC in the <code>irc.freenode.net</code> server, in the <a href=irc://irc.freenode.net/%23bootstrap>##bootstrap channel</a>.</li> <li>For help using Bootstrap, ask on <a href=https://stackoverflow.com/questions/tagged/twitter-bootstrap-3>StackOverflow using the tag <code>twitter-bootstrap-3</code></a>.</li> <li>Developers should use the keyword <code>bootstrap</code> on packages which modify or add to the functionality of Bootstrap when distributing through <a href=https://www.npmjs.com/browse/keyword/bootstrap>npm</a> or similar delivery mechanisms for maximum discoverability.</li> <li>Find inspiring examples of people building with Bootstrap at the <a href=http://expo.getbootstrap.com>Bootstrap Expo</a>.</li> </ul> <p>You can also follow <a href=https://twitter.com/getbootstrap>@getbootstrap on Twitter</a> for the latest gossip and awesome music videos.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=disable-responsive>Disabling responsiveness</h1> <p class=lead>Bootstrap automatically adapts your pages for various screen sizes. Here's how to disable this feature so your page works like <a href=../examples/non-responsive/ >this non-responsive example</a>.</p> <h2>Steps to disable page responsiveness</h2> <ol> <li>Omit the viewport <code>&lt;meta&gt;</code> mentioned in <a href=../css/#overview-mobile>the CSS docs</a></li> <li>Override the <code>width</code> on the <code>.container</code> for each grid tier with a single width, for example <code>width: 970px !important;</code> Be sure that this comes after the default Bootstrap CSS. You can optionally avoid the <code>!important</code> with media queries or some selector-fu.</li> <li>If using navbars, remove all navbar collapsing and expanding behavior.</li> <li>For grid layouts, use <code>.col-xs-*</code> classes in addition to, or in place of, the medium/large ones. Don't worry, the extra-small device grid scales to all resolutions.</li> </ol> <p>You'll still need Respond.js for IE8 (since our media queries are still there and need to be processed). This disables the "mobile site" aspects of Bootstrap.</p> <h2>Bootstrap template with responsiveness disabled</h2> <p>We've applied these steps to an example. Read its source code to see the specific changes implemented.</p> <p> <a href=../examples/non-responsive/ class="btn btn-primary">View non-responsive example</a> </p> </div> <div class="bs-callout bs-callout-info" id=migration> <h4>Migrating from v2.x to v3.x</h4> <p>Looking to migrate from an older version of Bootstrap to v3.x? Check out <a href=../migration>our migration guide</a>.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=support>Browser and device support</h1> <p class=lead>Bootstrap is built to work best in the latest desktop and mobile browsers, meaning older browsers might display differently styled, though fully functional, renderings of certain components.</p> <h2 id=support-browsers>Supported browsers</h2> <p>Specifically, we support the <strong>latest versions</strong> of the following browsers and platforms.</p> <p>Alternative browsers which use the latest version of WebKit, Blink, or Gecko, whether directly or via the platform's web view API, are not explicitly supported. However, Bootstrap should (in most cases) display and function correctly in these browsers as well. More specific support information is provided below.</p> <h3 id=mobile-devices>Mobile devices</h3> <p>Generally speaking, Bootstrap supports the latest versions of each major platform's default browsers. Note that proxy browsers (such as Opera Mini, Opera Mobile's Turbo mode, UC Browser Mini, Amazon Silk) are not supported.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <td></td> <th>Chrome</th> <th>Firefox</th> <th>Safari</th> </tr> </thead> <tbody> <tr> <th scope=row>Android</th> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-muted>N/A</td> </tr> <tr> <th scope=row>iOS</th> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> </tr> </tbody> </table> </div> <h3 id=desktop-browsers>Desktop browsers</h3> <p>Similarly, the latest versions of most desktop browsers are supported.</p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <td></td> <th>Chrome</th> <th>Firefox</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> </thead> <tbody> <tr> <th scope=row>Mac</th> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-muted>N/A</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> </tr> <tr> <th scope=row>Windows</th> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> <td class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> </tr> </tbody> </table> </div> <p>On Windows, <strong>we support Internet Explorer 8-11</strong>.</p> <p>For Firefox, in addition to the latest normal stable release, we also support the latest <a href=https://www.mozilla.org/en-US/firefox/organizations/faq/ >Extended Support Release (ESR)</a> version of Firefox.</p> <p>Unofficially, Bootstrap should look and behave well enough in Chromium and Chrome for Linux, Firefox for Linux, and Internet Explorer 7, as well as Microsoft Edge, though they are not officially supported.</p> <p>For a list of some of the browser bugs that Bootstrap has to grapple with, see our <a href=../browser-bugs/ >Wall of browser bugs</a>.</p> <h2 id=support-ie8-ie9>Internet Explorer 8 and 9</h2> <p>Internet Explorer 8 and 9 are also supported, however, please be aware that some CSS3 properties and HTML5 elements are not fully supported by these browsers. In addition, <strong>Internet Explorer 8 requires the use of <a href=https://github.com/scottjehl/Respond>Respond.js</a> to enable media query support.</strong></p> <div class=table-responsive> <table class="table table-bordered table-striped"> <thead> <tr> <th class=col-xs-4>Feature</th> <th class=col-xs-4>Internet Explorer 8</th> <th class=col-xs-4>Internet Explorer 9</th> </tr> </thead> <tbody> <tr> <th scope=row><code>border-radius</code></th> <td class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> </tr> <tr> <th scope=row><code>box-shadow</code></th> <td class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported</td> </tr> <tr> <th scope=row><code>transform</code></th> <td class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> <td class=text-success><span class="glyphicon glyphicon-ok" aria-hidden=true></span> Supported, with <code>-ms</code> prefix</td> </tr> <tr> <th scope=row><code>transition</code></th> <td colspan=2 class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> </tr> <tr> <th scope=row><code>placeholder</code></th> <td colspan=2 class=text-danger><span class="glyphicon glyphicon-remove" aria-hidden=true></span> Not supported</td> </tr> </tbody> </table> </div> <p>Visit <a href=http://caniuse.com/ >Can I use...</a> for details on browser support of CSS3 and HTML5 features.</p> <h2 id=support-ie8-respondjs>Internet Explorer 8 and Respond.js</h2> <p>Beware of the following caveats when using Respond.js in your development and production environments for Internet Explorer 8.</p> <h3 id=respond-js-x-domain>Respond.js and cross-domain CSS</h3> <p>Using Respond.js with CSS hosted on a different (sub)domain (for example, on a CDN) requires some additional setup. <a href=https://github.com/scottjehl/Respond/blob/master/README.md#cdnx-domain-setup>See the Respond.js docs</a> for details.</p> <h3 id=respond-file-proto>Respond.js and <code>file://</code></h3> <p>Due to browser security rules, Respond.js doesn't work with pages viewed via the <code>file://</code> protocol (like when opening a local HTML file). To test responsive features in IE8, view your pages over HTTP(S). <a href=https://github.com/scottjehl/Respond/blob/master/README.md#support--caveats>See the Respond.js docs</a> for details.</p> <h3 id=respond-import>Respond.js and <code>@import</code></h3> <p>Respond.js doesn't work with CSS that's referenced via <code>@import</code>. In particular, some Drupal configurations are known to use <code>@import</code>. <a href=https://github.com/scottjehl/Respond/blob/master/README.md#support--caveats>See the Respond.js docs</a> for details.</p> <h2 id=support-ie8-box-sizing>Internet Explorer 8 and box-sizing</h2> <p>IE8 does not fully support <code>box-sizing: border-box;</code> when combined with <code>min-width</code>, <code>max-width</code>, <code>min-height</code>, or <code>max-height</code>. For that reason, as of v3.0.1, we no longer use <code>max-width</code> on <code>.container</code>s.</p> <h2 id=support-ie8-font-face>Internet Explorer 8 and @font-face</h2> <p>IE8 has some issues with <code>@font-face</code> when combined with <code>:before</code>. Bootstrap uses that combination with its Glyphicons. If a page is cached, and loaded without the mouse over the window (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. <a href=https://github.com/twbs/bootstrap/issues/13863>See issue #13863</a> for details.</p> <h2 id=support-ie-compatibility-modes>IE Compatibility modes</h2> <p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code>&lt;meta&gt;</code> tag in your pages:</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;meta</span> <span class=na>http-equiv=</span><span class=s>"X-UA-Compatible"</span> <span class=na>content=</span><span class=s>"IE=edge"</span><span class=nt>&gt;</span></code></pre></figure> <p>Confirm the document mode by opening the debugging tools: press <kbd>F12</kbd> and check the "Document Mode".</p> <p>This tag is included in all of Bootstrap's documentation and examples to ensure the best rendering possible in each supported version of Internet Explorer.</p> <p>See <a href=https://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge>this StackOverflow question</a> for more information.</p> <h2 id=support-ie10-width>Internet Explorer 10 in Windows 8 and Windows Phone 8</h2> <p>Internet Explorer 10 doesn't differentiate <strong>device width</strong> from <strong>viewport width</strong>, and thus doesn't properly apply the media queries in Bootstrap's CSS. Normally you'd just add a quick snippet of CSS to fix this:</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@-ms-viewport</span>       <span class=p>{</span> <span class=nl>width</span><span class=p>:</span> <span class=n>device-width</span><span class=p>;</span> <span class=p>}</span></code></pre></figure> <p>However, this doesn't work for devices running Windows Phone 8 versions older than <a href=http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/10/14/introducing-windows-phone-preview-for-developers.aspx>Update 3 (a.k.a. GDR3)</a>, as it causes such devices to show a mostly desktop view instead of narrow "phone" view. To address this, you'll need to <strong>include the following CSS and JavaScript to work around the bug</strong>.</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=k>@-ms-viewport</span>       <span class=p>{</span> <span class=nl>width</span><span class=p>:</span> <span class=n>device-width</span><span class=p>;</span> <span class=p>}</span>
-<span class=k>@-o-viewport</span>        <span class=p>{</span> <span class=nl>width</span><span class=p>:</span> <span class=n>device-width</span><span class=p>;</span> <span class=p>}</span>
-<span class=k>@viewport</span>           <span class=p>{</span> <span class=nl>width</span><span class=p>:</span> <span class=n>device-width</span><span class=p>;</span> <span class=p>}</span></code></pre></figure> <figure class=highlight><pre><code class=language-js data-lang=js><span class=c1>// Copyright 2014-2015 Twitter, Inc.</span>
-<span class=c1>// Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)</span>
-<span class=k>if</span> <span class=p>(</span><span class=nx>navigator</span><span class=p>.</span><span class=nx>userAgent</span><span class=p>.</span><span class=nx>match</span><span class=p>(</span><span class=sr>/IEMobile</span><span class=se>\/</span><span class=sr>10</span><span class=se>\.</span><span class=sr>0/</span><span class=p>))</span> <span class=p>{</span>
-  <span class=kd>var</span> <span class=nx>msViewportStyle</span> <span class=o>=</span> <span class=nb>document</span><span class=p>.</span><span class=nx>createElement</span><span class=p>(</span><span class=s1>'style'</span><span class=p>)</span>
-  <span class=nx>msViewportStyle</span><span class=p>.</span><span class=nx>appendChild</span><span class=p>(</span>
-    <span class=nb>document</span><span class=p>.</span><span class=nx>createTextNode</span><span class=p>(</span>
-      <span class=s1>'@-ms-viewport{width:auto!important}'</span>
-    <span class=p>)</span>
-  <span class=p>)</span>
-  <span class=nb>document</span><span class=p>.</span><span class=nx>querySelector</span><span class=p>(</span><span class=s1>'head'</span><span class=p>).</span><span class=nx>appendChild</span><span class=p>(</span><span class=nx>msViewportStyle</span><span class=p>)</span>
-<span class=p>}</span></code></pre></figure> <p>For more information and usage guidelines, read <a href=http://timkadlec.com/2013/01/windows-phone-8-and-device-width/ >Windows Phone 8 and Device-Width</a>.</p> <p>As a heads up, we include this in all of Bootstrap's documentation and examples as a demonstration.</p> <h2 id=support-safari-percentages>Safari percent rounding</h2> <p>The rendering engine of versions of Safari prior to v7.1 for OS X and Safari for iOS v8.0 had some trouble with the number of decimal places used in our <code>.col-*-1</code> grid classes. So if you had 12 individual grid columns, you'd notice that they came up short compared to other rows of columns. Besides upgrading Safari/iOS, you have some options for workarounds:</p> <ul> <li>Add <code>.pull-right</code> to your last grid column to get the hard-right alignment</li> <li>Tweak your percentages manually to get the perfect rounding for Safari (more difficult than the first option)</li> </ul> <h2 id=support-fixed-position-keyboards>Modals, navbars, and virtual keyboards</h2> <h3>Overflow and scrolling</h3> <p>Support for <code>overflow: hidden</code> on the <code>&lt;body&gt;</code> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <code>&lt;body&gt;</code> content will begin to scroll. See <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=175502">Chrome bug #175502</a> (fixed in Chrome v40) and <a href="https://bugs.webkit.org/show_bug.cgi?id=153852">WebKit bug #153852</a>.</p> <h3>iOS text fields and scrolling</h3> <p>As of iOS 9.3, while a modal is open, if the initial touch of a scroll gesture is within the boundary of a textual <code>&lt;input&gt;</code> or a <code>&lt;textarea&gt;</code>, the <code>&lt;body&gt;</code> content underneath the modal will be scrolled instead of the modal itself. See <a href="https://bugs.webkit.org/show_bug.cgi?id=153856">WebKit bug #153856</a>.</p> <h3>Virtual keyboards</h3> <p>Also, note that if you're using a fixed navbar or using inputs within a modal, iOS has a rendering bug that doesn't update the position of fixed elements when the virtual keyboard is triggered. A few workarounds for this include transforming your elements to <code>position: absolute</code> or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.</p> <h3>Navbar Dropdowns</h3> <p>The <code>.dropdown-backdrop</code> element isn't used on iOS in the nav because of the complexity of z-indexing. Thus, to close dropdowns in navbars, you must directly click the dropdown element (or <a href=https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile>any other element which will fire a click event in iOS</a>).</p> <h2 id=support-browser-zooming>Browser zooming</h2> <p>Page zooming inevitably presents rendering artifacts in some components, both in Bootstrap and the rest of the web. Depending on the issue, we may be able to fix it (search first and then open an issue if need be). However, we tend to ignore these as they often have no direct solution other than hacky workarounds.</p> <h2 id=support-sticky-hover-mobile>Sticky <code>:hover</code>/<code>:focus</code> on mobile</h2> <p>Even though real hovering isn't possible on most touchscreens, most mobile browsers emulate hovering support and make <code>:hover</code> "sticky". In other words, <code>:hover</code> styles start applying after tapping an element and only stop applying after the user taps some other element. This can cause Bootstrap's <code>:hover</code> states to become undesirably "stuck" on such browsers. Some mobile browsers also make <code>:focus</code> similarly sticky. There is currently no simple workaround for these issues other than removing such styles entirely.</p> <h2 id=support-printing>Printing</h2> <p>Even in some modern browsers, printing can be quirky.</p> <p>In particular, as of Chrome v32 and regardless of margin settings, Chrome uses a viewport width significantly narrower than the physical paper size when resolving media queries while printing a webpage. This can result in Bootstrap's extra-small grid being unexpectedly activated when printing. <a href=https://github.com/twbs/bootstrap/issues/12078>See issue #12078</a> and <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=273306">Chrome bug #273306</a> for some details. Suggested workarounds:</p> <ul> <li>Embrace the extra-small grid and make sure your page looks acceptable under it.</li> <li>Customize the values of the <code>@screen-*</code> Less variables so that your printer paper is considered larger than extra-small.</li> <li>Add custom media queries to change the grid size breakpoints for print media only.</li> </ul> <p>Also, as of Safari v8.0, fixed-width <code>.container</code>s can cause Safari to use an unusually small font size when printing. See <a href=https://github.com/twbs/bootstrap/issues/14868>#14868</a> and <a href="https://bugs.webkit.org/show_bug.cgi?id=138192">WebKit bug #138192</a> for more details. One potential workaround for this is adding the following CSS:</p> <figure class=highlight><pre><code class=language-css data-lang=css><span class=k>@media</span> <span class=n>print</span> <span class=p>{</span>
-  <span class=nc>.container</span> <span class=p>{</span>
-    <span class=nl>width</span><span class=p>:</span> <span class=nb>auto</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span></code></pre></figure> <h2 id=support-android-stock-browser>Android stock browser</h2> <p>Out of the box, Android 4.1 (and even some newer releases apparently) ship with the Browser app as the default web browser of choice (as opposed to Chrome). Unfortunately, the Browser app has lots of bugs and inconsistencies with CSS in general.</p> <h3>Select menus</h3> <p>On <code>&lt;select&gt;</code> elements, the Android stock browser will not display the side controls if there is a <code>border-radius</code> and/or <code>border</code> applied. (See <a href=https://stackoverflow.com/questions/14744437/html-select-box-not-showing-drop-down-arrow-on-android-version-4-0-when-set-with>this StackOverflow question</a> for details.) Use the snippet of code below to remove the offending CSS and render the <code>&lt;select&gt;</code> as an unstyled element on the Android stock browser. The user agent sniffing avoids interference with Chrome, Safari, and Mozilla browsers.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;script&gt;</span>
-<span class=nx>$</span><span class=p>(</span><span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=kd>var</span> <span class=nx>nua</span> <span class=o>=</span> <span class=nx>navigator</span><span class=p>.</span><span class=nx>userAgent</span>
-  <span class=kd>var</span> <span class=nx>isAndroid</span> <span class=o>=</span> <span class=p>(</span><span class=nx>nua</span><span class=p>.</span><span class=nx>indexOf</span><span class=p>(</span><span class=s1>'Mozilla/5.0'</span><span class=p>)</span> <span class=o>&gt;</span> <span class=o>-</span><span class=mi>1</span> <span class=o>&amp;&amp;</span> <span class=nx>nua</span><span class=p>.</span><span class=nx>indexOf</span><span class=p>(</span><span class=s1>'Android '</span><span class=p>)</span> <span class=o>&gt;</span> <span class=o>-</span><span class=mi>1</span> <span class=o>&amp;&amp;</span> <span class=nx>nua</span><span class=p>.</span><span class=nx>indexOf</span><span class=p>(</span><span class=s1>'AppleWebKit'</span><span class=p>)</span> <span class=o>&gt;</span> <span class=o>-</span><span class=mi>1</span> <span class=o>&amp;&amp;</span> <span class=nx>nua</span><span class=p>.</span><span class=nx>indexOf</span><span class=p>(</span><span class=s1>'Chrome'</span><span class=p>)</span> <span class=o>===</span> <span class=o>-</span><span class=mi>1</span><span class=p>)</span>
-  <span class=k>if</span> <span class=p>(</span><span class=nx>isAndroid</span><span class=p>)</span> <span class=p>{</span>
-    <span class=nx>$</span><span class=p>(</span><span class=s1>'select.form-control'</span><span class=p>).</span><span class=nx>removeClass</span><span class=p>(</span><span class=s1>'form-control'</span><span class=p>).</span><span class=nx>css</span><span class=p>(</span><span class=s1>'width'</span><span class=p>,</span> <span class=s1>'100%'</span><span class=p>)</span>
-  <span class=p>}</span>
-<span class=p>})</span>
-<span class=nt>&lt;/script&gt;</span></code></pre></figure> <p>Want to see an example? <a href=http://jsbin.com/kuvoz/1>Check out this JS Bin demo.</a></p> <h2 id=support-validators>Validators</h2> <p>In order to provide the best possible experience to old and buggy browsers, Bootstrap uses <a href=http://browserhacks.com>CSS browser hacks</a> in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren't yet fully standardized, but these are used purely for progressive enhancement.</p> <p>These validation warnings don't matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don't interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.</p> <p>Our HTML docs likewise have some trivial and inconsequential HTML validation warnings due to our inclusion of a workaround for <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654072">a certain Firefox bug</a>.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=third-parties>Third party support</h1> <p class=lead>While we don't officially support any third party plugins or add-ons, we do offer some useful advice to help avoid potential issues in your projects.</p> <h2 id=third-box-sizing>Box-sizing</h2> <p>Some third party software, including Google Maps and Google Custom Search Engine, conflict with Bootstrap due to <code>* { box-sizing: border-box; }</code>, a rule which makes it so <code>padding</code> does not affect the final computed width of an element. Learn more about <a href=https://css-tricks.com/box-sizing/ >box model and sizing at CSS Tricks</a>.</p> <p>Depending on the context, you may override as-needed (Option 1) or reset the box-sizing for entire regions (Option 2).</p> <figure class=highlight><pre><code class=language-scss data-lang=scss><span class=cm>/* Box-sizing resets
- *
- * Reset individual elements or override regions to avoid conflicts due to
- * global box model settings of Bootstrap. Two options, individual overrides and
- * region resets, are available as plain CSS and uncompiled Less formats.
- */</span>
-
-<span class=cm>/* Option 1A: Override a single element's box model via CSS */</span>
-<span class=nc>.element</span> <span class=p>{</span>
-  <span class=na>-webkit-box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-     <span class=na>-moz-box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-          <span class=nl>box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=cm>/* Option 1B: Override a single element's box model by using a Bootstrap Less mixin */</span>
-<span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.box-sizing</span><span class=o>(</span><span class=nt>content-box</span><span class=o>)</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=cm>/* Option 2A: Reset an entire region via CSS */</span>
-<span class=nc>.reset-box-sizing</span><span class=o>,</span>
-<span class=nc>.reset-box-sizing</span> <span class=o>*,</span>
-<span class=nc>.reset-box-sizing</span> <span class=o>*</span><span class=nd>:before</span><span class=o>,</span>
-<span class=nc>.reset-box-sizing</span> <span class=o>*</span><span class=nd>:after</span> <span class=p>{</span>
-  <span class=na>-webkit-box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-     <span class=na>-moz-box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-          <span class=nl>box-sizing</span><span class=p>:</span> <span class=n>content-box</span><span class=p>;</span>
-<span class=p>}</span>
-
-<span class=cm>/* Option 2B: Reset an entire region with a custom Less mixin */</span>
-<span class=nc>.reset-box-sizing</span> <span class=p>{</span>
-  <span class=k>&amp;</span><span class=o>,</span>
-  <span class=o>*,</span>
-  <span class=o>*</span><span class=nd>:before</span><span class=o>,</span>
-  <span class=o>*</span><span class=nd>:after</span> <span class=p>{</span>
-    <span class=nc>.box-sizing</span><span class=o>(</span><span class=nt>content-box</span><span class=o>)</span><span class=p>;</span>
-  <span class=p>}</span>
-<span class=p>}</span>
-<span class=nc>.element</span> <span class=p>{</span>
-  <span class=nc>.reset-box-sizing</span><span class=o>()</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=accessibility>Accessibility</h1> <p class=lead>Bootstrap follows common web standards and&mdash;with minimal extra effort&mdash;can be used to create sites that are accessible to those using <abbr title="Assistive Technology" class=initialism>AT</abbr>.</p> <h2>Skip navigation</h2> <p>If your navigation contains many links and comes before the main content in the DOM, add a <code>Skip to main content</code> link before the navigation (for a simple explanation, see this <a href=http://a11yproject.com/posts/skip-nav-links>A11Y Project article on skip navigation links</a>). Using the <code>.sr-only</code> class will visually hide the skip link, and the <code>.sr-only-focusable</code> class will ensure that the link becomes visible once focused (for sighted keyboard users).</p> <div class="bs-callout bs-callout-danger" id=callout-skiplinks> <p>Due to long-standing shortcomings/bugs in Chrome (see <a href="https://code.google.com/p/chromium/issues/detail?id=262171" title="Chromium bug tracker - Issue 262171: Focus should cycle from named anchor">issue 262171 in the Chromium bug tracker</a>) and Internet Explorer (see this article on <a href=http://accessibleculture.org/articles/2010/05/in-page-links/ >in-page links and focus order</a>), you will need to make sure that the target of your skip link is at least programmatically focusable by adding <code>tabindex="-1"</code>.</p> <p>In addition, you may want to explicitly suppress a visible focus indication on the target (particularly as Chrome currently also sets focus on elements with <code>tabindex="-1"</code> when they are clicked with the mouse) with <code>#content:focus { outline: none; }</code>.</p> <p>Note that this bug will also affect any other in-page links your site may be using, rendering them useless for keyboard users. You may consider adding a similar stop-gap fix to all other named anchors / fragment identifiers that act as link targets.</p> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;body&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#content"</span> <span class=na>class=</span><span class=s>"sr-only sr-only-focusable"</span><span class=nt>&gt;</span>Skip to main content<span class=nt>&lt;/a&gt;</span>
-  ...
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"container"</span> <span class=na>id=</span><span class=s>"content"</span> <span class=na>tabindex=</span><span class=s>"-1"</span><span class=nt>&gt;</span>
-    <span class=c>&lt;!-- The main page content --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/body&gt;</span></code></pre></figure> <h2>Nested headings</h2> <p>When nesting headings (<code>&lt;h1&gt;</code> - <code>&lt;h6&gt;</code>), your primary document header should be an <code>&lt;h1&gt;</code>. Subsequent headings should make logical use of <code>&lt;h2&gt;</code> - <code>&lt;h6&gt;</code> such that screen readers can construct a table of contents for your pages.</p> <p>Learn more at <a href=http://squizlabs.github.io/HTML_CodeSniffer/Standards/Section508/ >HTML CodeSniffer</a> and <a href=http://accessibility.psu.edu/headings>Penn State's AccessAbility</a>.</p> <h2>Color contrast</h2> <p>Currently, some of the default color combinations available in Bootstrap (such as the various <a href=../css/#buttons>styled button</a> classes, some of the code highlighting colors used for <a href=../css/#code-block>basic code blocks</a>, the <code>.bg-primary</code> <a href=../css/#helper-classes-backgrounds>contextual background</a> helper class, and the default link color when used on a white background) have a low contrast ratio (below the <a href=http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast>recommended ratio of 4.5:1</a>). This can cause problems to users with low vision or who are color blind. These default colors may need to be modified to increase their contrast and legibility.</p> <h2>Additional resources</h2> <ul> <li><a href=https://github.com/squizlabs/HTML_CodeSniffer>"HTML Codesniffer" bookmarklet for identifying accessibility issues</a></li> <li><a href="https://chrome.google.com/webstore/detail/accessibility-developer-t/fpkknkljclfencbdbgkenhalefipecmb?hl=en">Chrome's Accessibility Developer Tools extension</a></li> <li><a href=http://www.paciellogroup.com/resources/contrastanalyser/ >Colour Contrast Analyser</a></li> <li><a href=http://a11yproject.com/ >The A11Y Project</a></li> <li><a href=https://developer.mozilla.org/en-US/docs/Accessibility>MDN accessibility documentation</a></li> </ul> </div> <div class=bs-docs-section> <h1 class=page-header id=license-faqs>License FAQs</h1> <p class=lead>Bootstrap is released under the MIT license and is copyright 2016 Twitter. Boiled down to smaller chunks, it can be described with the following conditions.</p> <h2>It requires you to:</h2> <ul> <li>Keep the license and copyright notice included in Bootstrap's CSS and JavaScript files when you use them in your works</li> </ul> <h2>It permits you to:</h2> <ul> <li>Freely download and use Bootstrap, in whole or in part, for personal, private, company internal, or commercial purposes</li> <li>Use Bootstrap in packages or distributions that you create</li> <li>Modify the source code</li> <li>Grant a sublicense to modify and distribute Bootstrap to third parties not included in the license</li> </ul> <h2>It forbids you to:</h2> <ul> <li>Hold the authors and license owners liable for damages as Bootstrap is provided without warranty</li> <li>Hold the creators or copyright holders of Bootstrap liable</li> <li>Redistribute any piece of Bootstrap without proper attribution</li> <li>Use any marks owned by Twitter in any way that might state or imply that Twitter endorses your distribution</li> <li>Use any marks owned by Twitter in any way that might state or imply that you created the Twitter software in question</li> </ul> <h2>It does not require you to:</h2> <ul> <li>Include the source of Bootstrap itself, or of any modifications you may have made to it, in any redistribution you may assemble that includes it</li> <li>Submit changes that you make to Bootstrap back to the Bootstrap project (though such feedback is encouraged)</li> </ul> <p>The full Bootstrap license is located <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE>in the project repository</a> for more information.</p> </div> <div class=bs-docs-section> <h1 class=page-header id=translations>Translations</h1> <p class=lead>Community members have translated Bootstrap's documentation into various languages. None are officially supported and they may not always be up to date.</p> <ul> <li><a href=http://v3.bootcss.com/ hreflang=zh>Bootstrap 中文文档 (Chinese)</a></li> <li><a href=https://kkbruce.tw/bs3/ hreflang=zh-TW>Bootstrap 3 中文手冊 (Chinese (Traditional))</a></li> <li><a href=http://getbootstrap.dk/ hreflang=da>Bootstrap på Dansk (Danish)</a></li> <li><a href=http://www.oneskyapp.com/fr/docs/bootstrap/getting-started/ hreflang=fr>Bootstrap en Français (French)</a></li> <li><a href=http://holdirbootstrap.de/ hreflang=de>Bootstrap auf Deutsch (German)</a></li> <li><a href=http://www.hackerstribe.com/guide/IT-bootstrap-3.1.1/ hreflang=it>Bootstrap in Italiano (Italian)</a></li> <li><a href=http://bootstrapk.com/ hreflang=ko>Bootstrap 한국어 (Korean)</a></li> <li><a href=http://bootstrapbrasil.github.io/ hreflang=pt-BR>Bootstrap em Português do Brasil (Brazilian Portuguese)</a></li> <li><a href=http://www.oneskyapp.com/ru/docs/bootstrap/ hreflang=ru>Bootstrap по-русски (Russian)</a></li> <li><a href=http://www.oneskyapp.com/es/docs/bootstrap/ hreflang=es>Bootstrap en Español (Spanish)</a></li> <li><a href=http://www.trbootstrap.com hreflang=tr>Türkçe Bootstrap (Turkish)</a></li> <li><a href=http://twbs.docs.org.ua hreflang=uk>Bootstrap українською (Ukrainian)</a></li> <li><a href=http://getbootstrap.com.vn hreflang=vi>Bootstrap bằng tiếng Việt (Vietnamese)</a></li> </ul> <p><strong class=text-danger>We don't help organize or host translations, we just link to them.</strong></p> <p>Finished a new or better translation? Open a pull request to add it to our list.</p> </div> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li> <a href=#download>Download</a> </li> <li> <a href=#whats-included>What's included</a> <ul class=nav> <li><a href=#whats-included-precompiled>Precompiled</a></li> <li><a href=#whats-included-source>Source code</a></li> </ul> </li> <li> <a href=#grunt>Compiling CSS and JavaScript</a> <ul class=nav> <li><a href=#grunt-installing>Installing Grunt</a></li> <li><a href=#grunt-commands>Available Grunt commands</a></li> <li><a href=#grunt-troubleshooting>Troubleshooting</a></li> </ul> </li> <li> <a href=#template>Basic template</a> </li> <li> <a href=#examples>Examples</a> <ul class=nav> <li><a href=#examples-framework>Using the framework</a></li> <li><a href=#examples-navbars>Navbars in action</a></li> <li><a href=#examples-custom>Custom components</a></li> <li><a href=#examples-experiments>Experiments</a></li> </ul> </li> <li> <a href=#tools>Tools</a> <ul class=nav> <li><a href=#tools-bootlint>Bootlint</a></li> </ul> </li> <li> <a href=#community>Community</a> </li> <li> <a href=#disable-responsive>Disabling responsiveness</a> </li> <li> <a href=#migration>Migrating from 2.x to 3.0</a> </li> <li> <a href=#support>Browser and device support</a> <ul class=nav> <li><a href=#support-browsers>Supported browsers</a></li> <li><a href=#support-ie8-ie9>Internet Explorer 8-9</a></li> <li><a href=#support-ie8-respondjs>IE8 and Respond.js</a></li> <li><a href=#support-ie8-box-sizing>IE8 and box-sizing</a></li> <li><a href=#support-ie8-font-face>IE8 and @font-face</a></li> <li><a href=#support-ie-compatibility-modes>IE Compatibility modes</a></li> <li><a href=#support-ie10-width>IE10 and Windows (Phone) 8</a></li> <li><a href=#support-safari-percentages>Safari percent rounding</a></li> <li><a href=#support-fixed-position-keyboards>Modals, navbars, and virtual keyboards</a></li> <li><a href=#support-browser-zooming>Browser zooming</a></li> <li><a href=#support-sticky-hover-mobile>Sticky :hover/:focus on mobile</a></li> <li><a href=#support-printing>Printing</a></li> <li><a href=#support-android-stock-browser>Android stock browser</a></li> <li><a href=#support-validators>Validators</a></li> </ul> </li> <li> <a href=#third-parties>Third party support</a> </li> <li> <a href=#accessibility>Accessibility</a> </li> <li> <a href=#license-faqs>License FAQs</a> </li> <li> <a href=#translations>Translations</a> </li> </ul> <a href=#top class=back-to-top> Back to top </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/getting-started/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/getting-started/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/getting-started/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/getting-started/"</script>
+</html>
index c26dedc6146ffb728074e794756250f9fe3a5e0e..5985c1375aaacb70d25e8f31ffb6c6e8f8af49b0 100644 (file)
     </svg>
     <h3>Bootstrap CDN</h3>
     <p>When you only need to include Bootstrap's compiled CSS or JS, you can use the Bootstrap CDN.</p>
-
-<h5>CSS only</h5>
-<figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"</span> <span class="na">integrity=</span><span class="s">"sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ"</span> <span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">&gt;</span></code></pre></figure>
-
-<h5>JS, Popper, and jQuery</h5>
-<figure class="highlight"><pre><code class="language-html" data-lang="html"><span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"https://code.jquery.com/jquery-3.2.1.slim.min.js"</span> <span class="na">integrity=</span><span class="s">"sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"</span> <span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">&gt;&lt;/script&gt;</span>
-<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"</span> <span class="na">integrity=</span><span class="s">"sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"</span> <span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">&gt;&lt;/script&gt;</span>
-<span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"</span> <span class="na">integrity=</span><span class="s">"sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"</span> <span class="na">crossorigin=</span><span class="s">"anonymous"</span><span class="nt">&gt;&lt;/script&gt;</span></code></pre></figure>
+    <span class="h3">
+      <span class="badge badge-warning">Coming shortly!</span>
+    </span>
     <hr class="half-rule">
     <a class="btn btn-outline-primary" href="/docs/4.0/layout/overview/">Explore the docs</a>
   </div>
index c1b2325d1c25e7b97c2d67dc9ef0a103dd05a1e5..eefb55811ce145b3ed4cba5aab15c4ce70e652fe 100644 (file)
-<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <meta content="IE=edge" http-equiv=X-UA-Compatible> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content="Bootstrap, a sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development." name=description> <meta content="Mark Otto, Jacob Thornton, and Bootstrap contributors" name=author> <title> JavaScript &middot; Bootstrap </title> <link href=../dist/css/bootstrap.min.css rel=stylesheet> <link href="data:text/css;charset=utf-8," rel=stylesheet data-href=../dist/css/bootstrap-theme.min.css id=bs-theme-stylesheet> <link href=../assets/css/docs.min.css rel=stylesheet> <!--[if lt IE 9]><script src=../assets/js/ie8-responsive-file-warning.js></script><![endif]--> <script src=../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]--> <link href=/apple-touch-icon.png rel=apple-touch-icon> <link href=/favicon.ico rel=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*new Date,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> <a href=#content class="sr-only sr-only-focusable" id=skippy><div class=container><span class=skiplink-text>Skip to main content</span></div></a> <a href=https://v4-alpha.getbootstrap.com/ class=v4-tease>Aww yeah, Bootstrap 4 is coming!</a> <header class="bs-docs-nav navbar navbar-static-top" id=top> <div class=container> <div class=navbar-header> <button aria-controls=bs-navbar aria-expanded=false class="collapsed navbar-toggle" data-target=#bs-navbar data-toggle=collapse type=button> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=../ class=navbar-brand>Bootstrap</a> </div> <nav class="collapse navbar-collapse" id=bs-navbar> <ul class="nav navbar-nav"> <li> <a href=../getting-started/ >Getting started</a> </li> <li> <a href=../css/ >CSS</a> </li> <li> <a href=../components/ >Components</a> </li> <li class=active> <a href=../javascript/ >JavaScript</a> </li> <li> <a href=../customize/ >Customize</a> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href=http://themes.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Themes")'>Themes</a></li> <li><a href=https://jobs.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Jobs")'>Jobs</a></li> <li><a href=http://expo.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Expo")'>Expo</a></li> <li><a href=http://blog.getbootstrap.com onclick='ga("send","event","Navbar","Community links","Blog")'>Blog</a></li> </ul> </nav> </div> </header> <div class=bs-docs-header id=content tabindex=-1> <div class=container> <h1>JavaScript</h1> <p>Bring Bootstrap's components to life with over a dozen custom jQuery plugins. Easily include them all, or one by one.</p> <div id=carbonads-container><div class=carbonad><div id=azcarbon></div><script>var z=document.createElement("script");z.async=!0,z.src="http://engine.carbonads.com/z/32341/azcarbon_2_1_0_HORIZ";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(z,s)</script></div></div> </div> </div> <div class="container bs-docs-container"> <div class=row> <div class=col-md-9 role=main> <div class=bs-docs-section> <h1 class=page-header id=js-overview>Overview</h1> <h2 id=js-individual-compiled>Individual or compiled</h2> <p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files), or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>).</p> <div class="bs-callout bs-callout-danger" id=callout-overview-not-both> <h4>Using the compiled JavaScript</h4> <p>Both <code>bootstrap.js</code> and <code>bootstrap.min.js</code> contain all plugins in a single file. Include only one.</p> </div> <div class="bs-callout bs-callout-danger" id=callout-overview-dependencies> <h4>Plugin dependencies</h4> <p>Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included <strong>before</strong> the plugin files). <a href=https://github.com/twbs/bootstrap/blob/v3.3.7/bower.json>Consult our <code>bower.json</code></a> to see which versions of jQuery are supported.</p> </div> <h2 id=js-data-attrs>Data attributes</h2> <p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first-class API and should be your first consideration when using a plugin.</p> <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the document namespaced with <code>data-api</code>. This looks like this:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=nb>document</span><span class=p>).</span><span class=nx>off</span><span class=p>(</span><span class=s1>'.data-api'</span><span class=p>)</span></code></pre></figure> <p>Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=nb>document</span><span class=p>).</span><span class=nx>off</span><span class=p>(</span><span class=s1>'.alert.data-api'</span><span class=p>)</span></code></pre></figure> <div class="bs-callout bs-callout-danger" id=callout-overview-single-data> <h4>Only one plugin per element via data attributes</h4> <p>Don't use data attributes from multiple plugins on the same element. For example, a button cannot both have a tooltip and toggle a modal. To accomplish this, use a wrapping element.</p> </div> <h2 id=js-programmatic-api>Programmatic API</h2> <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'.btn.danger'</span><span class=p>).</span><span class=nx>button</span><span class=p>(</span><span class=s1>'toggle'</span><span class=p>).</span><span class=nx>addClass</span><span class=p>(</span><span class=s1>'fat'</span><span class=p>)</span></code></pre></figure> <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>()</span>                      <span class=c1>// initialized with defaults</span>
-<span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>({</span> <span class=na>keyboard</span><span class=p>:</span> <span class=kc>false</span> <span class=p>})</span>   <span class=c1>// initialized with no keyboard</span>
-<span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span>                <span class=c1>// initializes and invokes show immediately</span></code></pre></figure> <p>Each plugin also exposes its raw constructor on a <code>Constructor</code> property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel="popover"]').data('popover')</code>.</p> <h4>Default settings</h4> <p>You can change the default settings for a plugin by modifying the plugin's <code>Constructor.DEFAULTS</code> object:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>.</span><span class=nx>fn</span><span class=p>.</span><span class=nx>modal</span><span class=p>.</span><span class=nx>Constructor</span><span class=p>.</span><span class=nx>DEFAULTS</span><span class=p>.</span><span class=nx>keyboard</span> <span class=o>=</span> <span class=kc>false</span> <span class=c1>// changes default for the modal plugin's `keyboard` option to false</span></code></pre></figure> <h2 id=js-noconflict>No conflict</h2> <p>Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call <code>.noConflict</code> on the plugin you wish to revert the value of.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=kd>var</span> <span class=nx>bootstrapButton</span> <span class=o>=</span> <span class=nx>$</span><span class=p>.</span><span class=nx>fn</span><span class=p>.</span><span class=nx>button</span><span class=p>.</span><span class=nx>noConflict</span><span class=p>()</span> <span class=c1>// return $.fn.button to previously assigned value</span>
-<span class=nx>$</span><span class=p>.</span><span class=nx>fn</span><span class=p>.</span><span class=nx>bootstrapBtn</span> <span class=o>=</span> <span class=nx>bootstrapButton</span>            <span class=c1>// give $().bootstrapBtn the Bootstrap functionality</span></code></pre></figure> <h2 id=js-events>Events</h2> <p>Bootstrap provides custom events for most plugins' unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and its past participle form (ex. <code>shown</code>) is triggered on the completion of an action.</p> <p>As of 3.0.0, all Bootstrap events are namespaced.</p> <p>All infinitive events provide <code>preventDefault</code> functionality. This provides the ability to stop the execution of an action before it starts.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'show.bs.modal'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>(</span><span class=nx>e</span><span class=p>)</span> <span class=p>{</span>
-  <span class=k>if</span> <span class=p>(</span><span class=o>!</span><span class=nx>data</span><span class=p>)</span> <span class=k>return</span> <span class=nx>e</span><span class=p>.</span><span class=nx>preventDefault</span><span class=p>()</span> <span class=c1>// stops modal from being shown</span>
-<span class=p>})</span></code></pre></figure> <h2 id=js-version-nums>Version numbers</h2> <p>The version of each of Bootstrap's jQuery plugins can be accessed via the <code>VERSION</code> property of the plugin's constructor. For example, for the tooltip plugin:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>.</span><span class=nx>fn</span><span class=p>.</span><span class=nx>tooltip</span><span class=p>.</span><span class=nx>Constructor</span><span class=p>.</span><span class=nx>VERSION</span> <span class=c1>// =&gt; "3.3.7"</span></code></pre></figure> <h2 id=js-disabled>No special fallbacks when JavaScript is disabled</h2> <p>Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <a href=https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript><code>&lt;noscript&gt;</code></a> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.</p> <div class="bs-callout bs-callout-warning" id=callout-third-party-libs> <h4>Third-party libraries</h4> <p><strong>Bootstrap does not officially support third-party JavaScript libraries</strong> like Prototype or jQuery UI. Despite <code>.noConflict</code> and namespaced events, there may be compatibility problems that you need to fix on your own.</p> </div> </div> <div class=bs-docs-section> <h1 class=page-header id=transitions>Transitions <small>transition.js</small></h1> <h2>About transitions</h2> <p>For simple transition effects, include <code>transition.js</code> once alongside the other JS files. If you're using the compiled (or minified) <code>bootstrap.js</code>, there is no need to include this&mdash;it's already there.</p> <h2>What's inside</h2> <p>Transition.js is a basic helper for <code>transitionEnd</code> events as well as a CSS transition emulator. It's used by the other plugins to check for CSS transition support and to catch hanging transitions.</p> <h2>Disabling transitions</h2> <p>Transitions can be globally disabled using the following JavaScript snippet, which must come after <code>transition.js</code> (or <code>bootstrap.js</code> or <code>bootstrap.min.js</code>, as the case may be) has loaded:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>.</span><span class=nx>support</span><span class=p>.</span><span class=nx>transition</span> <span class=o>=</span> <span class=kc>false</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=modals>Modals <small>modal.js</small></h1> <p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p> <div class="bs-callout bs-callout-warning" id=callout-stacked-modals> <h4>Multiple open modals not supported</h4> <p>Be sure not to open a modal while another is still visible. Showing more than one modal at a time requires custom code.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-modal-markup-placement> <h4>Modal markup placement</h4> <p>Always try to place a modal's HTML code in a top-level position in your document to avoid other components affecting the modal's appearance and/or functionality.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-modal-mobile-caveats> <h4>Mobile device caveats</h4> <p>There are some caveats regarding using modals on mobile devices. <a href=../getting-started/#support-fixed-position-keyboards>See our browser support docs</a> for details.</p> </div> <p><strong class=text-danger>Due to how HTML5 defines its semantics, the <code>autofocus</code> HTML attribute has no effect in Bootstrap modals.</strong> To achieve the same effect, use some custom JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'shown.bs.modal'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=nx>$</span><span class=p>(</span><span class=s1>'#myInput'</span><span class=p>).</span><span class=nx>focus</span><span class=p>()</span>
-<span class=p>})</span></code></pre></figure> <h2 id=modals-examples>Examples</h2> <h3>Static example</h3> <p>A rendered modal with header, body, and set of actions in the footer.</p> <div class="bs-example bs-example-modal" data-example-id=static-modal> <div class=modal role=dialog tabindex=-1> <div class=modal-dialog role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title>Modal title</h4> </div> <div class=modal-body> <p>One fine body&hellip;</p> </div> <div class=modal-footer> <button type=button class="btn btn-default" data-dismiss=modal>Close</button> <button type=button class="btn btn-primary">Save changes</button> </div> </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-header"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"modal-title"</span><span class=nt>&gt;</span>Modal title<span class=nt>&lt;/h4&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-body"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;p&gt;</span>One fine body<span class=ni>&amp;hellip;</span><span class=nt>&lt;/p&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-footer"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span><span class=nt>&gt;</span>Close<span class=nt>&lt;/button&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Save changes<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal-content --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal-dialog --&gt;</span>
-<span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal --&gt;</span></code></pre></figure> <h3>Live demo</h3> <p>Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.</p> <div class="modal fade" role=dialog id=myModal tabindex=-1 aria-labelledby=myModalLabel> <div class=modal-dialog role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title id=myModalLabel>Modal title</h4> </div> <div class=modal-body> <h4>Text in a modal</h4> <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> <h4>Popover in a modal</h4> <p>This <a href=# class="btn btn-default popover-test" role=button title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on click.</p> <h4>Tooltips in a modal</h4> <p><a href=# class=tooltip-test title=Tooltip>This link</a> and <a href=# class=tooltip-test title=Tooltip>that link</a> should have tooltips on hover.</p> <hr> <h4>Overflowing text to show scroll behavior</h4> <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> </div> <div class=modal-footer> <button type=button class="btn btn-default" data-dismiss=modal>Close</button> <button type=button class="btn btn-primary">Save changes</button> </div> </div> </div> </div> <div class="bs-example bs-example-padded-bottom"> <button type=button class="btn btn-primary btn-lg" data-toggle=modal data-target=#myModal> Launch demo modal </button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Button trigger modal --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary btn-lg"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>"#myModal"</span><span class=nt>&gt;</span>
-  Launch demo modal
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=c>&lt;!-- Modal --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade"</span> <span class=na>id=</span><span class=s>"myModal"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"myModalLabel"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-header"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"modal-title"</span> <span class=na>id=</span><span class=s>"myModalLabel"</span><span class=nt>&gt;</span>Modal title<span class=nt>&lt;/h4&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-body"</span><span class=nt>&gt;</span>
-        ...
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-footer"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span><span class=nt>&gt;</span>Close<span class=nt>&lt;/button&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Save changes<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-modal-accessibility> <h4>Make modals accessible</h4> <p>Be sure to add <code>role="dialog"</code> and <code>aria-labelledby="..."</code>, referencing the modal title, to <code>.modal</code>, and <code>role="document"</code> to the <code>.modal-dialog</code> itself.</p> <p>Additionally, you may give a description of your modal dialog with <code>aria-describedby</code> on <code>.modal</code>.</p> </div> <div class="bs-callout bs-callout-info" id=callout-modal-youtube> <h4>Embedding YouTube videos</h4> <p>Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. <a href=https://stackoverflow.com/questions/18622508/bootstrap-3-and-youtube-in-modal>See this helpful Stack Overflow post</a> for more information.</p> </div> <h2 id=modals-sizes>Optional sizes</h2> <p>Modals have two optional sizes, available via modifier classes to be placed on a <code>.modal-dialog</code>.</p> <div class=bs-example> <button type=button class="btn btn-primary" data-toggle=modal data-target=.bs-example-modal-lg>Large modal</button> <button type=button class="btn btn-primary" data-toggle=modal data-target=.bs-example-modal-sm>Small modal</button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- Large modal --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>".bs-example-modal-lg"</span><span class=nt>&gt;</span>Large modal<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade bs-example-modal-lg"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"myLargeModalLabel"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog modal-lg"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      ...
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span>
-
-<span class=c>&lt;!-- Small modal --&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>".bs-example-modal-sm"</span><span class=nt>&gt;</span>Small modal<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade bs-example-modal-sm"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"mySmallModalLabel"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog modal-sm"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      ...
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="modal fade bs-example-modal-lg" role=dialog tabindex=-1 aria-labelledby=myLargeModalLabel> <div class="modal-dialog modal-lg" role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title id=myLargeModalLabel>Large modal</h4> </div> <div class=modal-body> ... </div> </div> </div> </div> <div class="modal fade bs-example-modal-sm" role=dialog tabindex=-1 aria-labelledby=mySmallModalLabel> <div class="modal-dialog modal-sm" role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title id=mySmallModalLabel>Small modal</h4> </div> <div class=modal-body> ... </div> </div> </div> </div> <h2 id=modals-remove-animation>Remove animation</h2> <p>For modals that simply appear rather than fade in to view, remove the <code>.fade</code> class from your modal markup.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=modals-grid-system>Using the grid system</h2> <p>To take advantage of the Bootstrap grid system within a modal, just nest <code>.row</code>s within the <code>.modal-body</code> and then use the normal grid system classes.</p> <div class="modal fade" role=dialog id=gridSystemModal tabindex=-1 aria-labelledby=gridModalLabel> <div class=modal-dialog role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title id=gridModalLabel>Modal title</h4> </div> <div class=modal-body> <div class=row> <div class=col-md-4>.col-md-4</div> <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div> </div> <div class=row> <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div> <div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div> </div> <div class=row> <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div> </div> <div class=row> <div class=col-sm-9> Level 1: .col-sm-9 <div class=row> <div class="col-xs-8 col-sm-6"> Level 2: .col-xs-8 .col-sm-6 </div> <div class="col-xs-4 col-sm-6"> Level 2: .col-xs-4 .col-sm-6 </div> </div> </div> </div> </div> <div class=modal-footer> <button type=button class="btn btn-default" data-dismiss=modal>Close</button> <button type=button class="btn btn-primary">Save changes</button> </div> </div> </div> </div> <div class="bs-example bs-example-padded-bottom"> <button type=button class="btn btn-primary btn-lg" data-toggle=modal data-target=#gridSystemModal> Launch demo modal </button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"gridSystemModalLabel"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-header"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"modal-title"</span> <span class=na>id=</span><span class=s>"gridSystemModalLabel"</span><span class=nt>&gt;</span>Modal title<span class=nt>&lt;/h4&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-body"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4"</span><span class=nt>&gt;</span>.col-md-4<span class=nt>&lt;/div&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-4 col-md-offset-4"</span><span class=nt>&gt;</span>.col-md-4 .col-md-offset-4<span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-3 col-md-offset-3"</span><span class=nt>&gt;</span>.col-md-3 .col-md-offset-3<span class=nt>&lt;/div&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-2 col-md-offset-4"</span><span class=nt>&gt;</span>.col-md-2 .col-md-offset-4<span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-md-6 col-md-offset-3"</span><span class=nt>&gt;</span>.col-md-6 .col-md-offset-3<span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-sm-9"</span><span class=nt>&gt;</span>
-            Level 1: .col-sm-9
-            <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"row"</span><span class=nt>&gt;</span>
-              <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-8 col-sm-6"</span><span class=nt>&gt;</span>
-                Level 2: .col-xs-8 .col-sm-6
-              <span class=nt>&lt;/div&gt;</span>
-              <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"col-xs-4 col-sm-6"</span><span class=nt>&gt;</span>
-                Level 2: .col-xs-4 .col-sm-6
-              <span class=nt>&lt;/div&gt;</span>
-            <span class=nt>&lt;/div&gt;</span>
-          <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-footer"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span><span class=nt>&gt;</span>Close<span class=nt>&lt;/button&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Save changes<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal-content --&gt;</span>
-  <span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal-dialog --&gt;</span>
-<span class=nt>&lt;/div&gt;</span><span class=c>&lt;!-- /.modal --&gt;</span></code></pre></figure> <h2 id=modals-related-target>Varying modal content based on trigger button</h2> <p>Have a bunch of buttons that all trigger the same modal, just with slightly different contents? Use <code>event.relatedTarget</code> and <a href=https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes>HTML <code>data-*</code> attributes</a> (possibly <a href=http://api.jquery.com/data/ >via jQuery</a>) to vary the contents of the modal depending on which button was clicked. See the Modal Events docs for details on <code>relatedTarget</code>,</p> <div class=bs-example> <button type=button class="btn btn-primary" data-toggle=modal data-target=#exampleModal data-whatever=@mdo>Open modal for @mdo</button> <button type=button class="btn btn-primary" data-toggle=modal data-target=#exampleModal data-whatever=@fat>Open modal for @fat</button> <button type=button class="btn btn-primary" data-toggle=modal data-target=#exampleModal data-whatever=@getbootstrap>Open modal for @getbootstrap</button> ...more buttons... <div class="modal fade" role=dialog id=exampleModal tabindex=-1 aria-labelledby=exampleModalLabel> <div class=modal-dialog role=document> <div class=modal-content> <div class=modal-header> <button type=button class=close data-dismiss=modal aria-label=Close><span aria-hidden=true>&times;</span></button> <h4 class=modal-title id=exampleModalLabel>New message</h4> </div> <div class=modal-body> <form> <div class=form-group> <label for=recipient-name class=control-label>Recipient:</label> <input class=form-control id=recipient-name> </div> <div class=form-group> <label for=message-text class=control-label>Message:</label> <textarea class=form-control id=message-text></textarea> </div> </form> </div> <div class=modal-footer> <button type=button class="btn btn-default" data-dismiss=modal>Close</button> <button type=button class="btn btn-primary">Send message</button> </div> </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>"#exampleModal"</span> <span class=na>data-whatever=</span><span class=s>"@mdo"</span><span class=nt>&gt;</span>Open modal for @mdo<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>"#exampleModal"</span> <span class=na>data-whatever=</span><span class=s>"@fat"</span><span class=nt>&gt;</span>Open modal for @fat<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>"#exampleModal"</span> <span class=na>data-whatever=</span><span class=s>"@getbootstrap"</span><span class=nt>&gt;</span>Open modal for @getbootstrap<span class=nt>&lt;/button&gt;</span>
-...more buttons...
-
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal fade"</span> <span class=na>id=</span><span class=s>"exampleModal"</span> <span class=na>tabindex=</span><span class=s>"-1"</span> <span class=na>role=</span><span class=s>"dialog"</span> <span class=na>aria-labelledby=</span><span class=s>"exampleModalLabel"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-dialog"</span> <span class=na>role=</span><span class=s>"document"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-content"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-header"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;&lt;/button&gt;</span>
-        <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"modal-title"</span> <span class=na>id=</span><span class=s>"exampleModalLabel"</span><span class=nt>&gt;</span>New message<span class=nt>&lt;/h4&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-body"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;form&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-            <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"recipient-name"</span> <span class=na>class=</span><span class=s>"control-label"</span><span class=nt>&gt;</span>Recipient:<span class=nt>&lt;/label&gt;</span>
-            <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"text"</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"recipient-name"</span><span class=nt>&gt;</span>
-          <span class=nt>&lt;/div&gt;</span>
-          <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"form-group"</span><span class=nt>&gt;</span>
-            <span class=nt>&lt;label</span> <span class=na>for=</span><span class=s>"message-text"</span> <span class=na>class=</span><span class=s>"control-label"</span><span class=nt>&gt;</span>Message:<span class=nt>&lt;/label&gt;</span>
-            <span class=nt>&lt;textarea</span> <span class=na>class=</span><span class=s>"form-control"</span> <span class=na>id=</span><span class=s>"message-text"</span><span class=nt>&gt;&lt;/textarea&gt;</span>
-          <span class=nt>&lt;/div&gt;</span>
-        <span class=nt>&lt;/form&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"modal-footer"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-dismiss=</span><span class=s>"modal"</span><span class=nt>&gt;</span>Close<span class=nt>&lt;/button&gt;</span>
-        <span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>Send message<span class=nt>&lt;/button&gt;</span>
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#exampleModal'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'show.bs.modal'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>(</span><span class=nx>event</span><span class=p>)</span> <span class=p>{</span>
-  <span class=kd>var</span> <span class=nx>button</span> <span class=o>=</span> <span class=nx>$</span><span class=p>(</span><span class=nx>event</span><span class=p>.</span><span class=nx>relatedTarget</span><span class=p>)</span> <span class=c1>// Button that triggered the modal</span>
-  <span class=kd>var</span> <span class=nx>recipient</span> <span class=o>=</span> <span class=nx>button</span><span class=p>.</span><span class=nx>data</span><span class=p>(</span><span class=s1>'whatever'</span><span class=p>)</span> <span class=c1>// Extract info from data-* attributes</span>
-  <span class=c1>// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).</span>
-  <span class=c1>// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.</span>
-  <span class=kd>var</span> <span class=nx>modal</span> <span class=o>=</span> <span class=nx>$</span><span class=p>(</span><span class=k>this</span><span class=p>)</span>
-  <span class=nx>modal</span><span class=p>.</span><span class=nx>find</span><span class=p>(</span><span class=s1>'.modal-title'</span><span class=p>).</span><span class=nx>text</span><span class=p>(</span><span class=s1>'New message to '</span> <span class=o>+</span> <span class=nx>recipient</span><span class=p>)</span>
-  <span class=nx>modal</span><span class=p>.</span><span class=nx>find</span><span class=p>(</span><span class=s1>'.modal-body input'</span><span class=p>).</span><span class=nx>val</span><span class=p>(</span><span class=nx>recipient</span><span class=p>)</span>
-<span class=p>})</span></code></pre></figure> <h2 id=modals-usage>Usage</h2> <p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.modal-open</code> to the <code>&lt;body&gt;</code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p> <h3>Via data attributes</h3> <p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>data-target=</span><span class=s>"#myModal"</span><span class=nt>&gt;</span>Launch modal<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h3>Via JavaScript</h3> <p>Call a modal with id <code>myModal</code> with a single line of JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=nx>options</span><span class=p>)</span></code></pre></figure> <h3 id=modals-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>type</th> <th>default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>backdrop</td> <td>boolean or the string <code>'static'</code></td> <td>true</td> <td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td> </tr> <tr> <td>keyboard</td> <td>boolean</td> <td>true</td> <td>Closes the modal when escape key is pressed</td> </tr> <tr> <td>show</td> <td>boolean</td> <td>true</td> <td>Shows the modal when initialized.</td> </tr> <tr> <td>remote</td> <td>path</td> <td>false</td> <td> <p><strong class=text-danger>This option is deprecated since v3.3.0 and has been removed in v4.</strong> We recommend instead using client-side templating or a data binding framework, or calling <a href=http://api.jquery.com/load/ >jQuery.load</a> yourself.</p> <p>If a remote URL is provided, <strong>content will be loaded one time</strong> via jQuery's <code>load</code> method and injected into the <code>.modal-content</code> div. If you're using the data-api, you may alternatively use the <code>href</code> attribute to specify the remote source. An example of this is shown below:</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>data-toggle=</span><span class=s>"modal"</span> <span class=na>href=</span><span class=s>"remote.html"</span> <span class=na>data-target=</span><span class=s>"#modal"</span><span class=nt>&gt;</span>Click me<span class=nt>&lt;/a&gt;</span></code></pre></figure> </td> </tr> </tbody> </table> </div> <h3 id=modals-methods>Methods</h3> <h4><code>.modal(options)</code></h4> <p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>({</span>
-  <span class=na>keyboard</span><span class=p>:</span> <span class=kc>false</span>
-<span class=p>})</span></code></pre></figure> <h4><code>.modal('toggle')</code></h4> <p>Manually toggles a modal. <strong>Returns to the caller before the modal has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.modal</code> or <code>hidden.bs.modal</code> event occurs).</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=s1>'toggle'</span><span class=p>)</span></code></pre></figure> <h4><code>.modal('show')</code></h4> <p>Manually opens a modal. <strong>Returns to the caller before the modal has actually been shown</strong> (i.e. before the <code>shown.bs.modal</code> event occurs).</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span></code></pre></figure> <h4><code>.modal('hide')</code></h4> <p>Manually hides a modal. <strong>Returns to the caller before the modal has actually been hidden</strong> (i.e. before the <code>hidden.bs.modal</code> event occurs).</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=s1>'hide'</span><span class=p>)</span></code></pre></figure> <h4><code>.modal('handleUpdate')</code></h4> <p>Readjusts the modal's positioning to counter a scrollbar in case one should appear, which would make the modal jump to the left.</p> <p>Only needed when the height of the modal changes while it is open.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>modal</span><span class=p>(</span><span class=s1>'handleUpdate'</span><span class=p>)</span></code></pre></figure> <h3 id=modals-events>Events</h3> <p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p> <p>All modal events are fired at the modal itself (i.e. at the <code>&lt;div class="modal"&gt;</code>).</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.modal</td> <td>This event fires immediately when the <code>show</code> instance method is called. If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td> </tr> <tr> <td>shown.bs.modal</td> <td>This event is fired when the modal has been made visible to the user (will wait for CSS transitions to complete). If caused by a click, the clicked element is available as the <code>relatedTarget</code> property of the event.</td> </tr> <tr> <td>hide.bs.modal</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> </tr> <tr> <td>hidden.bs.modal</td> <td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>loaded.bs.modal</td> <td>This event is fired when the modal has loaded content using the <code>remote</code> option.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myModal'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'hidden.bs.modal'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>(</span><span class=nx>e</span><span class=p>)</span> <span class=p>{</span>
-  <span class=c1>// do something...</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=dropdowns>Dropdowns <small>dropdown.js</small></h1> <h2 id=dropdowns-examples>Examples</h2> <p>Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.</p> <h3>Within a navbar</h3> <div class=bs-example> <nav class="navbar navbar-default navbar-static" id=navbar-example> <div class=container-fluid> <div class=navbar-header> <button class="collapsed navbar-toggle" type=button data-toggle=collapse data-target=.bs-example-js-navbar-collapse> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Project Name</a> </div> <div class="collapse navbar-collapse bs-example-js-navbar-collapse"> <ul class="nav navbar-nav"> <li class=dropdown> <a href=# class=dropdown-toggle id=drop1 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu aria-labelledby=drop1> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> <li class=dropdown> <a href=# class=dropdown-toggle id=drop2 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu aria-labelledby=drop2> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li id=fat-menu class=dropdown> <a href=# class=dropdown-toggle id=drop3 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu aria-labelledby=drop3> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> </div> </div> </nav> </div> <h3>Within pills</h3> <div class=bs-example> <ul class="nav nav-pills" role=tablist> <li role=presentation class=active><a href=#>Regular link</a></li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle id=drop4 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu id=menu1 aria-labelledby=drop4> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle id=drop5 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu id=menu2 aria-labelledby=drop5> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle id=drop6 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false> Dropdown <span class=caret></span> </a> <ul class=dropdown-menu id=menu3 aria-labelledby=drop6> <li><a href=#>Action</a></li> <li><a href=#>Another action</a></li> <li><a href=#>Something else here</a></li> <li role=separator class=divider></li> <li><a href=#>Separated link</a></li> </ul> </li> </ul> </div> <h2 id=dropdowns-usage>Usage</h2> <p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item.</p> <p>On mobile devices, opening a dropdown adds a <code>.dropdown-backdrop</code> as a tap area for closing dropdown menus when tapping outside the menu, a requirement for proper iOS support. <strong class=text-danger>This means that switching from an open dropdown menu to a different dropdown menu requires an extra tap on mobile.</strong></p> <p>Note: The <code>data-toggle="dropdown"</code> attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.</p> <h3>Via data attributes</h3> <p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;button</span> <span class=na>id=</span><span class=s>"dLabel"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Dropdown trigger
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/button&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dLabel"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>To keep URLs intact with link buttons, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"dropdown"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>id=</span><span class=s>"dLabel"</span> <span class=na>data-target=</span><span class=s>"#"</span> <span class=na>href=</span><span class=s>"http://example.com"</span> <span class=na>data-toggle=</span><span class=s>"dropdown"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>aria-haspopup=</span><span class=s>"true"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span><span class=nt>&gt;</span>
-    Dropdown trigger
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"caret"</span><span class=nt>&gt;&lt;/span&gt;</span>
-  <span class=nt>&lt;/a&gt;</span>
-
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"dropdown-menu"</span> <span class=na>aria-labelledby=</span><span class=s>"dLabel"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/ul&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3>Via JavaScript</h3> <p>Call the dropdowns via JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'.dropdown-toggle'</span><span class=p>).</span><span class=nx>dropdown</span><span class=p>()</span></code></pre></figure> <div class="bs-callout bs-callout-info" id=callout-dropdowns-data-required> <h4><code>data-toggle="dropdown"</code> still required</h4> <p>Regardless of whether you call your dropdown via JavaScript or instead use the data-api, <code>data-toggle="dropdown"</code> is always required to be present on the dropdown's trigger element.</p> </div> <h3 id=dropdowns-options>Options</h3> <p><em>None</em></p> <h3 id=dropdowns-methods>Methods</h3> <h4><code>$().dropdown('toggle')</code></h4> <p>Toggles the dropdown menu of a given navbar or tabbed navigation.</p> <h3 id=dropdowns-events>Events</h3> <p>All dropdown events are fired at the <code>.dropdown-menu</code>'s parent element.</p> <p>All dropdown events have a <code>relatedTarget</code> property, whose value is the toggling anchor element.</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.dropdown</td> <td>This event fires immediately when the show instance method is called.</td> </tr> <tr> <td>shown.bs.dropdown</td> <td>This event is fired when the dropdown has been made visible to the user (will wait for CSS transitions, to complete).</td> </tr> <tr> <td>hide.bs.dropdown</td> <td>This event is fired immediately when the hide instance method has been called.</td> </tr> <tr> <td>hidden.bs.dropdown</td> <td>This event is fired when the dropdown has finished being hidden from the user (will wait for CSS transitions, to complete).</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myDropdown'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'show.bs.dropdown'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=scrollspy>ScrollSpy <small>scrollspy.js</small></h1> <h2 id=scrollspy-examples>Example in navbar</h2> <p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p> <div class=bs-example data-example-id=embedded-scrollspy> <nav class="navbar navbar-default navbar-static" id=navbar-example2> <div class=container-fluid> <div class=navbar-header> <button class="collapsed navbar-toggle" type=button data-toggle=collapse data-target=.bs-example-js-navbar-scrollspy> <span class=sr-only>Toggle navigation</span> <span class=icon-bar></span> <span class=icon-bar></span> <span class=icon-bar></span> </button> <a href=# class=navbar-brand>Project Name</a> </div> <div class="collapse navbar-collapse bs-example-js-navbar-scrollspy"> <ul class="nav navbar-nav"> <li><a href=#fat>@fat</a></li> <li><a href=#mdo>@mdo</a></li> <li class=dropdown> <a href=# class=dropdown-toggle id=navbarDrop1 data-toggle=dropdown role=button aria-haspopup=true aria-expanded=false>Dropdown <span class=caret></span></a> <ul class=dropdown-menu aria-labelledby=navbarDrop1> <li><a href=#one>one</a></li> <li><a href=#two>two</a></li> <li role=separator class=divider></li> <li><a href=#three>three</a></li> </ul> </li> </ul> </div> </div> </nav> <div class=scrollspy-example data-spy=scroll data-target=#navbar-example2 data-offset=0> <h4 id=fat>@fat</h4> <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p> <h4 id=mdo>@mdo</h4> <p>Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.</p> <h4 id=one>one</h4> <p>Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.</p> <h4 id=two>two</h4> <p>In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.</p> <h4 id=three>three</h4> <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p> <p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats. </p> </div> </div> <h2 id=scrollspy-usage>Usage</h2> <div class="bs-callout bs-callout-warning" id=callout-scrollspy-needs-nav> <h4>Requires Bootstrap nav</h4> <p>Scrollspy currently requires the use of a <a href=../components/#nav>Bootstrap nav component</a> for proper highlighting of active links.</p> </div> <div class="bs-callout bs-callout-danger" id=callout-scrollspy-target-ids> <h4>Resolvable ID targets required</h4> <p>Navbar links must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the DOM like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>.</p> </div> <div class="bs-callout bs-callout-info" id=callout-scrollspy-invisible-targets> <h4>Non-<code>:visible</code> target elements ignored</h4> <p>Target elements that are not <a href=http://api.jquery.com/visible-selector/ ><code>:visible</code> according to jQuery</a> will be ignored and their corresponding nav items will never be highlighted.</p> </div> <h3>Requires relative positioning</h3> <p>No matter the implementation method, scrollspy requires the use of <code>position: relative;</code> on the element you're spying on. In most cases this is the <code>&lt;body&gt;</code>. When scrollspying on elements other than the <code>&lt;body&gt;</code>, be sure to have a <code>height</code> set and <code>overflow-y: scroll;</code> applied.</p> <h3>Via data attributes</h3> <p>To easily add scrollspy behavior to your topbar navigation, add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the <code>&lt;body&gt;</code>). Then add the <code>data-target</code> attribute with the ID or class of the parent element of any Bootstrap <code>.nav</code> component.</p> <figure class=highlight><pre><code class=language-css data-lang=css><span class=nt>body</span> <span class=p>{</span>
-  <span class=nl>position</span><span class=p>:</span> <span class=nb>relative</span><span class=p>;</span>
-<span class=p>}</span></code></pre></figure> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;body</span> <span class=na>data-spy=</span><span class=s>"scroll"</span> <span class=na>data-target=</span><span class=s>"#navbar-example"</span><span class=nt>&gt;</span>
-  ...
-  <span class=nt>&lt;div</span> <span class=na>id=</span><span class=s>"navbar-example"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-tabs"</span> <span class=na>role=</span><span class=s>"tablist"</span><span class=nt>&gt;</span>
-      ...
-    <span class=nt>&lt;/ul&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  ...
-<span class=nt>&lt;/body&gt;</span></code></pre></figure> <h3>Via JavaScript</h3> <p>After adding <code>position: relative;</code> in your CSS, call the scrollspy via JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'body'</span><span class=p>).</span><span class=nx>scrollspy</span><span class=p>({</span> <span class=na>target</span><span class=p>:</span> <span class=s1>'#navbar-example'</span> <span class=p>})</span></code></pre></figure> <h3 id=scrollspy-methods>Methods</h3> <h4><code>.scrollspy('refresh')</code></h4> <p>When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'[data-spy="scroll"]'</span><span class=p>).</span><span class=nx>each</span><span class=p>(</span><span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=kd>var</span> <span class=nx>$spy</span> <span class=o>=</span> <span class=nx>$</span><span class=p>(</span><span class=k>this</span><span class=p>).</span><span class=nx>scrollspy</span><span class=p>(</span><span class=s1>'refresh'</span><span class=p>)</span>
-<span class=p>})</span></code></pre></figure> <h3 id=scrollspy-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>type</th> <th>default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>offset</td> <td>number</td> <td>10</td> <td>Pixels to offset from top when calculating position of scroll.</td> </tr> </tbody> </table> </div> <h3 id=scrollspy-events>Events</h3> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>activate.bs.scrollspy</td> <td>This event fires whenever a new item becomes activated by the scrollspy.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myScrollspy'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'activate.bs.scrollspy'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=tabs>Togglable tabs <small>tab.js</small></h1> <h2 id=tabs-examples>Example tabs</h2> <p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus. <strong>Nested tabs are not supported.</strong></p> <div class="bs-example bs-example-tabs" data-example-id=togglable-tabs> <ul class="nav nav-tabs" id=myTabs role=tablist> <li role=presentation class=active><a href=#home id=home-tab role=tab data-toggle=tab aria-controls=home aria-expanded=true>Home</a></li> <li role=presentation><a href=#profile role=tab id=profile-tab data-toggle=tab aria-controls=profile>Profile</a></li> <li role=presentation class=dropdown> <a href=# class=dropdown-toggle id=myTabDrop1 data-toggle=dropdown aria-controls=myTabDrop1-contents>Dropdown <span class=caret></span></a> <ul class=dropdown-menu aria-labelledby=myTabDrop1 id=myTabDrop1-contents> <li><a href=#dropdown1 role=tab id=dropdown1-tab data-toggle=tab aria-controls=dropdown1>@fat</a></li> <li><a href=#dropdown2 role=tab id=dropdown2-tab data-toggle=tab aria-controls=dropdown2>@mdo</a></li> </ul> </li> </ul> <div class=tab-content id=myTabContent> <div class="tab-pane fade in active" role=tabpanel id=home aria-labelledby=home-tab> <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> </div> <div class="tab-pane fade" role=tabpanel id=profile aria-labelledby=profile-tab> <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p> </div> <div class="tab-pane fade" role=tabpanel id=dropdown1 aria-labelledby=dropdown1-tab> <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p> </div> <div class="tab-pane fade" role=tabpanel id=dropdown2 aria-labelledby=dropdown2-tab> <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p> </div> </div> </div> <div class="bs-callout bs-callout-info" id=callout-tabs-extends-component> <h4>Extends tabbed navigation</h4> <p>This plugin extends the <a href=../components/#nav-tabs>tabbed navigation component</a> to add tabbable areas.</p> </div> <h2 id=tabs-usage>Usage</h2> <p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myTabs a'</span><span class=p>).</span><span class=nx>click</span><span class=p>(</span><span class=kd>function</span> <span class=p>(</span><span class=nx>e</span><span class=p>)</span> <span class=p>{</span>
-  <span class=nx>e</span><span class=p>.</span><span class=nx>preventDefault</span><span class=p>()</span>
-  <span class=nx>$</span><span class=p>(</span><span class=k>this</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span>
-<span class=p>})</span></code></pre></figure> <p>You can activate individual tabs in several ways:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myTabs a[href="#profile"]'</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span> <span class=c1>// Select tab by name</span>
-<span class=nx>$</span><span class=p>(</span><span class=s1>'#myTabs a:first'</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span> <span class=c1>// Select first tab</span>
-<span class=nx>$</span><span class=p>(</span><span class=s1>'#myTabs a:last'</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span> <span class=c1>// Select last tab</span>
-<span class=nx>$</span><span class=p>(</span><span class=s1>'#myTabs li:eq(2) a'</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span> <span class=c1>// Select third tab (0-indexed)</span></code></pre></figure> <h3>Markup</h3> <p>You can activate a tab or pill navigation without writing any JavaScript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the Bootstrap <a href=../components/#nav-tabs>tab styling</a>, while adding the <code>nav</code> and <code>nav-pills</code> classes will apply <a href=../components/#nav-pills>pill styling</a>.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div&gt;</span>
-
-  <span class=c>&lt;!-- Nav tabs --&gt;</span>
-  <span class=nt>&lt;ul</span> <span class=na>class=</span><span class=s>"nav nav-tabs"</span> <span class=na>role=</span><span class=s>"tablist"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#home"</span> <span class=na>aria-controls=</span><span class=s>"home"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>data-toggle=</span><span class=s>"tab"</span><span class=nt>&gt;</span>Home<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#profile"</span> <span class=na>aria-controls=</span><span class=s>"profile"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>data-toggle=</span><span class=s>"tab"</span><span class=nt>&gt;</span>Profile<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#messages"</span> <span class=na>aria-controls=</span><span class=s>"messages"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>data-toggle=</span><span class=s>"tab"</span><span class=nt>&gt;</span>Messages<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>role=</span><span class=s>"presentation"</span><span class=nt>&gt;&lt;a</span> <span class=na>href=</span><span class=s>"#settings"</span> <span class=na>aria-controls=</span><span class=s>"settings"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>data-toggle=</span><span class=s>"tab"</span><span class=nt>&gt;</span>Settings<span class=nt>&lt;/a&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ul&gt;</span>
-
-  <span class=c>&lt;!-- Tab panes --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"tab-content"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane active"</span> <span class=na>id=</span><span class=s>"home"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane"</span> <span class=na>id=</span><span class=s>"profile"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane"</span> <span class=na>id=</span><span class=s>"messages"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane"</span> <span class=na>id=</span><span class=s>"settings"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3>Fade effect</h3> <p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>. The first tab pane must also have <code>.in</code> to make the initial content visible.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"tab-content"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane fade in active"</span> <span class=na>id=</span><span class=s>"home"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane fade"</span> <span class=na>id=</span><span class=s>"profile"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane fade"</span> <span class=na>id=</span><span class=s>"messages"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>class=</span><span class=s>"tab-pane fade"</span> <span class=na>id=</span><span class=s>"settings"</span><span class=nt>&gt;</span>...<span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3 id=tabs-methods>Methods</h3> <h4><code>$().tab</code></h4> <p> Activates a tab element and content container. Tab should have either a <code>data-target</code> or an <code>href</code> targeting a container node in the DOM. In the above examples, the tabs are the <code>&lt;a&gt;</code>s with <code>data-toggle="tab"</code> attributes. </p> <h4><code>.tab('show')</code></h4> <p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden. <strong>Returns to the caller before the tab pane has actually been shown</strong> (i.e. before the <code>shown.bs.tab</code> event occurs).</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#someTab'</span><span class=p>).</span><span class=nx>tab</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span></code></pre></figure> <h3 id=tabs-events>Events</h3> <p>When showing a new tab, the events fire in the following order:</p> <ol> <li><code>hide.bs.tab</code> (on the current active tab)</li> <li><code>show.bs.tab</code> (on the to-be-shown tab)</li> <li><code>hidden.bs.tab</code> (on the previous active tab, the same one as for the <code>hide.bs.tab</code> event)</li> <li><code>shown.bs.tab</code> (on the newly-active just-shown tab, the same one as for the <code>show.bs.tab</code> event)</li> </ol> <p>If no tab was already active, then the <code>hide.bs.tab</code> and <code>hidden.bs.tab</code> events will not be fired.</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.tab</td> <td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td> </tr> <tr> <td>shown.bs.tab</td> <td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td> </tr> <tr> <td>hide.bs.tab</td> <td>This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the current active tab and the new soon-to-be-active tab, respectively.</td> </tr> <tr> <td>hidden.bs.tab</td> <td>This event fires after a new tab is shown (and thus the previous active tab is hidden). Use <code>event.target</code> and <code>event.relatedTarget</code> to target the previous active tab and the new active tab, respectively.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'a[data-toggle="tab"]'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'shown.bs.tab'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>(</span><span class=nx>e</span><span class=p>)</span> <span class=p>{</span>
-  <span class=nx>e</span><span class=p>.</span><span class=nx>target</span> <span class=c1>// newly activated tab</span>
-  <span class=nx>e</span><span class=p>.</span><span class=nx>relatedTarget</span> <span class=c1>// previous active tab</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=tooltips>Tooltips <small>tooltip.js</small></h1> <p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.</p> <p>Tooltips with zero-length titles are never displayed.</p> <h2 id=tooltips-examples>Examples</h2> <p>Hover over the links below to see tooltips:</p> <div class="bs-example tooltip-demo"> <p>Tight pants next level keffiyeh <a href=# data-toggle=tooltip title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href=# data-toggle=tooltip title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href=# data-toggle=tooltip title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href=# data-toggle=tooltip title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p> </div> <h3>Static tooltip</h3> <p>Four options are available: top, right, bottom, and left aligned.</p> <div class="bs-example bs-example-tooltip" data-example-id=static-tooltips> <div class="tooltip left" role=tooltip> <div class=tooltip-arrow></div> <div class=tooltip-inner> Tooltip on the left </div> </div> <div class="tooltip top" role=tooltip> <div class=tooltip-arrow></div> <div class=tooltip-inner> Tooltip on the top </div> </div> <div class="tooltip bottom" role=tooltip> <div class=tooltip-arrow></div> <div class=tooltip-inner> Tooltip on the bottom </div> </div> <div class="tooltip right" role=tooltip> <div class=tooltip-arrow></div> <div class=tooltip-inner> Tooltip on the right </div> </div> </div> <h3>Four directions</h3> <div class="bs-example tooltip-demo"> <div class=bs-example-tooltips> <button type=button class="btn btn-default" data-toggle=tooltip data-placement=left title="Tooltip on left">Tooltip on left</button> <button type=button class="btn btn-default" data-toggle=tooltip data-placement=top title="Tooltip on top">Tooltip on top</button> <button type=button class="btn btn-default" data-toggle=tooltip data-placement=bottom title="Tooltip on bottom">Tooltip on bottom</button> <button type=button class="btn btn-default" data-toggle=tooltip data-placement=right title="Tooltip on right">Tooltip on right</button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-toggle=</span><span class=s>"tooltip"</span> <span class=na>data-placement=</span><span class=s>"left"</span> <span class=na>title=</span><span class=s>"Tooltip on left"</span><span class=nt>&gt;</span>Tooltip on left<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-toggle=</span><span class=s>"tooltip"</span> <span class=na>data-placement=</span><span class=s>"top"</span> <span class=na>title=</span><span class=s>"Tooltip on top"</span><span class=nt>&gt;</span>Tooltip on top<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-toggle=</span><span class=s>"tooltip"</span> <span class=na>data-placement=</span><span class=s>"bottom"</span> <span class=na>title=</span><span class=s>"Tooltip on bottom"</span><span class=nt>&gt;</span>Tooltip on bottom<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-toggle=</span><span class=s>"tooltip"</span> <span class=na>data-placement=</span><span class=s>"right"</span> <span class=na>title=</span><span class=s>"Tooltip on right"</span><span class=nt>&gt;</span>Tooltip on right<span class=nt>&lt;/button&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-danger" id=callout-tooltip-opt-in> <h4>Opt-in functionality</h4> <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p> <p>One way to initialize all tooltips on a page would be to select them by their <code>data-toggle</code> attribute:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=nx>$</span><span class=p>(</span><span class=s1>'[data-toggle="tooltip"]'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>()</span>
-<span class=p>})</span></code></pre></figure> </div> <h2 id=tooltips-usage>Usage</h2> <p>The tooltip plugin generates content and markup on demand, and by default places tooltips after their trigger element.</p> <p>Trigger the tooltip via JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#example'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>(</span><span class=nx>options</span><span class=p>)</span></code></pre></figure> <h3>Markup</h3> <p>The required markup for a tooltip is only a <code>data</code> attribute and <code>title</code> on the HTML element you wish to have a tooltip. The generated markup of a tooltip is rather simple, though it does require a position (by default, set to <code>top</code> by the plugin).</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=c>&lt;!-- HTML to write --&gt;</span>
-<span class=nt>&lt;a</span> <span class=na>href=</span><span class=s>"#"</span> <span class=na>data-toggle=</span><span class=s>"tooltip"</span> <span class=na>title=</span><span class=s>"Some tooltip text!"</span><span class=nt>&gt;</span>Hover over me<span class=nt>&lt;/a&gt;</span>
-
-<span class=c>&lt;!-- Generated markup by the plugin --&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"tooltip top"</span> <span class=na>role=</span><span class=s>"tooltip"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"tooltip-arrow"</span><span class=nt>&gt;&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"tooltip-inner"</span><span class=nt>&gt;</span>
-    Some tooltip text!
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-warning" id=callout-tooltip-multiline> <h4>Multiple-line links</h4> <p>Sometimes you want to add a tooltip to a hyperlink that wraps multiple lines. The default behavior of the tooltip plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-tooltip-groups> <h4>Tooltips in button groups, input groups, and tables require special setting</h4> <p>When using tooltips on elements within a <code>.btn-group</code> or an <code>.input-group</code>, or on table-related elements (<code>&lt;td&gt;</code>, <code>&lt;th&gt;</code>, <code>&lt;tr&gt;</code>, <code>&lt;thead&gt;</code>, <code>&lt;tbody&gt;</code>, <code>&lt;tfoot&gt;</code>), you'll have to specify the option <code>container: 'body'</code> (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip is triggered).</p> </div> <div class="bs-callout bs-callout-warning" id=callout-tooltip-hidden> <h4>Don't try to show tooltips on hidden elements</h4> <p>Invoking <code>$(...).tooltip('show')</code> when the target element is <code>display: none;</code> will cause the tooltip to be incorrectly positioned.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-tooltip-accessibility> <h4>Accessible tooltips for keyboard and assistive technology users</h4> <p>For users navigating with a keyboard, and in particular users of assistive technologies, you should only add tooltips to keyboard-focusable elements such as links, form controls, or any arbitrary element with a <code>tabindex="0"</code> attribute.</p> </div> <div class="bs-callout bs-callout-info" id=callout-tooltip-disabled> <h4>Tooltips on disabled elements require wrapper elements</h4> <p>To add a tooltip to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> and apply the tooltip to that <code>&lt;div&gt;</code> instead.</p> </div> <h3 id=tooltips-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>animation</td> <td>boolean</td> <td>true</td> <td>Apply a CSS fade transition to the tooltip</td> </tr> <tr> <td>container</td> <td>string | false</td> <td>false</td> <td> <p>Appends the tooltip to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the tooltip in the flow of the document near the triggering element - which will prevent the tooltip from floating away from the triggering element during a window resize.</p> </td> </tr> <tr> <td>delay</td> <td>number | object</td> <td>0</td> <td> <p>Delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p> <p>If a number is supplied, delay is applied to both hide/show</p> <p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p> </td> </tr> <tr> <td>html</td> <td>boolean</td> <td>false</td> <td>Insert HTML into the tooltip. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td> </tr> <tr> <td>placement</td> <td>string | function</td> <td>'top'</td> <td> <p>How to position the tooltip - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the tooltip. For example, if placement is "auto left", the tooltip will display to the left when possible, otherwise it will display right.</p> <p>When a function is used to determine the placement, it is called with the tooltip DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the tooltip instance.</p> </td> </tr> <tr> <td>selector</td> <td>string</td> <td>false</td> <td>If a selector is provided, tooltip objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have tooltips added. See <a href=https://github.com/twbs/bootstrap/issues/4215>this</a> and <a href=http://jsbin.com/zopod/1/edit>an informative example</a>.</td> </tr> <tr> <td>template</td> <td>string</td> <td><code>'&lt;div class="tooltip" role="tooltip"&gt;&lt;div class="tooltip-arrow"&gt;&lt;/div&gt;&lt;div class="tooltip-inner"&gt;&lt;/div&gt;&lt;/div&gt;'</code></td> <td> <p>Base HTML to use when creating the tooltip.</p> <p>The tooltip's <code>title</code> will be injected into the <code>.tooltip-inner</code>.</p> <p><code>.tooltip-arrow</code> will become the tooltip's arrow.</p> <p>The outermost wrapper element should have the <code>.tooltip</code> class.</p> </td> </tr> <tr> <td>title</td> <td>string | function</td> <td>''</td> <td> <p>Default title value if <code>title</code> attribute isn't present.</p> <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the tooltip is attached to.</p> </td> </tr> <tr> <td>trigger</td> <td>string</td> <td>'hover focus'</td> <td>How tooltip is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. <code>manual</code> cannot be combined with any other trigger.</td> </tr> <tr> <td>viewport</td> <td>string | object | function</td> <td>{ selector: 'body', padding: 0 }</td> <td> <p>Keeps the tooltip within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p> <p>If a function is given, it is called with the triggering element DOM node as its only argument. The <code>this</code> context is set to the tooltip instance.</p> </td> </tr> </tbody> </table> </div> <div class="bs-callout bs-callout-info" id=callout-tooltip-data> <h4>Data attributes for individual tooltips</h4> <p>Options for individual tooltips can alternatively be specified through the use of data attributes, as explained above.</p> </div> <h3 id=tooltips-methods>Methods</h3> <h4><code>$().tooltip(options)</code></h4> <p>Attaches a tooltip handler to an element collection.</p> <h4><code>.tooltip('show')</code></h4> <p>Reveals an element's tooltip. <strong>Returns to the caller before the tooltip has actually been shown</strong> (i.e. before the <code>shown.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip. Tooltips with zero-length titles are never displayed.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span></code></pre></figure> <h4><code>.tooltip('hide')</code></h4> <p>Hides an element's tooltip. <strong>Returns to the caller before the tooltip has actually been hidden</strong> (i.e. before the <code>hidden.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>(</span><span class=s1>'hide'</span><span class=p>)</span></code></pre></figure> <h4><code>.tooltip('toggle')</code></h4> <p>Toggles an element's tooltip. <strong>Returns to the caller before the tooltip has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.tooltip</code> or <code>hidden.bs.tooltip</code> event occurs). This is considered a "manual" triggering of the tooltip.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>(</span><span class=s1>'toggle'</span><span class=p>)</span></code></pre></figure> <h4><code>.tooltip('destroy')</code></h4> <p>Hides and destroys an element's tooltip. Tooltips that use delegation (which are created using <a href=#tooltips-options>the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>tooltip</span><span class=p>(</span><span class=s1>'destroy'</span><span class=p>)</span></code></pre></figure> <h3 id=tooltips-events>Events</h3> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.tooltip</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td> </tr> <tr> <td>shown.bs.tooltip</td> <td>This event is fired when the tooltip has been made visible to the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>hide.bs.tooltip</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> </tr> <tr> <td>hidden.bs.tooltip</td> <td>This event is fired when the tooltip has finished being hidden from the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>inserted.bs.tooltip</td> <td>This event is fired after the <code>show.bs.tooltip</code> event when the tooltip template has been added to the DOM.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myTooltip'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'hidden.bs.tooltip'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=popovers>Popovers <small>popover.js</small></h1> <p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p> <p>Popovers whose both title and content are zero-length are never displayed.</p> <div class="bs-callout bs-callout-danger" id=callout-popover-needs-tooltip> <h4>Plugin dependency</h4> <p>Popovers require the <a href=#tooltips>tooltip plugin</a> to be included in your version of Bootstrap.</p> </div> <div class="bs-callout bs-callout-danger" id=callout-popover-opt-in> <h4>Opt-in functionality</h4> <p>For performance reasons, the Tooltip and Popover data-apis are opt-in, meaning <strong>you must initialize them yourself</strong>.</p> <p>One way to initialize all popovers on a page would be to select them by their <code>data-toggle</code> attribute:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=nx>$</span><span class=p>(</span><span class=s1>'[data-toggle="popover"]'</span><span class=p>).</span><span class=nx>popover</span><span class=p>()</span>
-<span class=p>})</span></code></pre></figure> </div> <div class="bs-callout bs-callout-warning" id=callout-popover-groups> <h4>Popovers in button groups, input groups, and tables require special setting</h4> <p>When using popovers on elements within a <code>.btn-group</code> or an <code>.input-group</code>, or on table-related elements (<code>&lt;td&gt;</code>, <code>&lt;th&gt;</code>, <code>&lt;tr&gt;</code>, <code>&lt;thead&gt;</code>, <code>&lt;tbody&gt;</code>, <code>&lt;tfoot&gt;</code>), you'll have to specify the option <code>container: 'body'</code> (documented below) to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the popover is triggered).</p> </div> <div class="bs-callout bs-callout-warning" id=callout-popover-hidden> <h4>Don't try to show popovers on hidden elements</h4> <p>Invoking <code>$(...).popover('show')</code> when the target element is <code>display: none;</code> will cause the popover to be incorrectly positioned.</p> </div> <div class="bs-callout bs-callout-info" id=callout-popover-disabled> <h4>Popovers on disabled elements require wrapper elements</h4> <p>To add a popover to a <code>disabled</code> or <code>.disabled</code> element, put the element inside of a <code>&lt;div&gt;</code> and apply the popover to that <code>&lt;div&gt;</code> instead.</p> </div> <div class="bs-callout bs-callout-info" id=callout-popover-multiline> <h4>Multiple-line links</h4> <p>Sometimes you want to add a popover to a hyperlink that wraps multiple lines. The default behavior of the popover plugin is to center it horizontally and vertically. Add <code>white-space: nowrap;</code> to your anchors to avoid this.</p> </div> <h2 id=popovers-examples>Examples</h2> <h3>Static popover</h3> <p>Four options are available: top, right, bottom, and left aligned.</p> <div class="bs-example bs-example-popover" data-example-id=static-popovers> <div class="popover top"> <div class=arrow></div> <h3 class=popover-title>Popover top</h3> <div class=popover-content> <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> </div> </div> <div class="popover right"> <div class=arrow></div> <h3 class=popover-title>Popover right</h3> <div class=popover-content> <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> </div> </div> <div class="popover bottom"> <div class=arrow></div> <h3 class=popover-title>Popover bottom</h3> <div class=popover-content> <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> </div> </div> <div class="popover left"> <div class=arrow></div> <h3 class=popover-title>Popover left</h3> <div class=popover-content> <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> </div> </div> <div class=clearfix></div> </div> <h3>Live demo</h3> <div class="bs-example bs-example-padded-bottom"> <button type=button class="btn btn-lg btn-danger bs-docs-popover" data-toggle=popover title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-lg btn-danger"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>title=</span><span class=s>"Popover title"</span> <span class=na>data-content=</span><span class=s>"And here's some amazing content. It's very engaging. Right?"</span><span class=nt>&gt;</span>Click to toggle popover<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h4>Four directions</h4> <div class="bs-example popover-demo"> <div class=bs-example-popovers> <button type=button class="btn btn-default" data-container=body data-toggle=popover data-placement=right data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on right </button> <button type=button class="btn btn-default" data-container=body data-toggle=popover data-placement=top data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on top </button> <button type=button class="btn btn-default" data-container=body data-toggle=popover data-placement=bottom data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on bottom </button> <button type=button class="btn btn-default" data-container=body data-toggle=popover data-placement=left data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Popover on left </button> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-container=</span><span class=s>"body"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>data-placement=</span><span class=s>"left"</span> <span class=na>data-content=</span><span class=s>"Vivamus sagittis lacus vel augue laoreet rutrum faucibus."</span><span class=nt>&gt;</span>
-  Popover on left
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-container=</span><span class=s>"body"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>data-placement=</span><span class=s>"top"</span> <span class=na>data-content=</span><span class=s>"Vivamus sagittis lacus vel augue laoreet rutrum faucibus."</span><span class=nt>&gt;</span>
-  Popover on top
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-container=</span><span class=s>"body"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>data-placement=</span><span class=s>"bottom"</span> <span class=na>data-content=</span><span class=s>"Vivamus
-sagittis lacus vel augue laoreet rutrum faucibus."</span><span class=nt>&gt;</span>
-  Popover on bottom
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-default"</span> <span class=na>data-container=</span><span class=s>"body"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>data-placement=</span><span class=s>"right"</span> <span class=na>data-content=</span><span class=s>"Vivamus sagittis lacus vel augue laoreet rutrum faucibus."</span><span class=nt>&gt;</span>
-  Popover on right
-<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h4>Dismiss on next click</h4> <p>Use the <code>focus</code> trigger to dismiss popovers on the next click that the user makes.</p> <div class="bs-callout bs-callout-danger" id=callout-popover-dismiss-click> <h4>Specific markup required for dismiss-on-next-click</h4> <p>For proper cross-browser and cross-platform behavior, you must use the <code>&lt;a&gt;</code> tag, <i>not</i> the <code>&lt;button&gt;</code> tag, and you also must include the <code>role="button"</code> and <a href=https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#tabindex><code>tabindex</code></a> attributes.</p> </div> <div class="bs-example bs-example-padded-bottom"> <a tabindex=0 class="btn btn-lg btn-danger bs-docs-popover" role=button data-toggle=popover data-trigger=focus title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">Dismissible popover</a> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>tabindex=</span><span class=s>"0"</span> <span class=na>class=</span><span class=s>"btn btn-lg btn-danger"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"popover"</span> <span class=na>data-trigger=</span><span class=s>"focus"</span> <span class=na>title=</span><span class=s>"Dismissible popover"</span> <span class=na>data-content=</span><span class=s>"And here's some amazing content. It's very engaging. Right?"</span><span class=nt>&gt;</span>Dismissible popover<span class=nt>&lt;/a&gt;</span></code></pre></figure> <h2 id=popovers-usage>Usage</h2> <p>Enable popovers via JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#example'</span><span class=p>).</span><span class=nx>popover</span><span class=p>(</span><span class=nx>options</span><span class=p>)</span></code></pre></figure> <h3 id=popovers-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table js-options-table"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Default</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>animation</td> <td>boolean</td> <td>true</td> <td>Apply a CSS fade transition to the popover</td> </tr> <tr> <td>container</td> <td>string | false</td> <td>false</td> <td> <p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p> </td> </tr> <tr> <td>content</td> <td>string | function</td> <td>''</td> <td> <p>Default content value if <code>data-content</code> attribute isn't present.</p> <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p> </td> </tr> <tr> <td>delay</td> <td>number | object</td> <td>0</td> <td> <p>Delay showing and hiding the popover (ms) - does not apply to manual trigger type</p> <p>If a number is supplied, delay is applied to both hide/show</p> <p>Object structure is: <code>delay: { "show": 500, "hide": 100 }</code></p> </td> </tr> <tr> <td>html</td> <td>boolean</td> <td>false</td> <td>Insert HTML into the popover. If false, jQuery's <code>text</code> method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.</td> </tr> <tr> <td>placement</td> <td>string | function</td> <td>'right'</td> <td> <p>How to position the popover - top | bottom | left | right | auto.<br>When "auto" is specified, it will dynamically reorient the popover. For example, if placement is "auto left", the popover will display to the left when possible, otherwise it will display right.</p> <p>When a function is used to determine the placement, it is called with the popover DOM node as its first argument and the triggering element DOM node as its second. The <code>this</code> context is set to the popover instance.</p> </td> </tr> <tr> <td>selector</td> <td>string</td> <td>false</td> <td>If a selector is provided, popover objects will be delegated to the specified targets. In practice, this is used to enable dynamic HTML content to have popovers added. See <a href=https://github.com/twbs/bootstrap/issues/4215>this</a> and <a href=http://jsbin.com/zopod/1/edit>an informative example</a>.</td> </tr> <tr> <td>template</td> <td>string</td> <td><code>'&lt;div class="popover" role="tooltip"&gt;&lt;div class="arrow"&gt;&lt;/div&gt;&lt;h3 class="popover-title"&gt;&lt;/h3&gt;&lt;div class="popover-content"&gt;&lt;/div&gt;&lt;/div&gt;'</code></td> <td> <p>Base HTML to use when creating the popover.</p> <p>The popover's <code>title</code> will be injected into the <code>.popover-title</code>.</p> <p>The popover's <code>content</code> will be injected into the <code>.popover-content</code>.</p> <p><code>.arrow</code> will become the popover's arrow.</p> <p>The outermost wrapper element should have the <code>.popover</code> class.</p> </td> </tr> <tr> <td>title</td> <td>string | function</td> <td>''</td> <td> <p>Default title value if <code>title</code> attribute isn't present.</p> <p>If a function is given, it will be called with its <code>this</code> reference set to the element that the popover is attached to.</p> </td> </tr> <tr> <td>trigger</td> <td>string</td> <td>'click'</td> <td>How popover is triggered - click | hover | focus | manual. You may pass multiple triggers; separate them with a space. <code>manual</code> cannot be combined with any other trigger.</td> </tr> <tr> <td>viewport</td> <td>string | object | function</td> <td>{ selector: 'body', padding: 0 }</td> <td> <p>Keeps the popover within the bounds of this element. Example: <code>viewport: '#viewport'</code> or <code>{ "selector": "#viewport", "padding": 0 }</code></p> <p>If a function is given, it is called with the triggering element DOM node as its only argument. The <code>this</code> context is set to the popover instance.</p> </td> </tr> </tbody> </table> </div> <div class="bs-callout bs-callout-info" id=callout-popover-data> <h4>Data attributes for individual popovers</h4> <p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p> </div> <h3 id=popovers-methods>Methods</h3> <h4><code>$().popover(options)</code></h4> <p>Initializes popovers for an element collection.</p> <h4><code>.popover('show')</code></h4> <p>Reveals an element's popover. <strong>Returns to the caller before the popover has actually been shown</strong> (i.e. before the <code>shown.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover. Popovers whose both title and content are zero-length are never displayed.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>popover</span><span class=p>(</span><span class=s1>'show'</span><span class=p>)</span></code></pre></figure> <h4><code>.popover('hide')</code></h4> <p>Hides an element's popover. <strong>Returns to the caller before the popover has actually been hidden</strong> (i.e. before the <code>hidden.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>popover</span><span class=p>(</span><span class=s1>'hide'</span><span class=p>)</span></code></pre></figure> <h4><code>.popover('toggle')</code></h4> <p>Toggles an element's popover. <strong>Returns to the caller before the popover has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.popover</code> or <code>hidden.bs.popover</code> event occurs). This is considered a "manual" triggering of the popover.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>popover</span><span class=p>(</span><span class=s1>'toggle'</span><span class=p>)</span></code></pre></figure> <h4><code>.popover('destroy')</code></h4> <p>Hides and destroys an element's popover. Popovers that use delegation (which are created using <a href=#popovers-options>the <code>selector</code> option</a>) cannot be individually destroyed on descendant trigger elements.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#element'</span><span class=p>).</span><span class=nx>popover</span><span class=p>(</span><span class=s1>'destroy'</span><span class=p>)</span></code></pre></figure> <h3 id=popovers-events>Events</h3> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.popover</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td> </tr> <tr> <td>shown.bs.popover</td> <td>This event is fired when the popover has been made visible to the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>hide.bs.popover</td> <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> </tr> <tr> <td>hidden.bs.popover</td> <td>This event is fired when the popover has finished being hidden from the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>inserted.bs.popover</td> <td>This event is fired after the <code>show.bs.popover</code> event when the popover template has been added to the DOM.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myPopover'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'hidden.bs.popover'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=alerts>Alert messages <small>alert.js</small></h1> <h2 id=alerts-examples>Example alerts</h2> <p>Add dismiss functionality to all alert messages with this plugin.</p> <p>When using a <code>.close</code> button, it must be the first child of the <code>.alert-dismissible</code> and no text content may come before it in the markup.</p> <div class="bs-example bs-example-standalone" data-example-id=dismissible-alert-js> <div class="alert alert-warning alert-dismissible fade in" role=alert> <button type=button class=close data-dismiss=alert aria-label=Close><span aria-hidden=true>&times;</span></button> <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. </div> <div class="alert alert-danger alert-dismissible fade in" role=alert> <button type=button class=close data-dismiss=alert aria-label=Close><span aria-hidden=true>&times;</span></button> <h4>Oh snap! You got an error!</h4> <p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p> <p> <button type=button class="btn btn-danger">Take this action</button> <button type=button class="btn btn-default">Or do this</button> </p> </div> </div> <h2 id=alerts-usage>Usage</h2> <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality. Closing an alert removes it from the DOM.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"close"</span> <span class=na>data-dismiss=</span><span class=s>"alert"</span> <span class=na>aria-label=</span><span class=s>"Close"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;span</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;</span><span class=ni>&amp;times;</span><span class=nt>&lt;/span&gt;</span>
-<span class=nt>&lt;/button&gt;</span></code></pre></figure> <p>To have your alerts use animation when closing, make sure they have the <code>.fade</code> and <code>.in</code> classes already applied to them.</p> <h3 id=alerts-methods>Methods</h3> <h4><code>$().alert()</code></h4> <p>Makes an alert listen for click events on descendant elements which have the <code>data-dismiss="alert"</code> attribute. (Not necessary when using the data-api's auto-initialization.)</p> <h4><code>$().alert('close')</code></h4> <p>Closes an alert by removing it from the DOM. If the <code>.fade</code> and <code>.in</code> classes are present on the element, the alert will fade out before it is removed.</p> <h3 id=alerts-events>Events</h3> <p>Bootstrap's alert plugin exposes a few events for hooking into alert functionality.</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>close.bs.alert</td> <td>This event fires immediately when the <code>close</code> instance method is called.</td> </tr> <tr> <td>closed.bs.alert</td> <td>This event is fired when the alert has been closed (will wait for CSS transitions to complete).</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myAlert'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'closed.bs.alert'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=buttons>Buttons <small>button.js</small></h1> <p class=lead>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p> <div class="bs-callout bs-callout-danger" id=callout-buttons-ff-autocomplete> <h4>Cross-browser compatibility</h4> <p><a href=https://github.com/twbs/bootstrap/issues/793>Firefox persists form control states (disabledness and checkedness) across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>. See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=654072">Mozilla bug #654072</a>.</p> </div> <h2 id=buttons-stateful>Stateful</h2> <p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p> <p><strong class=text-danger>This feature is deprecated since v3.3.5 and has been removed in v4.</strong></p> <div class="bs-callout bs-callout-info" id=callout-buttons-state-names> <h4>Use whichever state you like!</h4> <p>For the sake of this demonstration, we are using <code>data-loading-text</code> and <code>$().button('loading')</code>, but that's not the only state you can use. <a href=#buttons-methods>See more on this below in the <code>$().button(string)</code> documentation</a>.</p> </div> <div class=bs-example> <button type=button id=loading-example-btn data-loading-text=Loading... class="btn btn-primary" autocomplete=off> Loading state </button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>id=</span><span class=s>"myButton"</span> <span class=na>data-loading-text=</span><span class=s>"Loading..."</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span>
-  Loading state
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;script&gt;</span>
-  <span class=nx>$</span><span class=p>(</span><span class=s1>'#myButton'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'click'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-    <span class=kd>var</span> <span class=nx>$btn</span> <span class=o>=</span> <span class=nx>$</span><span class=p>(</span><span class=k>this</span><span class=p>).</span><span class=nx>button</span><span class=p>(</span><span class=s1>'loading'</span><span class=p>)</span>
-    <span class=c1>// business logic...</span>
-    <span class=nx>$btn</span><span class=p>.</span><span class=nx>button</span><span class=p>(</span><span class=s1>'reset'</span><span class=p>)</span>
-  <span class=p>})</span>
-<span class=nt>&lt;/script&gt;</span></code></pre></figure> <h2 id=buttons-single-toggle>Single toggle</h2> <p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p> <div class="bs-callout bs-callout-warning" id=callout-buttons-single-pretoggled> <h4>Pre-toggled buttons need <code>.active</code> and <code>aria-pressed="true"</code></h4> <p>For pre-toggled buttons, you must add the <code>.active</code> class and the <code>aria-pressed="true"</code> attribute to the <code>button</code> yourself.</p> </div> <div class=bs-example> <button type=button class="btn btn-primary" data-toggle=button aria-pressed=false autocomplete=off> Single toggle </button> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>data-toggle=</span><span class=s>"button"</span> <span class=na>aria-pressed=</span><span class=s>"false"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span>
-  Single toggle
-<span class=nt>&lt;/button&gt;</span></code></pre></figure> <h2 id=buttons-checkbox-radio>Checkbox / Radio</h2> <p>Add <code>data-toggle="buttons"</code> to a <code>.btn-group</code> containing checkbox or radio inputs to enable toggling in their respective styles.</p> <div class="bs-callout bs-callout-warning" id=callout-buttons-multi-preselected> <h4>Preselected options need <code>.active</code></h4> <p>For preselected options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-buttons-only-click> <h4>Visual checked state only updated on click</h4> <p>If the checked state of a checkbox button is updated without firing a <code>click</code> event on the button (e.g. via <code>&lt;input type="reset"&gt;</code> or via setting the <code>checked</code> property of the input), you will need to toggle the <code>.active</code> class on the input's <code>label</code> yourself.</p> </div> <div class=bs-example data-example-id=buttons-checkbox> <div class=btn-group data-toggle=buttons> <label class="btn btn-primary active"> <input type=checkbox checked autocomplete=off> Checkbox 1 (pre-checked) </label> <label class="btn btn-primary"> <input type=checkbox autocomplete=off> Checkbox 2 </label> <label class="btn btn-primary"> <input type=checkbox autocomplete=off> Checkbox 3 </label> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>data-toggle=</span><span class=s>"buttons"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary active"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>autocomplete=</span><span class=s>"off"</span> <span class=na>checked</span><span class=nt>&gt;</span> Checkbox 1 (pre-checked)
-  <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span> Checkbox 2
-  <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"checkbox"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span> Checkbox 3
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class=bs-example data-example-id=buttons-radio> <div class=btn-group data-toggle=buttons> <label class="btn btn-primary active"> <input type=radio name=options id=option1 autocomplete=off checked> Radio 1 (preselected) </label> <label class="btn btn-primary"> <input type=radio name=options id=option2 autocomplete=off> Radio 2 </label> <label class="btn btn-primary"> <input type=radio name=options id=option3 autocomplete=off> Radio 3 </label> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"btn-group"</span> <span class=na>data-toggle=</span><span class=s>"buttons"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary active"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"options"</span> <span class=na>id=</span><span class=s>"option1"</span> <span class=na>autocomplete=</span><span class=s>"off"</span> <span class=na>checked</span><span class=nt>&gt;</span> Radio 1 (preselected)
-  <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"options"</span> <span class=na>id=</span><span class=s>"option2"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span> Radio 2
-  <span class=nt>&lt;/label&gt;</span>
-  <span class=nt>&lt;label</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;input</span> <span class=na>type=</span><span class=s>"radio"</span> <span class=na>name=</span><span class=s>"options"</span> <span class=na>id=</span><span class=s>"option3"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span> Radio 3
-  <span class=nt>&lt;/label&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=buttons-methods>Methods</h2> <h4><code>$().button('toggle')</code></h4> <p>Toggles push state. Gives the button the appearance that it has been activated.</p> <h4><code>$().button('reset')</code></h4> <p>Resets button state - swaps text to original text. <strong>This method is asynchronous and returns before the resetting has actually completed.</strong></p> <h4><code>$().button(string)</code></h4> <p>Swaps text to any data defined text state.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;button</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>id=</span><span class=s>"myStateButton"</span> <span class=na>data-complete-text=</span><span class=s>"finished!"</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>autocomplete=</span><span class=s>"off"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/button&gt;</span>
-
-<span class=nt>&lt;script&gt;</span>
-  <span class=nx>$</span><span class=p>(</span><span class=s1>'#myStateButton'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'click'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-    <span class=nx>$</span><span class=p>(</span><span class=k>this</span><span class=p>).</span><span class=nx>button</span><span class=p>(</span><span class=s1>'complete'</span><span class=p>)</span> <span class=c1>// button text will be "finished!"</span>
-  <span class=p>})</span>
-<span class=nt>&lt;/script&gt;</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=collapse>Collapse <small>collapse.js</small></h1> <p class=lead>Flexible plugin that utilizes a handful of classes for easy toggle behavior.</p> <div class="bs-callout bs-callout-danger" id=callout-collapse-dependency> <h4>Plugin dependency</h4> <p>Collapse requires the <a href=#transitions>transitions plugin</a> to be included in your version of Bootstrap.</p> </div> <h2 id=collapse-example>Example</h2> <p>Click the buttons below to show and hide another element via class changes:</p> <ul> <li><code>.collapse</code> hides content</li> <li><code>.collapsing</code> is applied during transitions</li> <li><code>.collapse.in</code> shows content</li> </ul> <p>You can use a link with the <code>href</code> attribute, or a button with the <code>data-target</code> attribute. In both cases, the <code>data-toggle="collapse"</code> is required.</p> <div class=bs-example> <p> <a href=#collapseExample class="btn btn-primary" role=button data-toggle=collapse aria-expanded=false aria-controls=collapseExample> Link with href </a> <button aria-controls=collapseExample aria-expanded=false class="btn btn-primary" data-target=#collapseExample data-toggle=collapse type=button> Button with data-target </button> </p> <div class=collapse id=collapseExample> <div class=well> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>href=</span><span class=s>"#collapseExample"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span> <span class=na>aria-controls=</span><span class=s>"collapseExample"</span><span class=nt>&gt;</span>
-  Link with href
-<span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;button</span> <span class=na>class=</span><span class=s>"btn btn-primary"</span> <span class=na>type=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>data-target=</span><span class=s>"#collapseExample"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span> <span class=na>aria-controls=</span><span class=s>"collapseExample"</span><span class=nt>&gt;</span>
-  Button with data-target
-<span class=nt>&lt;/button&gt;</span>
-<span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"collapse"</span> <span class=na>id=</span><span class=s>"collapseExample"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"well"</span><span class=nt>&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=collapse-example-accordion>Accordion example</h2> <p>Extend the default collapse behavior to create an accordion with the panel component.</p> <div class=bs-example data-example-id=collapse-accordion> <div class=panel-group role=tablist id=accordion aria-multiselectable=true> <div class="panel panel-default"> <div class=panel-heading role=tab id=headingOne> <h4 class=panel-title> <a href=#collapseOne role=button data-toggle=collapse data-parent=#accordion aria-expanded=true aria-controls=collapseOne> Collapsible Group Item #1 </a> </h4> </div> <div class="collapse panel-collapse in" role=tabpanel id=collapseOne aria-labelledby=headingOne> <div class=panel-body> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class=panel-heading role=tab id=headingTwo> <h4 class=panel-title> <a href=#collapseTwo class=collapsed role=button data-toggle=collapse data-parent=#accordion aria-expanded=false aria-controls=collapseTwo> Collapsible Group Item #2 </a> </h4> </div> <div class="collapse panel-collapse" role=tabpanel id=collapseTwo aria-labelledby=headingTwo> <div class=panel-body> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class=panel-heading role=tab id=headingThree> <h4 class=panel-title> <a href=#collapseThree class=collapsed role=button data-toggle=collapse data-parent=#accordion aria-expanded=false aria-controls=collapseThree> Collapsible Group Item #3 </a> </h4> </div> <div class="collapse panel-collapse" role=tabpanel id=collapseThree aria-labelledby=headingThree> <div class=panel-body> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-group"</span> <span class=na>id=</span><span class=s>"accordion"</span> <span class=na>role=</span><span class=s>"tablist"</span> <span class=na>aria-multiselectable=</span><span class=s>"true"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>id=</span><span class=s>"headingOne"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"panel-title"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;a</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>data-parent=</span><span class=s>"#accordion"</span> <span class=na>href=</span><span class=s>"#collapseOne"</span> <span class=na>aria-expanded=</span><span class=s>"true"</span> <span class=na>aria-controls=</span><span class=s>"collapseOne"</span><span class=nt>&gt;</span>
-          Collapsible Group Item #1
-        <span class=nt>&lt;/a&gt;</span>
-      <span class=nt>&lt;/h4&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>id=</span><span class=s>"collapseOne"</span> <span class=na>class=</span><span class=s>"panel-collapse collapse in"</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>aria-labelledby=</span><span class=s>"headingOne"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>id=</span><span class=s>"headingTwo"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"panel-title"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"collapsed"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>data-parent=</span><span class=s>"#accordion"</span> <span class=na>href=</span><span class=s>"#collapseTwo"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span> <span class=na>aria-controls=</span><span class=s>"collapseTwo"</span><span class=nt>&gt;</span>
-          Collapsible Group Item #2
-        <span class=nt>&lt;/a&gt;</span>
-      <span class=nt>&lt;/h4&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>id=</span><span class=s>"collapseTwo"</span> <span class=na>class=</span><span class=s>"panel-collapse collapse"</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>aria-labelledby=</span><span class=s>"headingTwo"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel panel-default"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-heading"</span> <span class=na>role=</span><span class=s>"tab"</span> <span class=na>id=</span><span class=s>"headingThree"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;h4</span> <span class=na>class=</span><span class=s>"panel-title"</span><span class=nt>&gt;</span>
-        <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"collapsed"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-toggle=</span><span class=s>"collapse"</span> <span class=na>data-parent=</span><span class=s>"#accordion"</span> <span class=na>href=</span><span class=s>"#collapseThree"</span> <span class=na>aria-expanded=</span><span class=s>"false"</span> <span class=na>aria-controls=</span><span class=s>"collapseThree"</span><span class=nt>&gt;</span>
-          Collapsible Group Item #3
-        <span class=nt>&lt;/a&gt;</span>
-      <span class=nt>&lt;/h4&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>id=</span><span class=s>"collapseThree"</span> <span class=na>class=</span><span class=s>"panel-collapse collapse"</span> <span class=na>role=</span><span class=s>"tabpanel"</span> <span class=na>aria-labelledby=</span><span class=s>"headingThree"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"panel-body"</span><span class=nt>&gt;</span>
-        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <p>It's also possible to swap out <code>.panel-body</code>s with <code>.list-group</code>s.</p> <div class=panel-group role=tablist> <div class="panel panel-default"> <div class=panel-heading role=tab id=collapseListGroupHeading1> <h4 class=panel-title> <a href=#collapseListGroup1 class=collapsed role=button data-toggle=collapse aria-expanded=false aria-controls=collapseListGroup1> Collapsible list group </a> </h4> </div> <div class="collapse panel-collapse" role=tabpanel id=collapseListGroup1 aria-labelledby=collapseListGroupHeading1> <ul class=list-group> <li class=list-group-item>Bootply</li> <li class=list-group-item>One itmus ac facilin</li> <li class=list-group-item>Second eros</li> </ul> <div class=panel-footer>Footer</div> </div> </div> </div> <div class="bs-callout bs-callout-warning" id=callout-collapse-accessibility> <h4>Make expand/collapse controls accessible</h4> <p>Be sure to add <code>aria-expanded</code> to the control element. This attribute explicitly defines the current state of the collapsible element to screen readers and similar assistive technologies. If the collapsible element is closed by default, it should have a value of <code>aria-expanded="false"</code>. If you've set the collapsible element to be open by default using the <code>in</code> class, set <code>aria-expanded="true"</code> on the control instead. The plugin will automatically toggle this attribute based on whether or not the collapsible element has been opened or closed.</p> <p>Additionally, if your control element is targeting a single collapsible element – i.e. the <code>data-target</code> attribute is pointing to an <code>id</code> selector – you may add an additional <code>aria-controls</code> attribute to the control element, containing the <code>id</code> of the collapsible element. Modern screen readers and similar assistive technologies make use of this attribute to provide users with additional shortcuts to navigate directly to the collapsible element itself.</p> </div> <h2 id=collapse-usage>Usage</h2> <p>The collapse plugin utilizes a few classes to handle the heavy lifting:</p> <ul> <li><code>.collapse</code> hides the content</li> <li><code>.collapse.in</code> shows the content</li> <li><code>.collapsing</code> is added when the transition starts, and removed when it finishes</li> </ul> <p>These classes can be found in <code>component-animations.less</code>.</p> <h3>Via data attributes</h3> <p>Just add <code>data-toggle="collapse"</code> and a <code>data-target</code> to the element to automatically assign control of a collapsible element. The <code>data-target</code> attribute accepts a CSS selector to apply the collapse to. Be sure to add the class <code>collapse</code> to the collapsible element. If you'd like it to default open, add the additional class <code>in</code>.</p> <p>To add accordion-like group management to a collapsible control, add the data attribute <code>data-parent="#selector"</code>. Refer to the demo to see this in action.</p> <h3>Via JavaScript</h3> <p>Enable manually with:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'.collapse'</span><span class=p>).</span><span class=nx>collapse</span><span class=p>()</span></code></pre></figure> <h3 id=collapse-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>type</th> <th>default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>parent</td> <td>selector</td> <td>false</td> <td>If a selector is provided, then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior - this is dependent on the <code>panel</code> class)</td> </tr> <tr> <td>toggle</td> <td>boolean</td> <td>true</td> <td>Toggles the collapsible element on invocation</td> </tr> </tbody> </table> </div> <h3 id=collapse-methods>Methods</h3> <h4><code>.collapse(options)</code></h4> <p>Activates your content as a collapsible element. Accepts an optional options <code>object</code>.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myCollapsible'</span><span class=p>).</span><span class=nx>collapse</span><span class=p>({</span>
-  <span class=na>toggle</span><span class=p>:</span> <span class=kc>false</span>
-<span class=p>})</span></code></pre></figure> <h4><code>.collapse('toggle')</code></h4> <p>Toggles a collapsible element to shown or hidden. <strong>Returns to the caller before the collapsible element has actually been shown or hidden</strong> (i.e. before the <code>shown.bs.collapse</code> or <code>hidden.bs.collapse</code> event occurs).</p> <h4><code>.collapse('show')</code></h4> <p>Shows a collapsible element. <strong>Returns to the caller before the collapsible element has actually been shown</strong> (i.e. before the <code>shown.bs.collapse</code> event occurs).</p> <h4><code>.collapse('hide')</code></h4> <p>Hides a collapsible element. <strong>Returns to the caller before the collapsible element has actually been hidden</strong> (i.e. before the <code>hidden.bs.collapse</code> event occurs).</p> <h3 id=collapse-events>Events</h3> <p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>show.bs.collapse</td> <td>This event fires immediately when the <code>show</code> instance method is called.</td> </tr> <tr> <td>shown.bs.collapse</td> <td>This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).</td> </tr> <tr> <td>hide.bs.collapse</td> <td> This event is fired immediately when the <code>hide</code> method has been called. </td> </tr> <tr> <td>hidden.bs.collapse</td> <td>This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myCollapsible'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'hidden.bs.collapse'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=carousel>Carousel <small>carousel.js</small></h1> <p>A slideshow component for cycling through elements, like a carousel. <strong>Nested carousels are not supported.</strong></p> <h2 id=carousel-examples>Examples</h2> <div class=bs-example data-example-id=simple-carousel> <div class="carousel slide" id=carousel-example-generic data-ride=carousel> <ol class=carousel-indicators> <li data-target=#carousel-example-generic data-slide-to=0 class=active></li> <li data-target=#carousel-example-generic data-slide-to=1></li> <li data-target=#carousel-example-generic data-slide-to=2></li> </ol> <div class=carousel-inner role=listbox> <div class="item active"> <img alt="First slide" data-src="holder.js/900x500/auto/#777:#555/text:First slide"> </div> <div class=item> <img alt="Second slide" data-src="holder.js/900x500/auto/#666:#444/text:Second slide"> </div> <div class=item> <img alt="Third slide" data-src="holder.js/900x500/auto/#555:#333/text:Third slide"> </div> </div> <a href=#carousel-example-generic class="left carousel-control" role=button data-slide=prev> <span class="glyphicon glyphicon-chevron-left" aria-hidden=true></span> <span class=sr-only>Previous</span> </a> <a href=#carousel-example-generic class="right carousel-control" role=button data-slide=next> <span class="glyphicon glyphicon-chevron-right" aria-hidden=true></span> <span class=sr-only>Next</span> </a> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>id=</span><span class=s>"carousel-example-generic"</span> <span class=na>class=</span><span class=s>"carousel slide"</span> <span class=na>data-ride=</span><span class=s>"carousel"</span><span class=nt>&gt;</span>
-  <span class=c>&lt;!-- Indicators --&gt;</span>
-  <span class=nt>&lt;ol</span> <span class=na>class=</span><span class=s>"carousel-indicators"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>data-target=</span><span class=s>"#carousel-example-generic"</span> <span class=na>data-slide-to=</span><span class=s>"0"</span> <span class=na>class=</span><span class=s>"active"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>data-target=</span><span class=s>"#carousel-example-generic"</span> <span class=na>data-slide-to=</span><span class=s>"1"</span><span class=nt>&gt;&lt;/li&gt;</span>
-    <span class=nt>&lt;li</span> <span class=na>data-target=</span><span class=s>"#carousel-example-generic"</span> <span class=na>data-slide-to=</span><span class=s>"2"</span><span class=nt>&gt;&lt;/li&gt;</span>
-  <span class=nt>&lt;/ol&gt;</span>
-
-  <span class=c>&lt;!-- Wrapper for slides --&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"carousel-inner"</span> <span class=na>role=</span><span class=s>"listbox"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"item active"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"carousel-caption"</span><span class=nt>&gt;</span>
-        ...
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"item"</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-      <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"carousel-caption"</span><span class=nt>&gt;</span>
-        ...
-      <span class=nt>&lt;/div&gt;</span>
-    <span class=nt>&lt;/div&gt;</span>
-    ...
-  <span class=nt>&lt;/div&gt;</span>
-
-  <span class=c>&lt;!-- Controls --&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"left carousel-control"</span> <span class=na>href=</span><span class=s>"#carousel-example-generic"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-slide=</span><span class=s>"prev"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-chevron-left"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Previous<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/a&gt;</span>
-  <span class=nt>&lt;a</span> <span class=na>class=</span><span class=s>"right carousel-control"</span> <span class=na>href=</span><span class=s>"#carousel-example-generic"</span> <span class=na>role=</span><span class=s>"button"</span> <span class=na>data-slide=</span><span class=s>"next"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"glyphicon glyphicon-chevron-right"</span> <span class=na>aria-hidden=</span><span class=s>"true"</span><span class=nt>&gt;&lt;/span&gt;</span>
-    <span class=nt>&lt;span</span> <span class=na>class=</span><span class=s>"sr-only"</span><span class=nt>&gt;</span>Next<span class=nt>&lt;/span&gt;</span>
-  <span class=nt>&lt;/a&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <div class="bs-callout bs-callout-danger" id=callout-carousel-accessibility> <h4>Accessibility issue</h4> <p>The carousel component is generally not compliant with accessibility standards. If you need to be compliant, please consider other options for presenting your content.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-carousel-transitions> <h4>Transition animations not supported in Internet Explorer 8 &amp; 9</h4> <p>Bootstrap exclusively uses CSS3 for its animations, but Internet Explorer 8 &amp; 9 don't support the necessary CSS properties. Thus, there are no slide transition animations when using these browsers. We have intentionally decided not to include jQuery-based fallbacks for the transitions.</p> </div> <div class="bs-callout bs-callout-warning" id=callout-carousel-active> <h4>Initial active element required</h4> <p>The <code>.active</code> class needs to be added to one of the slides. Otherwise, the carousel will not be visible.</p> </div> <div class="bs-callout bs-callout-info" id=callout-carousel-without-glyphicons> <h4>Glyphicon icons not necessary</h4> <p>The <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code> classes are not necessarily needed for the controls. Bootstrap provides <code>.icon-prev</code> and <code>.icon-next</code> as plain unicode alternatives.</p> </div> <h3>Optional captions</h3> <p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code>.item</code>. Place just about any optional HTML within there and it will be automatically aligned and formatted.</p> <div class=bs-example data-example-id=carousel-with-captions> <div class="carousel slide" id=carousel-example-captions data-ride=carousel> <ol class=carousel-indicators> <li data-target=#carousel-example-captions data-slide-to=0 class=active></li> <li data-target=#carousel-example-captions data-slide-to=1></li> <li data-target=#carousel-example-captions data-slide-to=2></li> </ol> <div class=carousel-inner role=listbox> <div class="item active"> <img alt="First slide image" data-src=holder.js/900x500/auto/#777:#777> <div class=carousel-caption> <h3>First slide label</h3> <p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p> </div> </div> <div class=item> <img alt="Second slide image" data-src=holder.js/900x500/auto/#666:#666> <div class=carousel-caption> <h3>Second slide label</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> </div> </div> <div class=item> <img alt="Third slide image" data-src=holder.js/900x500/auto/#555:#555> <div class=carousel-caption> <h3>Third slide label</h3> <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p> </div> </div> </div> <a href=#carousel-example-captions class="left carousel-control" role=button data-slide=prev> <span class="glyphicon glyphicon-chevron-left" aria-hidden=true></span> <span class=sr-only>Previous</span> </a> <a href=#carousel-example-captions class="right carousel-control" role=button data-slide=next> <span class="glyphicon glyphicon-chevron-right" aria-hidden=true></span> <span class=sr-only>Next</span> </a> </div> </div> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"item"</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;img</span> <span class=na>src=</span><span class=s>"..."</span> <span class=na>alt=</span><span class=s>"..."</span><span class=nt>&gt;</span>
-  <span class=nt>&lt;div</span> <span class=na>class=</span><span class=s>"carousel-caption"</span><span class=nt>&gt;</span>
-    <span class=nt>&lt;h3&gt;</span>...<span class=nt>&lt;/h3&gt;</span>
-    <span class=nt>&lt;p&gt;</span>...<span class=nt>&lt;/p&gt;</span>
-  <span class=nt>&lt;/div&gt;</span>
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h2 id=carousel-usage>Usage</h2> <h3>Multiple carousels</h3> <p>Carousels require the use of an <code>id</code> on the outermost container (the <code>.carousel</code>) for carousel controls to function properly. When adding multiple carousels, or when changing a carousel's <code>id</code>, be sure to update the relevant controls.</p> <h3>Via data attributes</h3> <p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p> <p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load. <strong class=text-danger>It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.</strong></p> <h3>Via JavaScript</h3> <p>Call carousel manually with:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'.carousel'</span><span class=p>).</span><span class=nx>carousel</span><span class=p>()</span></code></pre></figure> <h3 id=carousel-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>type</th> <th>default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>interval</td> <td>number</td> <td>5000</td> <td>The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.</td> </tr> <tr> <td>pause</td> <td>string | null</td> <td>"hover"</td> <td>If set to <code>"hover"</code>, pauses the cycling of the carousel on <code>mouseenter</code> and resumes the cycling of the carousel on <code>mouseleave</code>. If set to <code>null</code>, hovering over the carousel won't pause it.</td> </tr> <tr> <td>wrap</td> <td>boolean</td> <td>true</td> <td>Whether the carousel should cycle continuously or have hard stops.</td> </tr> <tr> <td>keyboard</td> <td>boolean</td> <td>true</td> <td>Whether the carousel should react to keyboard events.</td> </tr> </tbody> </table> </div> <h3 id=carousel-methods>Methods</h3> <h4><code>.carousel(options)</code></h4> <p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'.carousel'</span><span class=p>).</span><span class=nx>carousel</span><span class=p>({</span>
-  <span class=na>interval</span><span class=p>:</span> <span class=mi>2000</span>
-<span class=p>})</span></code></pre></figure> <h4><code>.carousel('cycle')</code></h4> <p>Cycles through the carousel items from left to right.</p> <h4><code>.carousel('pause')</code></h4> <p>Stops the carousel from cycling through items.</p> <h4><code>.carousel(number)</code></h4> <p>Cycles the carousel to a particular frame (0 based, similar to an array).</p> <h4><code>.carousel('prev')</code></h4> <p>Cycles to the previous item.</p> <h4><code>.carousel('next')</code></h4> <p>Cycles to the next item.</p> <h3 id=carousel-events>Events</h3> <p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p> <p>Both events have the following additional properties:</p> <ul> <li><code>direction</code>: The direction in which the carousel is sliding (either <code>"left"</code> or <code>"right"</code>).</li> <li><code>relatedTarget</code>: The DOM element that is being slid into place as the active item.</li> </ul> <p>All carousel events are fired at the carousel itself (i.e. at the <code>&lt;div class="carousel"&gt;</code>).</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>slide.bs.carousel</td> <td>This event fires immediately when the <code>slide</code> instance method is invoked.</td> </tr> <tr> <td>slid.bs.carousel</td> <td>This event is fired when the carousel has completed its slide transition.</td> </tr> </tbody> </table> </div> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myCarousel'</span><span class=p>).</span><span class=nx>on</span><span class=p>(</span><span class=s1>'slide.bs.carousel'</span><span class=p>,</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-  <span class=c1>// do something…</span>
-<span class=p>})</span></code></pre></figure> </div> <div class=bs-docs-section> <h1 class=page-header id=affix>Affix <small>affix.js</small></h1> <h2 id=affix-examples>Example</h2> <p>The affix plugin toggles <code>position: fixed;</code> on and off, emulating the effect found with <a href=https://developer.mozilla.org/en-US/docs/Web/CSS/position#Sticky_positioning><code>position: sticky;</code></a>. The subnavigation on the right is a live demo of the affix plugin.</p> <hr class=bs-docs-separator> <h2 id=affix-usage>Usage</h2> <p>Use the affix plugin via data attributes or manually with your own JavaScript. <strong class=text-danger>In both situations, you must provide CSS for the positioning and width of your affixed content.</strong></p> <p>Note: Do not use the affix plugin on an element contained in a relatively positioned element, such as a pulled or pushed column, due to a <a href=https://github.com/twbs/bootstrap/issues/12126>Safari rendering bug</a>.</p> <h3>Positioning via CSS</h3> <p>The affix plugin toggles between three classes, each representing a particular state: <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code>. You must provide the styles, with the exception of <code>position: fixed;</code> on <code>.affix</code>, for these classes yourself (independent of this plugin) to handle the actual positions.</p> <p>Here's how the affix plugin works:</p> <ol> <li>To start, the plugin adds <code>.affix-top</code> to indicate the element is in its top-most position. At this point no CSS positioning is required.</li> <li>Scrolling past the element you want affixed should trigger the actual affixing. This is where <code>.affix</code> replaces <code>.affix-top</code> and sets <code>position: fixed;</code> (provided by Bootstrap's CSS).</li> <li>If a bottom offset is defined, scrolling past it should replace <code>.affix</code> with <code>.affix-bottom</code>. Since offsets are optional, setting one requires you to set the appropriate CSS. In this case, add <code>position: absolute;</code> when necessary. The plugin uses the data attribute or JavaScript option to determine where to position the element from there.</li> </ol> <p>Follow the above steps to set your CSS for either of the usage options below.</p> <h3>Via data attributes</h3> <p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Use offsets to define when to toggle the pinning of an element.</p> <figure class=highlight><pre><code class=language-html data-lang=html><span class=nt>&lt;div</span> <span class=na>data-spy=</span><span class=s>"affix"</span> <span class=na>data-offset-top=</span><span class=s>"60"</span> <span class=na>data-offset-bottom=</span><span class=s>"200"</span><span class=nt>&gt;</span>
-  ...
-<span class=nt>&lt;/div&gt;</span></code></pre></figure> <h3>Via JavaScript</h3> <p>Call the affix plugin via JavaScript:</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myAffix'</span><span class=p>).</span><span class=nx>affix</span><span class=p>({</span>
-  <span class=na>offset</span><span class=p>:</span> <span class=p>{</span>
-    <span class=na>top</span><span class=p>:</span> <span class=mi>100</span><span class=p>,</span>
-    <span class=na>bottom</span><span class=p>:</span> <span class=kd>function</span> <span class=p>()</span> <span class=p>{</span>
-      <span class=k>return</span> <span class=p>(</span><span class=k>this</span><span class=p>.</span><span class=nx>bottom</span> <span class=o>=</span> <span class=nx>$</span><span class=p>(</span><span class=s1>'.footer'</span><span class=p>).</span><span class=nx>outerHeight</span><span class=p>(</span><span class=kc>true</span><span class=p>))</span>
-    <span class=p>}</span>
-  <span class=p>}</span>
-<span class=p>})</span></code></pre></figure> <h3 id=affix-options>Options</h3> <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p> <div class=table-responsive> <table class="table table-bordered table-striped js-options-table"> <thead> <tr> <th>Name</th> <th>type</th> <th>default</th> <th>description</th> </tr> </thead> <tbody> <tr> <td>offset</td> <td>number | function | object</td> <td>10</td> <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and bottom directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td> </tr> <tr> <td>target</td> <td>selector | node | jQuery element</td> <td>the <code>window</code> object</td> <td>Specifies the target element of the affix.</td> </tr> </tbody> </table> </div> <h3 id=affix-methods>Methods</h3> <h4><code>.affix(options)</code></h4> <p>Activates your content as affixed content. Accepts an optional options <code>object</code>.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myAffix'</span><span class=p>).</span><span class=nx>affix</span><span class=p>({</span>
-  <span class=na>offset</span><span class=p>:</span> <span class=mi>15</span>
-<span class=p>})</span></code></pre></figure> <h4><code>.affix('checkPosition')</code></h4> <p>Recalculates the state of the affix based on the dimensions, position, and scroll position of the relevant elements. The <code>.affix</code>, <code>.affix-top</code>, and <code>.affix-bottom</code> classes are added to or removed from the affixed content according to the new state. This method needs to be called whenever the dimensions of the affixed content or the target element are changed, to ensure correct positioning of the affixed content.</p> <figure class=highlight><pre><code class=language-js data-lang=js><span class=nx>$</span><span class=p>(</span><span class=s1>'#myAffix'</span><span class=p>).</span><span class=nx>affix</span><span class=p>(</span><span class=s1>'checkPosition'</span><span class=p>)</span></code></pre></figure> <h3 id=affix-events>Events</h3> <p>Bootstrap's affix plugin exposes a few events for hooking into affix functionality.</p> <div class=table-responsive> <table class="table table-bordered table-striped bs-events-table"> <thead> <tr> <th>Event Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>affix.bs.affix</td> <td>This event fires immediately before the element has been affixed.</td> </tr> <tr> <td>affixed.bs.affix</td> <td>This event is fired after the element has been affixed.</td> </tr> <tr> <td>affix-top.bs.affix</td> <td>This event fires immediately before the element has been affixed-top.</td> </tr> <tr> <td>affixed-top.bs.affix</td> <td>This event is fired after the element has been affixed-top.</td> </tr> <tr> <td>affix-bottom.bs.affix</td> <td>This event fires immediately before the element has been affixed-bottom.</td> </tr> <tr> <td>affixed-bottom.bs.affix</td> <td>This event is fired after the element has been affixed-bottom.</td> </tr> </tbody> </table> </div> </div> </div> <div class=col-md-3 role=complementary> <nav class="bs-docs-sidebar hidden-print hidden-sm hidden-xs"> <ul class="nav bs-docs-sidenav"> <li> <a href=#js-overview>Overview</a> <ul class=nav> <li><a href=#js-individual-compiled>Individual or compiled</a></li> <li><a href=#js-data-attrs>Data attributes</a></li> <li><a href=#js-programmatic-api>Programmatic API</a></li> <li><a href=#js-noconflict>No conflict</a></li> <li><a href=#js-events>Events</a></li> <li><a href=#js-version-nums>Version numbers</a></li> <li><a href=#js-disabled>When JavaScript is disabled</a></li> <li><a href=#callout-third-party-libs>Third-party libraries</a></li> </ul> </li> <li><a href=#transitions>Transitions</a></li> <li> <a href=#modals>Modal</a> <ul class=nav> <li><a href=#modals-examples>Examples</a></li> <li><a href=#modals-sizes>Sizes</a></li> <li><a href=#modals-remove-animation>Remove animation</a></li> <li><a href=#modals-related-target>Varying content based on trigger button</a></li> <li><a href=#modals-usage>Usage</a></li> <li><a href=#modals-options>Options</a></li> <li><a href=#modals-methods>Methods</a></li> <li><a href=#modals-events>Events</a></li> </ul> </li> <li> <a href=#dropdowns>Dropdown</a> <ul class=nav> <li><a href=#dropdowns-examples>Examples</a></li> <li><a href=#dropdowns-usage>Usage</a></li> <li><a href=#dropdowns-methods>Methods</a></li> <li><a href=#dropdowns-events>Events</a></li> </ul> </li> <li> <a href=#scrollspy>Scrollspy</a> <ul class=nav> <li><a href=#scrollspy-examples>Examples</a></li> <li><a href=#scrollspy-usage>Usage</a></li> <li><a href=#scrollspy-methods>Methods</a></li> <li><a href=#scrollspy-options>Options</a></li> <li><a href=#scrollspy-events>Events</a></li> </ul> </li> <li> <a href=#tabs>Tab</a> <ul class=nav> <li><a href=#tabs-examples>Examples</a></li> <li><a href=#tabs-usage>Usage</a></li> <li><a href=#tabs-methods>Methods</a></li> <li><a href=#tabs-events>Events</a></li> </ul> </li> <li> <a href=#tooltips>Tooltip</a> <ul class=nav> <li><a href=#tooltips-examples>Examples</a></li> <li><a href=#tooltips-usage>Usage</a></li> <li><a href=#tooltips-options>Options</a></li> <li><a href=#tooltips-methods>Methods</a></li> <li><a href=#tooltips-events>Events</a></li> </ul> </li> <li> <a href=#popovers>Popover</a> <ul class=nav> <li><a href=#popovers-examples>Examples</a></li> <li><a href=#popovers-usage>Usage</a></li> <li><a href=#popovers-options>Options</a></li> <li><a href=#popovers-methods>Methods</a></li> <li><a href=#popovers-events>Events</a></li> </ul> </li> <li> <a href=#alerts>Alert</a> <ul class=nav> <li><a href=#alerts-examples>Examples</a></li> <li><a href=#alerts-usage>Usage</a></li> <li><a href=#alerts-methods>Methods</a></li> <li><a href=#alerts-events>Events</a></li> </ul> </li> <li> <a href=#buttons>Button</a> <ul class=nav> <li><a href=#buttons-stateful>Stateful</a></li> <li><a href=#buttons-single-toggle>Single toggle</a></li> <li><a href=#buttons-checkbox-radio>Checkbox / Radio</a></li> <li><a href=#buttons-methods>Methods</a></li> </ul> </li> <li> <a href=#collapse>Collapse</a> <ul class=nav> <li><a href=#collapse-example>Example</a></li> <li><a href=#collapse-example-accordion>Accordion example</a></li> <li><a href=#collapse-usage>Usage</a></li> <li><a href=#collapse-options>Options</a></li> <li><a href=#collapse-methods>Methods</a></li> <li><a href=#collapse-events>Events</a></li> </ul> </li> <li> <a href=#carousel>Carousel</a> <ul class=nav> <li><a href=#carousel-examples>Examples</a></li> <li><a href=#carousel-usage>Usage</a></li> <li><a href=#carousel-options>Options</a></li> <li><a href=#carousel-methods>Methods</a></li> <li><a href=#carousel-events>Events</a></li> </ul> </li> <li> <a href=#affix>Affix</a> <ul class=nav> <li><a href=#affix-examples>Examples</a></li> <li><a href=#affix-usage>Usage</a></li> <li><a href=#affix-options>Options</a></li> <li><a href=#affix-methods>Methods</a></li> <li><a href=#affix-events>Events</a></li> </ul> </li> </ul> <a href=#top class=back-to-top> Back to top </a> <a href=# class=bs-docs-theme-toggle role=button> Preview theme </a> </nav> </div> </div> </div> <footer class=bs-docs-footer> <div class=container> <ul class=bs-docs-footer-links> <li><a href=https://github.com/twbs/bootstrap>GitHub</a></li> <li><a href=https://twitter.com/getbootstrap>Twitter</a></li> <li><a href=../getting-started/#examples>Examples</a></li> <li><a href=../about/ >About</a></li> </ul> <p>Designed and built with all the love in the world by <a href=https://twitter.com/mdo target=_blank>@mdo</a> and <a href=https://twitter.com/fat target=_blank>@fat</a>. Maintained by the <a href=https://github.com/orgs/twbs/people>core team</a> with the help of <a href=https://github.com/twbs/bootstrap/graphs/contributors>our contributors</a>.</p> <p>Code licensed <a href=https://github.com/twbs/bootstrap/blob/master/LICENSE target=_blank rel=license>MIT</a>, docs <a href=https://creativecommons.org/licenses/by/3.0/ target=_blank rel=license>CC BY 3.0</a>.</p> </div> </footer> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script> <script>window.jQuery||document.write('<script src="../assets/js/vendor/jquery.min.js"><\/script>')</script> <script src=../dist/js/bootstrap.min.js></script> <script src=../assets/js/docs.min.js></script> <script src=../assets/js/ie10-viewport-bug-workaround.js></script> <script>var _gauges=_gauges||[];!function(){var e=document.createElement("script");e.async=!0,e.id="gauges-tracker",e.setAttribute("data-site-id","4f0dc9fef5a1f55508000013"),e.src="//secure.gaug.es/track.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}()</script> 
\ No newline at end of file
+<!DOCTYPE html>
+<html lang="en-US">
+  <meta charset="utf-8">
+  <title>Redirecting…</title>
+  <link rel="canonical" href="https://getbootstrap.com/docs/3.3/javascript/">
+  <meta http-equiv="refresh" content="0; url=https://getbootstrap.com/docs/3.3/javascript/">
+  <h1>Redirecting…</h1>
+  <a href="https://getbootstrap.com/docs/3.3/javascript/">Click here if you are not redirected.</a>
+  <script>location="https://getbootstrap.com/docs/3.3/javascript/"</script>
+</html>