Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.<br/>
It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.<br/>
</p>
<p><strong>Nerd alert:</strong> Bootstrap is <ahref="#less"title="Read about using Bootstrap with Less">built with Less</a> and was designed to work out of the gate with modern browsers in mind.</p>
<h1>About Bootstrap <small>Brief history, browser support, and more</small></h1>
</div>
<divclass="row">
<divclass="span6 columns">
<h3>History</h3>
<p>In the earlier days of Twitter, engineers used almost any library they were familiar with to meet front-end requirements. Bootstrap began as an answer to the challenges that presented and development quickly accelerated during Twitter’s first Hackweek.</p>
<p>With the help and feedback of many engineers at Twitter, Bootstrap has grown significantly to encompass not only basic styles, but more elegant and durable front-end design patterns.</p>
<p>Read more on <ahref="https://dev.twitter.com/blog/bootstrap-twitter">dev.twitter.com ›</a></p>
</div>
<divclass="span5 columns">
<h3>Browser support</h3>
<p>Bootstrap is tested and supported in major modern browsers like Chrome, Safari, Internet Explorer, and Firefox.</p>
<imgsrc="assets/img/browsers.png"width="220px"height="48px"alt="Tested and supported in Chrome, Safari, Internet Explorer, and Firefox">
<ul>
<li>Latest Safari</li>
<li>Latest Google Chrome</li>
<li>Firefox 4+</li>
<li>Internet Explorer 7+</li>
</ul>
</div>
<divclass="span5 columns">
<h3>What's included</h3>
<p>Bootstrap comes complete with compiled CSS, uncompiled, and example templates.</p>
<ul>
<li>All original .less files</li>
<li>Fully compiled and minified CSS</li>
<li>Complete styleguide documentation</li>
<li>Example page template (more to come soon)</li>
<h1>Grid system <small>Rock the standard 940px or roll your own</small></h1>
</div>
<divclass="row">
<divclass="span4 columns">
<h2>Default grid</h2>
<p>The default grid system provided as part of Bootstrap is a 940px wide 16-column grid. It’s a flavor of the popular 960 grid system, but without the additional margin/padding on the left and right sides.</p>
</div>
<divclass="span12 columns">
<h3>Example grid markup</h3>
<p>As shown here, a basic layout can be created with two "columns," each spanning a number of the 16 foundational columns we defined as part of our grid system. See the examples below for more variations.</p>
<h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
</div>
<!-- Headings & Paragraph Copy -->
<divclass="row">
<divclass="span4 columns">
<h2>Headings and copy</h2>
<p>A standard typographic hierarchy for structuring your webpages.</p>
</div>
<divclass="span4 columns">
<h1>h1. Heading 1</h1>
<h2>h2. Heading 2</h2>
<h3>h3. Heading 3</h3>
<h4>h4. Heading 4</h4>
<h5>h5. Heading 5</h5>
<h6>h6. Heading 6</h6>
</div>
<divclass="span8 columns">
<h3>Example paragraph</h3>
<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 ut id elit.</p>
<p>Using emphasis, addresses, & abbreviations</p>
<p>
<code><strong></code>
<code><em></code>
<code><address></code>
<code><abbr></code>
</p>
</div>
<divclass="span12 columns">
<h4>When to use</h4>
<p>Emphasis tags (<code><strong></code> and <code><em></code>) should be used to indicate additional importance or emphasis of a word or phrase relative to its surrounding copy. Use <code><strong></code> for importance and <code><em></code> for <em>stress</em> emphasis.</p>
<h3>Emphasis in a paragraph</h3>
<p><ahref="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
<p><strong>Note:</strong> It's still okay to use <code><b></code> and <code><i></code> tags in HTML5, but they don't come with inherent styles anymore. <code><b></code> is meant to highlight words or phrases without conveying additional importance, while <code><i></code> is mostly for voice, technical terms, etc.</p>
<h3>Addresses</h3>
<p>The <code><address></code> element is used for contact information for its nearest ancestor, or the entire body of work. Here’s how it looks:</p>
<address>
<strong>Twitter, Inc.</strong><br/>
795 Folsom Ave, Suite 600<br/>
San Francisco, CA 94107<br/>
<abbrtitle="Phone">P:</abbr> (123) 456-7890
</address>
<p><strong>Note:</strong> Each line in an <code><address></code> must end with a line-break (<code><br /></code>) or be wrapped in a block-level tag (e.g., <code><p></code>) to properly structure the content.</p>
<h3>Abbreviations</h3>
<p>For abbreviations and acronyms, use the <code><abbr></code> tag (<code><acronym></code> is deprecated in <abbrtitle="HyperText Markup Langugage 5">HTML5</abbr>). Put the shorthand form within the tag and set a title for the complete name.</p>
</div>
</div><!-- /row -->
<!-- Blockquotes -->
<divclass="row">
<divclass="span4 columns">
<h2>Blockquotes</h2>
<p>
<code><blockquote></code>
<code><p></code>
<code><small></code>
</p>
</div>
<divclass="span12 columns">
<h4>How to quote</h4>
<p>To include a blockquote, wrap <code><blockquote></code> around <code><p></code> and <code><small></code> tags. Use the <code><small></code> element to cite your source and you'll get an em dash <code>&mdash;</code> before it.</p>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p>
<h1>Tables <small>For, you guessed it, tabular data</small></h1>
</div>
<!-- Table structure -->
<divclass="row">
<divclass="span4 columns">
<h2>Building tables</h2>
<p>
<code><table></code>
<code><thead></code>
<code><tbody></code>
<code><tr></code>
<code><th></code>
<code><td></code>
<code><colspan></code>
<code><caption></code>
</p>
<p>Tables are great—for a lot of things. Great tables, however, need a bit of markup love to be useful, scalable, and readable (at the code level). Here are a few tips to help.</p>
<p>Always wrap your column headers in a <code><thead></code> such that hierarchy is <code><thead></code> > <code><tr></code> > <code><th></code>.</p>
<p>Similar to the column headers, all your table’s body content should be wrapped in a <code><tbody></code> so your hierarchy is <code><tbody></code> > <code><tr></code> > <code><td></code>.</p>
</div>
<divclass="span12 columns">
<h3>Example: Default table styles</h3>
<p>All tables will be automatically styled with only the essential borders to ensure readability and maintain structure. No need to add extra classes or attributes.</p>
<table>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Language</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Some</td>
<td>One</td>
<td>English</td>
</tr>
<tr>
<td>2</td>
<td>Joe</td>
<td>Sixpack</td>
<td>English</td>
</tr>
<tr>
<td>3</td>
<td>Stu</td>
<td>Dent</td>
<td>Code</td>
</tr>
</tbody>
</table>
<preclass="prettyprint linenums">
<table class="common-table">
...
</table></pre>
<h3>Example: Zebra-striped</h3>
<p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.zebra-striped</code> class.</p>
<tableclass="zebra-striped">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Language</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Some</td>
<td>One</td>
<td>English</td>
</tr>
<tr>
<td>2</td>
<td>Joe</td>
<td>Sixpack</td>
<td>English</td>
</tr>
<tr>
<td>3</td>
<td>Stu</td>
<td>Dent</td>
<td>Code</td>
</tr>
</tbody>
</table>
<p><strong>Note:</strong> Zebra-striping is a progressive enhancement not available for older browsers like IE8 and below.</p>
<p>Taking the previous example, we improve the usefulness of our tables by providing sorting functionality via <ahref="https://jquery.com/">jQuery</a> and the <ahref="https://mottie.github.io/tablesorter/docs/">Tablesorter</a> plugin. <strong>Click any column’s header to change the sort.</strong></p>
<p>All forms are given default styles to present them in a readable and scalable way. Styles are provided for text inputs, select lists, textareas, radio buttons and checkboxes, and buttons.</p>
<p>Add <code>.form-stacked</code> to your form’s HTML and you’ll have labels on top of their fields instead of to their left. This works great if your forms are short or you have two columns of inputs for heavier forms.</p>
<p>As a convention, buttons are used for actions while links are used for objects. For instance, "Download" could be a button and "recent activity" could be a link.</p>
<p>All buttons default to a light gray style, but a blue <code>.primary</code> class is available. Plus, rolling your own styles is easy peasy.</p>
</div>
<divclass="span12 columns">
<h3>Example buttons</h3>
<p>Button styles can be applied to anything with the <code>.btn</code> applied. Typically you’ll want to apply these to only <code><a></code>, <code><button></code>, and select <code><input></code> elements. Here’s how it looks:</p>
<p>Fancy larger or smaller buttons? Have at it!</p>
<divclass="well">
<ahref="#"class="btn large primary">Primary action</a>
<ahref="#"class="btn large">Action</a>
</div>
<divclass="well"style="padding: 16px 19px;">
<ahref="#"class="btn small primary">Primary action</a>
<ahref="#"class="btn small">Action</a>
</div>
<h3>Disabled state</h3>
<p>For buttons that are not active or are disabled by the app for one reason or another, use the disabled state. That’s <code>.disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
<h4>Links</h4>
<divclass="well">
<ahref="#"class="btn large primary disabled">Primary action</a>
<ahref="#"class="btn large disabled">Action</a>
</div>
<h4>Buttons</h4>
<divclass="well">
<buttonclass="btn large primary disabled"disabled>Primary action</button> <buttonclass="btn large"disabled>Action</button>
<p>Our topbar is a fixed bar that houses a website’s logo or name, primary navigation, and search form.</p>
</div>
<divclass="span5 columns">
<h4>Customizable</h4>
<p>All elements within, and the entire topbar as well, are optional. You can choose to include a logo/name, nav, search, and a secondary nav—or any combination of that.</p>
</div>
<divclass="span6 columns">
<h4>Dropdowns included</h4>
<p>As part of the main navigation, we’ve included the ability for you to add dropdowns to your nav. Check out the secondary nav above (right aligned) to see how it’s done.</p>
</div>
</div>
<br/>
<divclass="row">
<divclass="span4 columns">
<h2>Tabs and pills</h2>
<p>Create simple secondary navigation with a <code><ul></code>. Swap between tabs or pills by adding the appropriate class.</p>
<p>Great for sub-sections of content like our account settings pages and user timelines for toggling between pages of like content. Available in tabbed or pill styles.</p>
<p>Ultra simplistic and minimally styled pagination inspired by Rdio. The large block is hard to miss, easily scalable, and provides large click areas.</p>
<h1>Alerts & Errors <small>Styles for success, warning, and error messages or alerts</small></h1>
</div>
<!-- Basic alert messages -->
<divclass="row">
<divclass="span4 columns">
<h2>Basic alerts</h2>
<p>One-line messages for highlighting the failure, possible failure, or success of an action. Particularly useful for forms.</p>
</div>
<divclass="span12 columns">
<divclass="alert-message error">
<aclass="close"href="#">×</a>
<p><strong>Oh snap!</strong> Change this and that and try again.</p>
</div>
<divclass="alert-message warning">
<aclass="close"href="#">×</a>
<p><strong>Holy gaucamole!</strong> Best check yo self, you’re not looking too good.</p>
</div>
<divclass="alert-message success">
<aclass="close"href="#">×</a>
<p><strong>Well done!</strong> You successfully read this alert message.</p>
</div>
<divclass="alert-message info">
<aclass="close"href="#">×</a>
<p><strong>Heads up!</strong> This is an alert that needs your attention, but it’s not a huge priority just yet.</p>
</div>
</div>
</div><!-- /row -->
<!-- Block messages -->
<divclass="row">
<divclass="span4 columns">
<h2>Block messages</h2>
<p>For messages that require a bit of explanation, we have paragraph style alerts. These are perfect for bubbling up longer error messages, warning a user of a pending action, or just presenting information for more emphasis on the page.</p>
</div>
<divclass="span12 columns">
<divclass="alert-message block-message error">
<aclass="close"href="#">×</a>
<p><strong>Oh snap! You got an error!</strong> 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><aclass="btn small"href="#">Take this action</a><aclass="btn small"href="#">Or do this</a></p>
</div>
<divclass="alert-message block-message warning">
<aclass="close"href="#">×</a>
<p><strong>Holy gaucamole! This is a warning!</strong> Best check yo self, you’re not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
<p><aclass="btn small"href="#">Take this action</a><aclass="btn small"href="#">Or do this</a></p>
</div>
<divclass="alert-message block-message success">
<aclass="close"href="#">×</a>
<p><strong>Well done!</strong> You successfully read this alert message. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas faucibus mollis interdum.</p>
<p><aclass="btn small"href="#">Take this action</a><aclass="btn small"href="#">Or do this</a></p>
</div>
<divclass="alert-message block-message info">
<aclass="close"href="#">×</a>
<p><strong>Heads up!</strong> This is an alert that needs your attention, but it’s not a huge priority just yet.</p>
<p><aclass="btn small"href="#">Take this action</a><aclass="btn small"href="#">Or do this</a></p>
<h1>Popovers <small>Components for displaying content in modals, tooltips, and popovers</small></h1>
</div>
<divclass="row">
<divclass="span4 columns">
<h2>Modals</h2>
<p>Modals—dialogs or lightboxes—are great for contextual actions in situations where it’s important that the background context be maintained.</p>
<p>Twipsies are super useful for aiding a confused user and pointing them in the right direction.</p>
</div>
<divclass="span12 columns">
<divclass="twipsies well">
<divstyle="position: relative">
<pclass="muted"style="margin-bottom: 0">
Lorem ipsum dolar sit amet illo error <ahref="#"title="below">ipsum</a> veritatis aut iste perspiciatis iste voluptas natus illo quasi odit aut natus consequuntur consequuntur, aut natus illo voluptatem odit perspiciatis laudantium rem doloremque totam voluptas. <ahref="#"title="right">Voluptasdicta</a> eaque beatae aperiam ut enim voluptatem explicabo explicabo, voluptas quia odit fugit accusantium totam totam architecto explicabo sit quasi fugit fugit, totam doloremque unde sunt <ahref="#"title="left">sed</a> dicta quae accusantium fugit voluptas nemo voluptas voluptatem <ahref="#"title="above">rem</a> quae aut veritatis quasi quae.
</p>
<divclass="twipsy below">
<divclass="twipsy-arrow"></div>
<divclass="twipsy-inner">below!</div>
</div>
<divclass="twipsy right">
<divclass="twipsy-arrow"></div>
<divclass="twipsy-inner">right!</div>
</div>
<divclass="twipsy left">
<divclass="twipsy-arrow"></div>
<divclass="twipsy-inner">left!</div>
</div>
<divclass="twipsy above">
<divclass="twipsy-arrow"></div>
<divclass="twipsy-inner">above!</div>
</div>
</div>
</div>
</div>
</div><!-- /row -->
<!-- Popovers -->
<divclass="row">
<divclass="span4 columns">
<h2>Popovers</h2>
<p>Use popovers to provide subtextual information to a page without affecting layout.</p>
</div>
<divclass="span12 columns">
<divclass="well popover-well">
<divclass="popover-wrapper">
<divclass="popover left">
<divclass="arrow"></div>
<divclass="inner">
<h3class="title">Popover Title</h3>
<divclass="content">
<p>Etiam porta sem malesuada magna mollis euismod. Maecenas faucibus mollis interdum. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Bootstrap was built with <ahref="http://markdotto.com/bootstrap/">Preboot</a>, an open-source pack of mixins and variables to be used in conjunction with <ahref="http://lesscss.org/"rel="noopener"target="_blank">Less</a>, a CSS preprocessor for faster and easier web development.</p>
<p>Not feeling the .js solution? <ahref="http://incident57.com/less/"rel="noopener"target="_blank">Try the Less Mac app</a> or <ahref="http://lesscss.org/usage/#command-line-usage-command-line-usage"rel="noopener"target="_blank">use Node.js</a> to compile when you deploy your code.</p>
<p>Here are some of the highlights of what’s included in Twitter Bootstrap as part of Bootstrap. Head over to the Bootstrap website or Github project page to download and learn more.</p>
<h3>Color variables</h3>
<p>Variables in Less are perfect for maintaining and updating your CSS headache free. When you want to change a color value or a frequently used value, update it in one spot and you’re set.</p>
<preclass="prettyprint linenums">
// Links
@linkColor: #8b59c2;
@linkColorHover: darken(@linkColor, 10);
// Grays
@black: #000;
@grayDark: lighten(@black, 25%);
@gray: lighten(@black, 50%);
@grayLight: lighten(@black, 70%);
@grayLighter: lighten(@black, 90%);
@white: #fff;
// Accent Colors
@blue: #08b5fb;
@green: #46a546;
@red: #9d261d;
@yellow: #ffc40d;
@orange: #f89406;
@pink: #c3325f;
@purple: #7a43b6;
// Baseline
@baseline: 20px;
</pre>
<h3>Commenting</h3>
<p>Less also provides another style of commenting in addition to CSS’s normal <code>/* ... */</code> syntax.</p>
<preclass="prettyprint linenums">
// This is a comment
/* This is also a comment */
</pre>
<h3>Mixins up the wazoo</h3>
<p>Mixins are basically includes or partials for CSS, allowing you to combine a block of code into one. They’re great for vendor prefixed properties like <code>box-shadow</code>, cross-browser gradients, font stacks, and more. Below is a sample of the mixins that are included with Bootstrap.</p>
Designed and built with all the love in the world <ahref="https://twitter.com/twitter"rel="noopener"target="_blank">@twitter</a> by <ahref="https://twitter.com/mdo"rel="noopener"target="_blank">@mdo</a> and <ahref="https://twitter.com/fat"rel="noopener"target="_blank">@fat</a>.<br/>
Licensed under the <ahref="https://www.apache.org/licenses/LICENSE-2.0"rel="noopener"target="_blank">Apache License v2.0</a>.