f976d229bd7020a4bc63fc727fbf6c381683e06e
[bootswatch] / bower_components / bootstrap / css.html
1 ---
2 layout: default
3 title: CSS
4 slug: css
5 lead: "Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system."
6 base_url: "../"
7 ---
8
9
10   <!-- Global Bootstrap settings
11   ================================================== -->
12   <div class="bs-docs-section">
13     <div class="page-header">
14       <h1 id="overview">Overview</h1>
15     </div>
16     <p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p>
17
18     <h3 id="overview-doctype">HTML5 doctype</h3>
19     <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>
20 {% highlight html %}
21 <!DOCTYPE html>
22 <html lang="en">
23   ...
24 </html>
25 {% endhighlight %}
26
27     <h3 id="overview-mobile">Mobile first</h3>
28     <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>
29     <p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code>&lt;head&gt;</code>.</p>
30 {% highlight html %}
31 <meta name="viewport" content="width=device-width, initial-scale=1.0">
32 {% endhighlight %}
33     <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>
34 {% highlight html %}
35 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
36 {% endhighlight %}
37
38     <h3 id="overview-responsive-images">Responsive images</h3>
39     <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> and <code>height: auto;</code> to the image so that it scales nicely to the parent element.</p>
40 {% highlight html %}
41 <img src="..." class="img-responsive" alt="Responsive image">
42 {% endhighlight %}
43
44     <h3 id="overview-type-links">Typography and links</h3>
45     <p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
46     <ul>
47       <li>Remove <code>margin</code> on the body</li>
48       <li>Set <code>background-color: white;</code> on the <code>body</code></li>
49       <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>
50       <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li>
51     </ul>
52     <p>These styles can be found within <code>scaffolding.less</code>.</p>
53
54     <h3 id="overview-normalize">Normalize</h3>
55     <p>For improved cross-browser rendering, we use <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
56
57     <h3 id="overview-container">Containers</h3>
58     <p>Easily center a page's contents by wrapping its contents in a <code>.container</code>. Containers set <code>max-width</code> at various media query breakpoints to match our grid system.</p>
59 {% highlight html %}
60 <div class="container">
61   ...
62 </div>
63 {% endhighlight %}
64   </div>
65
66
67
68   <!-- Grid system
69   ================================================== -->
70   <div class="bs-docs-section">
71     <div class="page-header">
72       <h1 id="grid">Grid system</h1>
73     </div>
74     <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>
75
76     <h3 id="grid-media-queries">Media queries</h3>
77     <p>We use the following media queries to create the key breakpoints in our grid system.</p>
78 {% highlight css %}
79 /* Extra small devices (phones, up to 480px) */
80 /* No media query since this is the default in Bootstrap */
81
82 /* Small devices (tablets, 768px and up) */
83 @media (min-width: @screen-tablet) { ... }
84
85 /* Medium devices (desktops, 992px and up) */
86 @media (min-width: @screen-desktop) { ... }
87
88 /* Large devices (large desktops, 1200px and up) */
89 @media (min-width: @screen-large-desktop) { ... }
90 {% endhighlight %}
91     <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>
92 {% highlight css %}
93 @media (max-width: @screen-phone-max) { ... }
94 @media (min-width: @screen-tablet) and (max-width: @screen-tablet-max) { ... }
95 @media (min-width: @screen-desktop) and (max-width: @screen-desktop-max) { ... }
96 @media (min-width: @screen-large-desktop) { ... }
97 {% endhighlight %}
98
99     <h3 id="grid-options">Grid options</h3>
100     <p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p>
101     <div class="table-responsive">
102       <table class="table table-bordered table-striped">
103         <thead>
104           <tr>
105             <th></th>
106             <th>
107               Extra small devices
108               <small>Phones (&lt;768px)</small>
109             </th>
110             <th>
111               Small devices
112               <small>Tablets (&ge;768px)</small>
113             </th>
114             <th>
115               Medium devices
116               <small>Desktops (&ge;992px)</small>
117             </th>
118             <th>
119               Large devices
120               <small>Desktops (&ge;1200px)</small>
121             </th>
122           </tr>
123         </thead>
124         <tbody>
125           <tr>
126             <th>Grid behavior</th>
127             <td>Horizontal at all times</td>
128             <td colspan="3">Collapsed to start, horizontal above breakpoints</td>
129           </tr>
130           <tr>
131             <th>Max container width</th>
132             <td>None (auto)</td>
133             <td>750px</td>
134             <td>970px</td>
135             <td>1170px</td>
136           </tr>
137           <tr>
138             <th>Class prefix</th>
139             <td><code>.col-xs-</code></td>
140             <td><code>.col-sm-</code></td>
141             <td><code>.col-md-</code></td>
142             <td><code>.col-lg-</code></td>
143           </tr>
144           <tr>
145             <th># of columns</th>
146             <td colspan="4">12</td>
147           </tr>
148           <tr>
149             <th>Max column width</th>
150             <td class="text-muted">Auto</td>
151             <td>60px</td>
152             <td>78px</td>
153             <td>95px</td>
154           </tr>
155           <tr>
156             <th>Gutter width</th>
157             <td colspan="4">30px (15px on each side of a column)</td>
158           </tr>
159           <tr>
160             <th>Nestable</th>
161             <td colspan="4">Yes</td>
162           </tr>
163           <tr>
164             <th>Offsets</th>
165             <td colspan="1" class="text-muted">N/A</td>
166             <td colspan="3">Yes</td>
167           </tr>
168           <tr>
169             <th>Column ordering</th>
170             <td class="text-muted">N/A</td>
171             <td colspan="3">Yes</td>
172           </tr>
173         </tbody>
174       </table>
175     </div>
176
177     <h3 id="grid-example-basic">Example: Stacked-to-horizontal</h3>
178     <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.</p>
179     <div class="bs-docs-grid">
180       <div class="row show-grid">
181         <div class="col-md-1">.col-md-1</div>
182         <div class="col-md-1">.col-md-1</div>
183         <div class="col-md-1">.col-md-1</div>
184         <div class="col-md-1">.col-md-1</div>
185         <div class="col-md-1">.col-md-1</div>
186         <div class="col-md-1">.col-md-1</div>
187         <div class="col-md-1">.col-md-1</div>
188         <div class="col-md-1">.col-md-1</div>
189         <div class="col-md-1">.col-md-1</div>
190         <div class="col-md-1">.col-md-1</div>
191         <div class="col-md-1">.col-md-1</div>
192         <div class="col-md-1">.col-md-1</div>
193       </div>
194       <div class="row show-grid">
195         <div class="col-md-8">.col-md-8</div>
196         <div class="col-md-4">.col-md-4</div>
197       </div>
198       <div class="row show-grid">
199         <div class="col-md-4">.col-md-4</div>
200         <div class="col-md-4">.col-md-4</div>
201         <div class="col-md-4">.col-md-4</div>
202       </div>
203       <div class="row show-grid">
204         <div class="col-md-6">.col-md-6</div>
205         <div class="col-md-6">.col-md-6</div>
206       </div>
207     </div>
208 {% highlight html %}
209 <div class="row">
210   <div class="col-md-1">.col-md-1</div>
211   <div class="col-md-1">.col-md-1</div>
212   <div class="col-md-1">.col-md-1</div>
213   <div class="col-md-1">.col-md-1</div>
214   <div class="col-md-1">.col-md-1</div>
215   <div class="col-md-1">.col-md-1</div>
216   <div class="col-md-1">.col-md-1</div>
217   <div class="col-md-1">.col-md-1</div>
218   <div class="col-md-1">.col-md-1</div>
219   <div class="col-md-1">.col-md-1</div>
220   <div class="col-md-1">.col-md-1</div>
221   <div class="col-md-1">.col-md-1</div>
222 </div>
223 <div class="row">
224   <div class="col-md-8">.col-md-8</div>
225   <div class="col-md-4">.col-md-4</div>
226 </div>
227 <div class="row">
228   <div class="col-md-4">.col-md-4</div>
229   <div class="col-md-4">.col-md-4</div>
230   <div class="col-md-4">.col-md-4</div>
231 </div>
232 <div class="row">
233   <div class="col-md-6">.col-md-6</div>
234   <div class="col-md-6">.col-md-6</div>
235 </div>
236 {% endhighlight %}
237
238     <h3 id="grid-example-mixed">Example: Mobile and desktop</h3>
239     <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>
240     <div class="bs-docs-grid">
241       <div class="row show-grid">
242         <div class="col-xs-12 col-md-8">.col-xs-12 col-md-8</div>
243         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
244       </div>
245       <div class="row show-grid">
246         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
247         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
248         <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
249       </div>
250       <div class="row show-grid">
251         <div class="col-xs-6">.col-xs-6</div>
252         <div class="col-xs-6">.col-xs-6</div>
253       </div>
254     </div>
255 {% highlight html %}
256 <!-- Stack the columns on mobile by making one full-width and the other half-width -->
257 <div class="row">
258   <div class="col-xs-12 col-md-8">.col-xs-12 col-md-8</div>
259   <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
260 </div>
261
262 <!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
263 <div class="row">
264   <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
265   <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
266   <div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
267 </div>
268
269 <!-- Columns are always 50% wide, on mobile and desktop -->
270 <div class="row">
271   <div class="col-xs-6">.col-xs-6</div>
272   <div class="col-xs-6">.col-xs-6</div>
273 </div>
274 {% endhighlight %}
275
276     <h3 id="grid-example-mixed-complete">Example: Mobile, tablet, desktops</h3>
277     <p>Build on the previous example by creating even more dynamic and powerful layouts with tablet <code>.col-sm-*</code> classes.</p>
278     <div class="bs-docs-grid">
279       <div class="row show-grid">
280         <div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
281         <div class="col-xs-6 col-sm-6 col-md-4">.col-xs-6 .col-sm-6 .col-md-4</div>
282       </div>
283       <div class="row show-grid">
284         <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
285         <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
286         <!-- Optional: clear the XS cols if their content doesn't match in height -->
287         <div class="clearfix visible-xs"></div>
288         <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
289       </div>
290     </div>
291 {% highlight html %}
292 <div class="row">
293   <div class="col-xs-12 col-sm-6 col-md-8">.col-xs-12 .col-sm-6 .col-md-8</div>
294   <div class="col-xs-6 col-sm-6 col-md-4">.col-xs-6 .col-sm-6 .col-md-4</div>
295 </div>
296 <div class="row">
297   <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
298   <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
299   <!-- Optional: clear the XS cols if their content doesn't match in height -->
300   <div class="clearfix visible-xs"></div>
301   <div class="col-xs-6 col-sm-4 col-md-4">.col-xs-6 .col-sm-4 .col-md-4</div>
302 </div>
303 {% endhighlight %}
304
305     <h3 id="grid-responsive-resets">Responsive column resets</h3>
306     <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="../css#responsive-utilities">responsive utility classes</a>.</p>
307 {% highlight html %}
308 <div class="row">
309   <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
310   <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
311
312   <!-- Add the extra clearfix for only the required viewport -->
313   <div class="clearfix visible-xs"></div>
314
315   <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
316   <div class="col-xs-6 col-sm-3">.col-xs-6 .col-sm-3</div>
317 </div>
318 {% endhighlight %}
319     <p>In addition to column clearing at responsive breakpoints, you may need to <strong>reset offsets, pushes, or pulls</strong>. Those resets are available for medium and large grid tiers only, since they start only at the (second) small grid tier.</p>
320 {% highlight html %}
321 <div class="row">
322   <div class="col-sm-5 col-md-6">.col-sm-5 .col-md-6</div>
323   <div class="col-sm-5 col-sm-offset-2 col-md-6 col-md-offset-0">.col-sm-5 .col-sm-offset-2 .col-md-6 .col-md-offset-0</div>
324 </div>
325
326 <div class="row">
327   <div class="col-sm-6 col-md-5 col-lg-6">.col-sm-6 .col-md-5 .col-lg-6</div>
328   <div class="col-sm-6 col-md-5 col-md-offset-2 col-lg-6 col-lg-offset-0">.col-sm-6 .col-md-5 .col-md-offset-2 .col-lg-6 .col-lg-offset-0</div>
329 </div>
330 {% endhighlight %}
331
332
333     <h3 id="grid-offsetting">Offsetting columns</h3>
334     <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>
335     <div class="bs-docs-grid">
336       <div class="row show-grid">
337         <div class="col-md-4">.col-md-4</div>
338         <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
339       </div>
340       <div class="row show-grid">
341         <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
342         <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
343       </div>
344       <div class="row show-grid">
345         <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
346       </div>
347     </div>
348 {% highlight html %}
349 <div class="row">
350   <div class="col-md-4">.col-md-4</div>
351   <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
352 </div>
353 <div class="row">
354   <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
355   <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
356 </div>
357 <div class="row">
358   <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
359 </div>
360 {% endhighlight %}
361
362
363     <h3 id="grid-nesting">Nesting columns</h3>
364     <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-md-*</code> columns within an existing <code>.col-md-*</code> column. Nested rows should include a set of columns that add up to 12.</p>
365     <div class="row show-grid">
366       <div class="col-md-9">
367         Level 1: .col-md-9
368         <div class="row show-grid">
369           <div class="col-md-6">
370             Level 2: .col-md-6
371           </div>
372           <div class="col-md-6">
373             Level 2: .col-md-6
374           </div>
375         </div>
376       </div>
377     </div>
378 {% highlight html %}
379 <div class="row">
380   <div class="col-md-9">
381     Level 1: .col-md-9
382     <div class="row">
383       <div class="col-md-6">
384         Level 2: .col-md-6
385       </div>
386       <div class="col-md-6">
387         Level 2: .col-md-6
388       </div>
389     </div>
390   </div>
391 </div>
392 {% endhighlight %}
393
394     <h3 id="grid-column-ordering">Column ordering</h3>
395     <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>
396     <div class="row show-grid">
397       <div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
398       <div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
399     </div>
400
401 {% highlight html %}
402 <div class="row">
403   <div class="col-md-9 col-md-push-3">.col-md-9 .col-md-push-3</div>
404   <div class="col-md-3 col-md-pull-9">.col-md-3 .col-md-pull-9</div>
405 </div>
406 {% endhighlight %}
407
408     <h3 id="grid-less">LESS mixins and variables</h3>
409     <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>
410
411     <h4>Variables</h4>
412     <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>
413 {% highlight css %}
414 @grid-columns:              12;
415 @grid-gutter-width:         30px;
416 @grid-float-breakpoint:     768px;
417 {% endhighlight %}
418
419     <h4>Mixins</h4>
420     <p>Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.</p>
421 {% highlight css %}
422 // Creates a wrapper for a series of columns
423 .make-row(@gutter: @grid-gutter-width) {
424   // Then clear the floated columns
425   .clearfix();
426
427   @media (min-width: @screen-small) {
428     margin-left:  (@gutter / -2);
429     margin-right: (@gutter / -2);
430   }
431
432   // Negative margin nested rows out to align the content of columns
433   .row {
434     margin-left:  (@gutter / -2);
435     margin-right: (@gutter / -2);
436   }
437 }
438
439 // Generate the extra small columns
440 .make-xs-column(@columns; @gutter: @grid-gutter-width) {
441   position: relative;
442   // Prevent columns from collapsing when empty
443   min-height: 1px;
444   // Inner gutter via padding
445   padding-left:  (@gutter / 2);
446   padding-right: (@gutter / 2);
447
448   // Calculate width based on number of columns available
449   @media (min-width: @grid-float-breakpoint) {
450     float: left;
451     width: percentage((@columns / @grid-columns));
452   }
453 }
454
455 // Generate the small columns
456 .make-sm-column(@columns; @gutter: @grid-gutter-width) {
457   position: relative;
458   // Prevent columns from collapsing when empty
459   min-height: 1px;
460   // Inner gutter via padding
461   padding-left:  (@gutter / 2);
462   padding-right: (@gutter / 2);
463
464   // Calculate width based on number of columns available
465   @media (min-width: @screen-small) {
466     float: left;
467     width: percentage((@columns / @grid-columns));
468   }
469 }
470
471 // Generate the small column offsets
472 .make-sm-column-offset(@columns) {
473   @media (min-width: @screen-small) {
474     margin-left: percentage((@columns / @grid-columns));
475   }
476 }
477 .make-sm-column-push(@columns) {
478   @media (min-width: @screen-small) {
479     left: percentage((@columns / @grid-columns));
480   }
481 }
482 .make-sm-column-pull(@columns) {
483   @media (min-width: @screen-small) {
484     right: percentage((@columns / @grid-columns));
485   }
486 }
487
488 // Generate the medium columns
489 .make-md-column(@columns; @gutter: @grid-gutter-width) {
490   position: relative;
491   // Prevent columns from collapsing when empty
492   min-height: 1px;
493   // Inner gutter via padding
494   padding-left:  (@gutter / 2);
495   padding-right: (@gutter / 2);
496
497   // Calculate width based on number of columns available
498   @media (min-width: @screen-medium) {
499     float: left;
500     width: percentage((@columns / @grid-columns));
501   }
502 }
503
504 // Generate the large column offsets
505 .make-md-column-offset(@columns) {
506   @media (min-width: @screen-medium) {
507     margin-left: percentage((@columns / @grid-columns));
508   }
509 }
510 .make-md-column-push(@columns) {
511   @media (min-width: @screen-medium) {
512     left: percentage((@columns / @grid-columns));
513   }
514 }
515 .make-md-column-pull(@columns) {
516   @media (min-width: @screen-medium) {
517     right: percentage((@columns / @grid-columns));
518   }
519 }
520
521 // Generate the large columns
522 .make-lg-column(@columns; @gutter: @grid-gutter-width) {
523   position: relative;
524   // Prevent columns from collapsing when empty
525   min-height: 1px;
526   // Inner gutter via padding
527   padding-left:  (@gutter / 2);
528   padding-right: (@gutter / 2);
529
530   // Calculate width based on number of columns available
531   @media (min-width: @screen-large) {
532     float: left;
533     width: percentage((@columns / @grid-columns));
534   }
535 }
536
537 // Generate the large column offsets
538 .make-lg-column-offset(@columns) {
539   @media (min-width: @screen-large) {
540     margin-left: percentage((@columns / @grid-columns));
541   }
542 }
543 .make-lg-column-push(@columns) {
544   @media (min-width: @screen-large) {
545     left: percentage((@columns / @grid-columns));
546   }
547 }
548 .make-lg-column-pull(@columns) {
549   @media (min-width: @screen-large) {
550     right: percentage((@columns / @grid-columns));
551   }
552 }
553 {% endhighlight %}
554
555     <h4>Example usage</h4>
556     <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>
557 {% highlight css %}
558 .wrapper {
559   .make-row();
560 }
561 .content-main {
562   .make-lg-column(8);
563 }
564 .content-secondary {
565   .make-lg-column(3);
566   .make-lg-column-offset(1);
567 }
568 {% endhighlight %}
569 {% highlight html %}
570 <div class="wrapper">
571   <div class="content-main">...</div>
572   <div class="content-secondary">...</div>
573 </div>
574 {% endhighlight %}
575
576   </div>
577
578
579
580
581   <!-- Typography
582   ================================================== -->
583   <div class="bs-docs-section">
584     <div class="page-header">
585       <h1 id="type">Typography</h1>
586     </div>
587
588     <!-- Headings -->
589     <h2 id="type-headings">Headings</h2>
590     <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p>
591
592     <div class="bs-example bs-example-type">
593       <table class="table">
594         <tbody>
595           <tr>
596             <td><h1>h1. Bootstrap heading</h1></td>
597             <td>Semibold 36px</td>
598           </tr>
599           <tr>
600             <td><h2>h2. Bootstrap heading</h2></td>
601             <td>Semibold 30px</td>
602           </tr>
603           <tr>
604             <td><h3>h3. Bootstrap heading</h3></td>
605             <td>Semibold 24px</td>
606           </tr>
607           <tr>
608             <td><h4>h4. Bootstrap heading</h4></td>
609             <td>Semibold 18px</td>
610           </tr>
611           <tr>
612             <td><h5>h5. Bootstrap heading</h5></td>
613             <td>Semibold 14px</td>
614           </tr>
615           <tr>
616             <td><h6>h6. Bootstrap heading</h6></td>
617             <td>Semibold 12px</td>
618           </tr>
619         </tbody>
620       </table>
621     </div>
622 {% highlight html %}
623 <h1>...</h1>
624 <h2>...</h2>
625 <h3>...</h3>
626 <h4>...</h4>
627 <h5>...</h5>
628 <h6>...</h6>
629 {% endhighlight %}
630
631     <!-- Body copy -->
632     <h2 id="type-body-copy">Body copy</h2>
633     <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>
634     <div class="bs-example">
635       <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>
636       <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>
637       <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>
638     </div>
639 {% highlight html %}
640 <p>...</p>
641 {% endhighlight %}
642
643     <!-- Body copy .lead -->
644     <h3>Lead body copy</h3>
645     <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
646     <div class="bs-example">
647       <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
648     </div>
649 {% highlight html %}
650 <p class="lead">...</p>
651 {% endhighlight %}
652
653     <!-- Using LESS -->
654     <h3>Built with Less</h3>
655     <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>
656
657
658     <!-- Emphasis -->
659     <h2 id="type-emphasis">Emphasis</h2>
660     <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
661
662     <h3>Small text</h3>
663     <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>
664     <div class="bs-example">
665       <p><small>This line of text is meant to be treated as fine print.</small></p>
666     </div>
667 {% highlight html %}
668 <small>This line of text is meant to be treated as fine print.</small>
669 {% endhighlight %}
670
671
672     <h3>Bold</h3>
673     <p>For emphasizing a snippet of text with a heavier font-weight.</p>
674     <div class="bs-example">
675       <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
676     </div>
677 {% highlight html %}
678 <strong>rendered as bold text</strong>
679 {% endhighlight %}
680
681     <h3>Italics</h3>
682     <p>For emphasizing a snippet of text with italics.</p>
683     <div class="bs-example">
684       <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
685     </div>
686 {% highlight html %}
687 <em>rendered as italicized text</em>
688 {% endhighlight %}
689
690     <div class="bs-callout bs-callout-info">
691       <h4>Alternate elements</h4>
692       <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>
693     </div>
694
695     <h3>Alignment classes</h3>
696     <p>Easily realign text to components with text alignment classes.</p>
697     <div class="bs-example">
698       <p class="text-left">Left aligned text.</p>
699       <p class="text-center">Center aligned text.</p>
700       <p class="text-right">Right aligned text.</p>
701     </div>
702 {% highlight html %}
703 <p class="text-left">Left aligned text.</p>
704 <p class="text-center">Center aligned text.</p>
705 <p class="text-right">Right aligned text.</p>
706 {% endhighlight %}
707
708     <h3>Emphasis classes</h3>
709     <p>Convey meaning through color with a handful of emphasis utility classes.</p>
710     <div class="bs-example">
711       <p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
712       <p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
713       <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
714       <p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
715       <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
716       <p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
717     </div>
718 {% highlight html %}
719 <p class="text-muted">...</p>
720 <p class="text-primary">...</p>
721 <p class="text-success">...</p>
722 <p class="text-info">...</p>
723 <p class="text-warning">...</p>
724 <p class="text-danger">...</p>
725 {% endhighlight %}
726
727
728     <!-- Abbreviations -->
729     <h2 id="type-abbreviations">Abbreviations</h2>
730     <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.</p>
731
732     <h3>Basic abbreviation</h3>
733     <p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute with the <code>&lt;abbr&gt;</code> element.</p>
734     <div class="bs-example">
735       <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
736     </div>
737 {% highlight html %}
738 <abbr title="attribute">attr</abbr>
739 {% endhighlight %}
740
741     <h3>Initialism</h3>
742     <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
743     <div class="bs-example">
744       <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
745     </div>
746 {% highlight html %}
747 <abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
748 {% endhighlight %}
749
750
751     <!-- Addresses -->
752     <h2 id="type-addresses">Addresses</h2>
753     <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>
754     <div class="bs-example">
755       <address>
756         <strong>Twitter, Inc.</strong><br>
757         795 Folsom Ave, Suite 600<br>
758         San Francisco, CA 94107<br>
759         <abbr title="Phone">P:</abbr> (123) 456-7890
760       </address>
761       <address>
762         <strong>Full Name</strong><br>
763         <a href="mailto:#">first.last@example.com</a>
764       </address>
765     </div>
766 {% highlight html %}
767 <address>
768   <strong>Twitter, Inc.</strong><br>
769   795 Folsom Ave, Suite 600<br>
770   San Francisco, CA 94107<br>
771   <abbr title="Phone">P:</abbr> (123) 456-7890
772 </address>
773
774 <address>
775   <strong>Full Name</strong><br>
776   <a href="mailto:#">first.last@example.com</a>
777 </address>
778 {% endhighlight %}
779
780
781     <!-- Blockquotes -->
782     <h2 id="type-blockquotes">Blockquotes</h2>
783     <p>For quoting blocks of content from another source within your document.</p>
784
785     <h3>Default blockquote</h3>
786     <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>
787     <div class="bs-example">
788       <blockquote>
789         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
790       </blockquote>
791     </div>
792 {% highlight html %}
793 <blockquote>
794   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
795 </blockquote>
796 {% endhighlight %}
797
798     <h3>Blockquote options</h3>
799     <p>Style and content changes for simple variations on a standard <code>&lt;blockquote&gt;</code>.</p>
800
801     <h4>Naming a source</h4>
802     <p>Add <code>&lt;small&gt;</code> tag for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
803     <div class="bs-example">
804       <blockquote>
805         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
806         <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
807       </blockquote>
808     </div>
809 {% highlight html %}
810 <blockquote>
811   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
812   <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
813 </blockquote>
814 {% endhighlight %}
815
816     <h4>Alternate displays</h4>
817     <p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p>
818     <div class="bs-example" style="overflow: hidden;">
819       <blockquote class="pull-right">
820         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
821         <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
822       </blockquote>
823     </div>
824 {% highlight html %}
825 <blockquote class="pull-right">
826   ...
827 </blockquote>
828 {% endhighlight %}
829
830
831     <!-- Lists -->
832     <h2 id="type-lists">Lists</h2>
833
834     <h3>Unordered</h3>
835     <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
836     <div class="bs-example">
837       <ul>
838         <li>Lorem ipsum dolor sit amet</li>
839         <li>Consectetur adipiscing elit</li>
840         <li>Integer molestie lorem at massa</li>
841         <li>Facilisis in pretium nisl aliquet</li>
842         <li>Nulla volutpat aliquam velit
843           <ul>
844             <li>Phasellus iaculis neque</li>
845             <li>Purus sodales ultricies</li>
846             <li>Vestibulum laoreet porttitor sem</li>
847             <li>Ac tristique libero volutpat at</li>
848           </ul>
849         </li>
850         <li>Faucibus porta lacus fringilla vel</li>
851         <li>Aenean sit amet erat nunc</li>
852         <li>Eget porttitor lorem</li>
853       </ul>
854     </div>
855 {% highlight html %}
856 <ul>
857   <li>...</li>
858 </ul>
859 {% endhighlight %}
860
861     <h3>Ordered</h3>
862     <p>A list of items in which the order <em>does</em> explicitly matter.</p>
863     <div class="bs-example">
864       <ol>
865         <li>Lorem ipsum dolor sit amet</li>
866         <li>Consectetur adipiscing elit</li>
867         <li>Integer molestie lorem at massa</li>
868         <li>Facilisis in pretium nisl aliquet</li>
869         <li>Nulla volutpat aliquam velit</li>
870         <li>Faucibus porta lacus fringilla vel</li>
871         <li>Aenean sit amet erat nunc</li>
872         <li>Eget porttitor lorem</li>
873       </ol>
874     </div>
875 {% highlight html %}
876 <ol>
877   <li>...</li>
878 </ol>
879 {% endhighlight %}
880
881     <h3>Unstyled</h3>
882     <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>
883     <div class="bs-example">
884       <ul class="list-unstyled">
885         <li>Lorem ipsum dolor sit amet</li>
886         <li>Consectetur adipiscing elit</li>
887         <li>Integer molestie lorem at massa</li>
888         <li>Facilisis in pretium nisl aliquet</li>
889         <li>Nulla volutpat aliquam velit
890           <ul>
891             <li>Phasellus iaculis neque</li>
892             <li>Purus sodales ultricies</li>
893             <li>Vestibulum laoreet porttitor sem</li>
894             <li>Ac tristique libero volutpat at</li>
895           </ul>
896         </li>
897         <li>Faucibus porta lacus fringilla vel</li>
898         <li>Aenean sit amet erat nunc</li>
899         <li>Eget porttitor lorem</li>
900       </ul>
901     </div>
902 {% highlight html %}
903 <ul class="list-unstyled">
904   <li>...</li>
905 </ul>
906 {% endhighlight %}
907
908     <h3>Inline</h3>
909     <p>Place all list items on a single line with <code>display: inline-block;</code> and some light padding.</p>
910     <div class="bs-example">
911       <ul class="list-inline">
912         <li>Lorem ipsum</li>
913         <li>Phasellus iaculis</li>
914         <li>Nulla volutpat</li>
915       </ul>
916     </div>
917 {% highlight html %}
918 <ul class="list-inline">
919   <li>...</li>
920 </ul>
921 {% endhighlight %}
922
923     <h3>Description</h3>
924     <p>A list of terms with their associated descriptions.</p>
925     <div class="bs-example">
926       <dl>
927         <dt>Description lists</dt>
928         <dd>A description list is perfect for defining terms.</dd>
929         <dt>Euismod</dt>
930         <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
931         <dd>Donec id elit non mi porta gravida at eget metus.</dd>
932         <dt>Malesuada porta</dt>
933         <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
934       </dl>
935     </div>
936 {% highlight html %}
937 <dl>
938   <dt>...</dt>
939   <dd>...</dd>
940 </dl>
941 {% endhighlight %}
942
943     <h4>Horizontal description</h4>
944     <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>
945     <div class="bs-example">
946       <dl class="dl-horizontal">
947         <dt>Description lists</dt>
948         <dd>A description list is perfect for defining terms.</dd>
949         <dt>Euismod</dt>
950         <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
951         <dd>Donec id elit non mi porta gravida at eget metus.</dd>
952         <dt>Malesuada porta</dt>
953         <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
954         <dt>Felis euismod semper eget lacinia</dt>
955         <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
956       </dl>
957     </div>
958 {% highlight html %}
959 <dl class="dl-horizontal">
960   <dt>...</dt>
961   <dd>...</dd>
962 </dl>
963 {% endhighlight %}
964
965     <div class="bs-callout bs-callout-info">
966       <h4>Auto-truncating</h4>
967       <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>
968     </div>
969   </div>
970
971
972   <!-- Code
973   ================================================== -->
974   <div class="bs-docs-section">
975     <div class="page-header">
976       <h1 id="code">Code</h1>
977     </div>
978
979     <h2>Inline</h2>
980     <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
981 <div class="bs-example">
982   For example, <code>&lt;section&gt;</code> should be wrapped as inline.
983 </div>
984 {% highlight html %}
985 For example, <code>&lt;section&gt;</code> should be wrapped as inline.
986 {% endhighlight %}
987
988     <h2>Basic block</h2>
989     <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>
990 <div class="bs-example">
991   <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
992 </div>
993 {% highlight html %}
994 <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
995 {% endhighlight %}
996
997     <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>
998   </div>
999
1000
1001
1002   <!-- Tables
1003   ================================================== -->
1004   <div class="bs-docs-section">
1005     <div class="page-header">
1006       <h1 id="tables">Tables</h1>
1007     </div>
1008
1009     <h2 id="tables-example">Basic example</h2>
1010     <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>
1011     <div class="bs-example">
1012       <table class="table">
1013         <thead>
1014           <tr>
1015             <th>#</th>
1016             <th>First Name</th>
1017             <th>Last Name</th>
1018             <th>Username</th>
1019           </tr>
1020         </thead>
1021         <tbody>
1022           <tr>
1023             <td>1</td>
1024             <td>Mark</td>
1025             <td>Otto</td>
1026             <td>@mdo</td>
1027           </tr>
1028           <tr>
1029             <td>2</td>
1030             <td>Jacob</td>
1031             <td>Thornton</td>
1032             <td>@fat</td>
1033           </tr>
1034           <tr>
1035             <td>3</td>
1036             <td>Larry</td>
1037             <td>the Bird</td>
1038             <td>@twitter</td>
1039           </tr>
1040         </tbody>
1041       </table>
1042     </div><!-- /example -->
1043 {% highlight html %}
1044 <table class="table">
1045   ...
1046 </table>
1047 {% endhighlight %}
1048
1049
1050     <h2 id="tables-striped">Striped rows</h2>
1051     <p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>&lt;tbody&gt;</code>.</p>
1052     <div class="bs-callout bs-callout-danger">
1053       <h4>Cross-browser compatibility</h4>
1054       <p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in Internet Explorer 8.</p>
1055     </div>
1056     <div class="bs-example">
1057       <table class="table table-striped">
1058         <thead>
1059           <tr>
1060             <th>#</th>
1061             <th>First Name</th>
1062             <th>Last Name</th>
1063             <th>Username</th>
1064           </tr>
1065         </thead>
1066         <tbody>
1067           <tr>
1068             <td>1</td>
1069             <td>Mark</td>
1070             <td>Otto</td>
1071             <td>@mdo</td>
1072           </tr>
1073           <tr>
1074             <td>2</td>
1075             <td>Jacob</td>
1076             <td>Thornton</td>
1077             <td>@fat</td>
1078           </tr>
1079           <tr>
1080             <td>3</td>
1081             <td>Larry</td>
1082             <td>the Bird</td>
1083             <td>@twitter</td>
1084           </tr>
1085         </tbody>
1086       </table>
1087     </div><!-- /example -->
1088 {% highlight html %}
1089 <table class="table table-striped">
1090   ...
1091 </table>
1092 {% endhighlight %}
1093
1094
1095     <h2 id="tables-bordered">Bordered table</h2>
1096     <p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p>
1097     <div class="bs-example">
1098       <table class="table table-bordered">
1099         <thead>
1100           <tr>
1101             <th>#</th>
1102             <th>First Name</th>
1103             <th>Last Name</th>
1104             <th>Username</th>
1105           </tr>
1106         </thead>
1107         <tbody>
1108           <tr>
1109             <td rowspan="2">1</td>
1110             <td>Mark</td>
1111             <td>Otto</td>
1112             <td>@mdo</td>
1113           </tr>
1114           <tr>
1115             <td>Mark</td>
1116             <td>Otto</td>
1117             <td>@TwBootstrap</td>
1118           </tr>
1119           <tr>
1120             <td>2</td>
1121             <td>Jacob</td>
1122             <td>Thornton</td>
1123             <td>@fat</td>
1124           </tr>
1125           <tr>
1126             <td>3</td>
1127             <td colspan="2">Larry the Bird</td>
1128             <td>@twitter</td>
1129           </tr>
1130         </tbody>
1131       </table>
1132     </div><!-- /example -->
1133 {% highlight html %}
1134 <table class="table table-bordered">
1135   ...
1136 </table>
1137 {% endhighlight %}
1138
1139
1140     <h2 id="tables-hover-rows">Hover rows</h2>
1141     <p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</p>
1142     <div class="bs-example">
1143       <table class="table table-hover">
1144         <thead>
1145           <tr>
1146             <th>#</th>
1147             <th>First Name</th>
1148             <th>Last Name</th>
1149             <th>Username</th>
1150           </tr>
1151         </thead>
1152         <tbody>
1153           <tr>
1154             <td>1</td>
1155             <td>Mark</td>
1156             <td>Otto</td>
1157             <td>@mdo</td>
1158           </tr>
1159           <tr>
1160             <td>2</td>
1161             <td>Jacob</td>
1162             <td>Thornton</td>
1163             <td>@fat</td>
1164           </tr>
1165           <tr>
1166             <td>3</td>
1167             <td colspan="2">Larry the Bird</td>
1168             <td>@twitter</td>
1169           </tr>
1170         </tbody>
1171       </table>
1172     </div><!-- /example -->
1173 {% highlight html %}
1174 <table class="table table-hover">
1175   ...
1176 </table>
1177 {% endhighlight %}
1178
1179
1180     <h2 id="tables-condensed">Condensed table</h2>
1181     <p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p>
1182     <div class="bs-example">
1183       <table class="table table-condensed">
1184         <thead>
1185           <tr>
1186             <th>#</th>
1187             <th>First Name</th>
1188             <th>Last Name</th>
1189             <th>Username</th>
1190           </tr>
1191         </thead>
1192         <tbody>
1193           <tr>
1194             <td>1</td>
1195             <td>Mark</td>
1196             <td>Otto</td>
1197             <td>@mdo</td>
1198           </tr>
1199           <tr>
1200             <td>2</td>
1201             <td>Jacob</td>
1202             <td>Thornton</td>
1203             <td>@fat</td>
1204           </tr>
1205           <tr>
1206             <td>3</td>
1207             <td colspan="2">Larry the Bird</td>
1208             <td>@twitter</td>
1209           </tr>
1210         </tbody>
1211       </table>
1212     </div><!-- /example -->
1213 {% highlight html %}
1214 <table class="table table-condensed">
1215   ...
1216 </table>
1217 {% endhighlight %}
1218
1219
1220     <h2 id="tables-contextual-classes">Contextual classes</h2>
1221     <p>Use contextual classes to color table rows or individual cells.</p>
1222     <div class="table-responsive">
1223       <table class="table table-bordered table-striped">
1224         <colgroup>
1225           <col class="col-lg-1">
1226           <col class="col-lg-7">
1227         </colgroup>
1228         <thead>
1229           <tr>
1230             <th>Class</th>
1231             <th>Description</th>
1232           </tr>
1233         </thead>
1234         <tbody>
1235           <tr>
1236             <td>
1237               <code>.active</code>
1238             </td>
1239             <td>Applies the hover color to a particular row or cell</td>
1240           </tr>
1241           <tr>
1242             <td>
1243               <code>.success</code>
1244             </td>
1245             <td>Indicates a successful or positive action</td>
1246           </tr>
1247           <tr>
1248             <td>
1249               <code>.warning</code>
1250             </td>
1251             <td>Indicates a warning that might need attention</td>
1252           </tr>
1253           <tr>
1254             <td>
1255               <code>.danger</code>
1256             </td>
1257             <td>Indicates a dangerous or potentially negative action</td>
1258           </tr>
1259         </tbody>
1260       </table>
1261     </div>
1262     <div class="bs-example">
1263       <table class="table">
1264         <thead>
1265           <tr>
1266             <th>#</th>
1267             <th>Column heading</th>
1268             <th>Column heading</th>
1269             <th>Column heading</th>
1270           </tr>
1271         </thead>
1272         <tbody>
1273           <tr class="active">
1274             <td>1</td>
1275             <td>Column content</td>
1276             <td>Column content</td>
1277             <td>Column content</td>
1278           </tr>
1279           <tr>
1280             <td>2</td>
1281             <td>Column content</td>
1282             <td>Column content</td>
1283             <td>Column content</td>
1284           </tr>
1285           <tr class="success">
1286             <td>3</td>
1287             <td>Column content</td>
1288             <td>Column content</td>
1289             <td>Column content</td>
1290           </tr>
1291           <tr>
1292             <td>4</td>
1293             <td>Column content</td>
1294             <td>Column content</td>
1295             <td>Column content</td>
1296           </tr>
1297           <tr class="warning">
1298             <td>5</td>
1299             <td>Column content</td>
1300             <td>Column content</td>
1301             <td>Column content</td>
1302           </tr>
1303           <tr>
1304             <td>6</td>
1305             <td>Column content</td>
1306             <td>Column content</td>
1307             <td>Column content</td>
1308           </tr>
1309           <tr class="danger">
1310             <td>7</td>
1311             <td>Column content</td>
1312             <td>Column content</td>
1313             <td>Column content</td>
1314           </tr>
1315         </tbody>
1316       </table>
1317     </div><!-- /example -->
1318 {% highlight html %}
1319 <!-- On rows -->
1320 <tr class="active">...</tr>
1321 <tr class="success">...</tr>
1322 <tr class="warning">...</tr>
1323 <tr class="danger">...</tr>
1324
1325 <!-- On cells (`td` or `th`) -->
1326 <tr>
1327   <td class="active">...</td>
1328   <td class="success">...</td>
1329   <td class="warning">...</td>
1330   <td class="danger">...</td>
1331 </tr>
1332 {% endhighlight %}
1333
1334
1335     <h2 id="tables-responsive">Responsive tables</h2>
1336     <p>Create responsive tables by wrapping any <code>.table</code> in <code>.table-responsive</code> to make them scroll horizontally up to small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.</p>
1337     <div class="bs-example">
1338       <div class="table-responsive">
1339         <table class="table">
1340           <thead>
1341             <tr>
1342               <th>#</th>
1343               <th>Table heading</th>
1344               <th>Table heading</th>
1345               <th>Table heading</th>
1346               <th>Table heading</th>
1347               <th>Table heading</th>
1348               <th>Table heading</th>
1349             </tr>
1350           </thead>
1351           <tbody>
1352             <tr>
1353               <td>1</td>
1354               <td>Table cell</td>
1355               <td>Table cell</td>
1356               <td>Table cell</td>
1357               <td>Table cell</td>
1358               <td>Table cell</td>
1359               <td>Table cell</td>
1360             </tr>
1361             <tr>
1362               <td>2</td>
1363               <td>Table cell</td>
1364               <td>Table cell</td>
1365               <td>Table cell</td>
1366               <td>Table cell</td>
1367               <td>Table cell</td>
1368               <td>Table cell</td>
1369             </tr>
1370             <tr>
1371               <td>3</td>
1372               <td>Table cell</td>
1373               <td>Table cell</td>
1374               <td>Table cell</td>
1375               <td>Table cell</td>
1376               <td>Table cell</td>
1377               <td>Table cell</td>
1378             </tr>
1379           </tbody>
1380         </table>
1381       </div><!-- /.table-responsive -->
1382
1383       <div class="table-responsive">
1384         <table class="table table-bordered">
1385           <thead>
1386             <tr>
1387               <th>#</th>
1388               <th>Table heading</th>
1389               <th>Table heading</th>
1390               <th>Table heading</th>
1391               <th>Table heading</th>
1392               <th>Table heading</th>
1393               <th>Table heading</th>
1394             </tr>
1395           </thead>
1396           <tbody>
1397             <tr>
1398               <td>1</td>
1399               <td>Table cell</td>
1400               <td>Table cell</td>
1401               <td>Table cell</td>
1402               <td>Table cell</td>
1403               <td>Table cell</td>
1404               <td>Table cell</td>
1405             </tr>
1406             <tr>
1407               <td>2</td>
1408               <td>Table cell</td>
1409               <td>Table cell</td>
1410               <td>Table cell</td>
1411               <td>Table cell</td>
1412               <td>Table cell</td>
1413               <td>Table cell</td>
1414             </tr>
1415             <tr>
1416               <td>3</td>
1417               <td>Table cell</td>
1418               <td>Table cell</td>
1419               <td>Table cell</td>
1420               <td>Table cell</td>
1421               <td>Table cell</td>
1422               <td>Table cell</td>
1423             </tr>
1424           </tbody>
1425         </table>
1426       </div><!-- /.table-responsive -->
1427     </div><!-- /example -->
1428 {% highlight html %}
1429 <div class="table-responsive">
1430   <table class="table">
1431     ...
1432   </table>
1433 </div>
1434 {% endhighlight %}
1435
1436   </div>
1437
1438
1439
1440   <!-- Forms
1441   ================================================== -->
1442   <div class="bs-docs-section">
1443     <div class="page-header">
1444       <h1 id="forms">Forms</h1>
1445     </div>
1446
1447     <h2 id="forms-example">Basic example</h2>
1448     <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>
1449     <form class="bs-example" role="form">
1450       <div class="form-group">
1451         <label for="exampleInputEmail1">Email address</label>
1452         <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
1453       </div>
1454       <div class="form-group">
1455         <label for="exampleInputPassword1">Password</label>
1456         <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
1457       </div>
1458       <div class="form-group">
1459         <label for="exampleInputFile">File input</label>
1460         <input type="file" id="exampleInputFile">
1461         <p class="help-block">Example block-level help text here.</p>
1462       </div>
1463       <div class="checkbox">
1464         <label>
1465           <input type="checkbox"> Check me out
1466         </label>
1467       </div>
1468       <button type="submit" class="btn btn-default">Submit</button>
1469     </form><!-- /example -->
1470 {% highlight html %}
1471 <form role="form">
1472   <div class="form-group">
1473     <label for="exampleInputEmail1">Email address</label>
1474     <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Enter email">
1475   </div>
1476   <div class="form-group">
1477     <label for="exampleInputPassword1">Password</label>
1478     <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">
1479   </div>
1480   <div class="form-group">
1481     <label for="exampleInputFile">File input</label>
1482     <input type="file" id="exampleInputFile">
1483     <p class="help-block">Example block-level help text here.</p>
1484   </div>
1485   <div class="checkbox">
1486     <label>
1487       <input type="checkbox"> Check me out
1488     </label>
1489   </div>
1490   <button type="submit" class="btn btn-default">Submit</button>
1491 </form>
1492 {% endhighlight %}
1493
1494
1495     <h2 id="forms-inline">Inline form</h2>
1496     <p>Add <code>.form-inline</code> for left-aligned and inline-block controls for a compact layout.</p>
1497     <div class="bs-callout bs-callout-danger">
1498       <h4>Requires custom widths</h4>
1499       <p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
1500     </div>
1501     <div class="bs-callout bs-callout-danger">
1502       <h4>Always add labels</h4>
1503       <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.</p>
1504     </div>
1505     <form class="bs-example form-inline" role="form">
1506       <div class="form-group">
1507         <label class="sr-only" for="exampleInputEmail2">Email address</label>
1508         <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
1509       </div>
1510       <div class="form-group">
1511         <label class="sr-only" for="exampleInputPassword2">Password</label>
1512         <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
1513       </div>
1514       <div class="checkbox">
1515         <label>
1516           <input type="checkbox"> Remember me
1517         </label>
1518       </div>
1519       <button type="submit" class="btn btn-default">Sign in</button>
1520     </form><!-- /example -->
1521 {% highlight html %}
1522 <form class="form-inline" role="form">
1523   <div class="form-group">
1524     <label class="sr-only" for="exampleInputEmail2">Email address</label>
1525     <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Enter email">
1526   </div>
1527   <div class="form-group">
1528     <label class="sr-only" for="exampleInputPassword2">Password</label>
1529     <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password">
1530   </div>
1531   <div class="checkbox">
1532     <label>
1533       <input type="checkbox"> Remember me
1534     </label>
1535   </div>
1536   <button type="submit" class="btn btn-default">Sign in</button>
1537 </form>
1538 {% endhighlight %}
1539
1540
1541     <h2 id="forms-horizontal">Horizontal form</h2>
1542     <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. Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p>
1543     <form class="bs-example form-horizontal">
1544       <div class="form-group">
1545         <label for="inputEmail1" class="col-lg-2 control-label">Email</label>
1546         <div class="col-lg-10">
1547           <input type="email" class="form-control" id="inputEmail1" placeholder="Email">
1548         </div>
1549       </div>
1550       <div class="form-group">
1551         <label for="inputPassword1" class="col-lg-2 control-label">Password</label>
1552         <div class="col-lg-10">
1553           <input type="password" class="form-control" id="inputPassword1" placeholder="Password">
1554         </div>
1555       </div>
1556       <div class="form-group">
1557         <div class="col-lg-offset-2 col-lg-10">
1558           <div class="checkbox">
1559             <label>
1560               <input type="checkbox"> Remember me
1561             </label>
1562           </div>
1563         </div>
1564       </div>
1565       <div class="form-group">
1566         <div class="col-lg-offset-2 col-lg-10">
1567           <button type="submit" class="btn btn-default">Sign in</button>
1568         </div>
1569       </div>
1570     </form>
1571 {% highlight html %}
1572 <form class="form-horizontal" role="form">
1573   <div class="form-group">
1574     <label for="inputEmail1" class="col-lg-2 control-label">Email</label>
1575     <div class="col-lg-10">
1576       <input type="email" class="form-control" id="inputEmail1" placeholder="Email">
1577     </div>
1578   </div>
1579   <div class="form-group">
1580     <label for="inputPassword1" class="col-lg-2 control-label">Password</label>
1581     <div class="col-lg-10">
1582       <input type="password" class="form-control" id="inputPassword1" placeholder="Password">
1583     </div>
1584   </div>
1585   <div class="form-group">
1586     <div class="col-lg-offset-2 col-lg-10">
1587       <div class="checkbox">
1588         <label>
1589           <input type="checkbox"> Remember me
1590         </label>
1591       </div>
1592     </div>
1593   </div>
1594   <div class="form-group">
1595     <div class="col-lg-offset-2 col-lg-10">
1596       <button type="submit" class="btn btn-default">Sign in</button>
1597     </div>
1598   </div>
1599 </form>
1600 {% endhighlight %}
1601
1602
1603     <h2 id="forms-controls">Supported controls</h2>
1604     <p>Examples of standard form controls supported in an example form layout.</p>
1605
1606     <h3>Inputs</h3>
1607     <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>
1608     <div class="bs-callout bs-callout-danger">
1609       <h4>Type declaration required</h4>
1610       <p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p>
1611     </div>
1612     <form class="bs-example">
1613       <input type="text" class="form-control" placeholder="Text input">
1614     </form>
1615 {% highlight html %}
1616 <input type="text" class="form-control" placeholder="Text input">
1617 {% endhighlight %}
1618
1619     <h3>Textarea</h3>
1620     <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p>
1621     <form class="bs-example">
1622       <textarea class="form-control" rows="3"></textarea>
1623     </form>
1624 {% highlight html %}
1625 <textarea class="form-control" rows="3"></textarea>
1626 {% endhighlight %}
1627
1628     <h3>Checkboxes and radios</h3>
1629     <p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
1630     <h4>Default (stacked)</h4>
1631     <form class="bs-example">
1632       <div class="checkbox">
1633         <label>
1634           <input type="checkbox" value="">
1635           Option one is this and that&mdash;be sure to include why it's great
1636         </label>
1637       </div>
1638       <br>
1639       <div class="radio">
1640         <label>
1641           <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1642           Option one is this and that&mdash;be sure to include why it's great
1643         </label>
1644       </div>
1645       <div class="radio">
1646         <label>
1647           <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1648           Option two can be something else and selecting it will deselect option one
1649         </label>
1650       </div>
1651     </form>
1652 {% highlight html %}
1653 <div class="checkbox">
1654   <label>
1655     <input type="checkbox" value="">
1656     Option one is this and that&mdash;be sure to include why it's great
1657   </label>
1658 </div>
1659
1660 <div class="radio">
1661   <label>
1662     <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1663     Option one is this and that&mdash;be sure to include why it's great
1664   </label>
1665 </div>
1666 <div class="radio">
1667   <label>
1668     <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1669     Option two can be something else and selecting it will deselect option one
1670   </label>
1671 </div>
1672 {% endhighlight %}
1673
1674     <h4>Inline checkboxes</h4>
1675     <p>Use <code>.checkbox-inline</code> or <code>.radio-inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p>
1676     <form class="bs-example">
1677       <label class="checkbox-inline">
1678         <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1679       </label>
1680       <label class="checkbox-inline">
1681         <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1682       </label>
1683       <label class="checkbox-inline">
1684         <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1685       </label>
1686     </form>
1687 {% highlight html %}
1688 <label class="checkbox-inline">
1689   <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1690 </label>
1691 <label class="checkbox-inline">
1692   <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1693 </label>
1694 <label class="checkbox-inline">
1695   <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1696 </label>
1697 {% endhighlight %}
1698
1699     <h3>Selects</h3>
1700     <p>Use the default option, or add <code>multiple</code> to show multiple options at once.</p>
1701     <form class="bs-example">
1702       <select class="form-control">
1703         <option>1</option>
1704         <option>2</option>
1705         <option>3</option>
1706         <option>4</option>
1707         <option>5</option>
1708       </select>
1709       <br>
1710       <select multiple class="form-control">
1711         <option>1</option>
1712         <option>2</option>
1713         <option>3</option>
1714         <option>4</option>
1715         <option>5</option>
1716       </select>
1717     </form>
1718 {% highlight html %}
1719 <select class="form-control">
1720   <option>1</option>
1721   <option>2</option>
1722   <option>3</option>
1723   <option>4</option>
1724   <option>5</option>
1725 </select>
1726
1727 <select multiple class="form-control">
1728   <option>1</option>
1729   <option>2</option>
1730   <option>3</option>
1731   <option>4</option>
1732   <option>5</option>
1733 </select>
1734 {% endhighlight %}
1735
1736
1737     <h2 id="forms-controls-static">Static control</h2>
1738     <p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code>&lt;p&gt;</code>.</p>
1739     <form class="bs-example form-horizontal">
1740       <div class="form-group">
1741         <label class="col-lg-2 control-label">Email</label>
1742         <div class="col-lg-10">
1743           <p class="form-control-static">email@example.com</p>
1744         </div>
1745       </div>
1746       <div class="form-group">
1747         <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1748         <div class="col-lg-10">
1749           <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1750         </div>
1751       </div>
1752     </form>
1753 {% highlight html %}
1754 <form class="form-horizontal" role="form">
1755   <div class="form-group">
1756     <label class="col-lg-2 control-label">Email</label>
1757     <div class="col-lg-10">
1758       <p class="form-control-static">email@example.com</p>
1759     </div>
1760   </div>
1761   <div class="form-group">
1762     <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1763     <div class="col-lg-10">
1764       <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1765     </div>
1766   </div>
1767 </form>
1768 {% endhighlight %}
1769
1770
1771     <h2 id="forms-control-states">Form states</h2>
1772     <p>Provide feedback to users or visitors with basic feedback states on form controls and labels.</p>
1773
1774     <h3 id="forms-input-focus">Input focus</h3>
1775     <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>
1776     <form class="bs-example">
1777       <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1778     </form>
1779 {% highlight html %}
1780 <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1781 {% endhighlight %}
1782
1783     <h3 id="forms-disabled-inputs">Disabled inputs</h3>
1784     <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
1785     <form class="bs-example">
1786       <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
1787     </form>
1788 {% highlight html %}
1789 <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
1790 {% endhighlight %}
1791
1792     <h3 id="forms-disabled-fieldsets">Disabled fieldsets</h3>
1793     <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>
1794
1795     <div class="bs-callout bs-callout-warning">
1796       <h4>Link functionality of <code>&lt;a&gt;</code> not impacted</h4>
1797       <p>This class will only change the appearance of <code>&lt;a class="btn btn-default"&gt;</code> buttons, not their functionality. Use custom JavaScript to disable links here.</p>
1798     </div>
1799
1800     <div class="bs-callout bs-callout-danger">
1801       <h4>Cross-browser compatibility</h4>
1802       <p>While Bootstrap will apply these styles in all browsers, Internet Explorer 9 and below don't actually support the <code>disabled</code> attribute on a <code>&lt;fieldset&gt;</code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
1803     </div>
1804
1805     <form class="bs-example">
1806       <fieldset disabled>
1807         <div class="form-group">
1808           <label for="disabledTextInput">Disabled input</label>
1809           <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
1810         </div>
1811         <div class="form-group">
1812           <label for="disabledSelect">Disabled select menu</label>
1813           <select id="disabledSelect" class="form-control">
1814             <option>Disabled select</option>
1815           </select>
1816         </div>
1817         <div class="checkbox">
1818           <label>
1819             <input type="checkbox"> Can't check this
1820           </label>
1821         </div>
1822         <button type="submit" class="btn btn-primary">Submit</button>
1823       </fieldset>
1824     </form>
1825 {% highlight html %}
1826 <form class="form-inline" role="form">
1827   <fieldset disabled>
1828     <div class="form-group">
1829       <label for="disabledTextInput">Disabled input</label>
1830       <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
1831     </div>
1832     <div class="form-group">
1833       <label for="disabledSelect">Disabled select menu</label>
1834       <select id="disabledSelect" class="form-control">
1835         <option>Disabled select</option>
1836       </select>
1837     </div>
1838     <div class="checkbox">
1839       <label>
1840         <input type="checkbox"> Can't check this
1841       </label>
1842     </div>
1843     <button type="submit" class="btn btn-primary">Submit</button>
1844   </fieldset>
1845 </form>
1846 {% endhighlight %}
1847
1848     <h3 id="forms-validation">Validation states</h3>
1849     <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>
1850
1851     <form class="bs-example">
1852       <div class="form-group has-success">
1853         <label class="control-label" for="inputSuccess">Input with success</label>
1854         <input type="text" class="form-control" id="inputSuccess">
1855       </div>
1856       <div class="form-group has-warning">
1857         <label class="control-label" for="inputWarning">Input with warning</label>
1858         <input type="text" class="form-control" id="inputWarning">
1859       </div>
1860       <div class="form-group has-error">
1861         <label class="control-label" for="inputError">Input with error</label>
1862         <input type="text" class="form-control" id="inputError">
1863       </div>
1864     </form>
1865 {% highlight html %}
1866 <div class="form-group has-success">
1867   <label class="control-label" for="inputSuccess">Input with success</label>
1868   <input type="text" class="form-control" id="inputSuccess">
1869 </div>
1870 <div class="form-group has-warning">
1871   <label class="control-label" for="inputWarning">Input with warning</label>
1872   <input type="text" class="form-control" id="inputWarning">
1873 </div>
1874 <div class="form-group has-error">
1875   <label class="control-label" for="inputError">Input with error</label>
1876   <input type="text" class="form-control" id="inputError">
1877 </div>
1878 {% endhighlight %}
1879
1880
1881     <h2 id="forms-control-sizes">Control sizing</h2>
1882     <p>Set heights using classes like <code>.input-lg</code>, and set widths using grid column classes like <code>.col-lg-*</code>.</p>
1883
1884     <h3>Height sizing</h3>
1885     <p>Create larger or smaller form controls that match button sizes.</p>
1886     <form class="bs-example bs-example-control-sizing">
1887       <div class="controls docs-input-sizes">
1888         <input class="form-control input-lg" type="text" placeholder=".input-lg">
1889         <input type="text" class="form-control" placeholder="Default input">
1890         <input class="form-control input-sm" type="text" placeholder=".input-sm">
1891
1892         <select class="form-control input-lg">
1893           <option value="">.input-lg</option>
1894         </select>
1895         <select class="form-control">
1896           <option value="">Default select</option>
1897         </select>
1898         <select class="form-control input-sm">
1899           <option value="">.input-sm</option>
1900         </select>
1901       </div>
1902     </form>
1903 {% highlight html %}
1904 <input class="form-control input-lg" type="text" placeholder=".input-lg">
1905 <input class="form-control" type="text" placeholder="Default input">
1906 <input class="form-control input-sm" type="text" placeholder=".input-sm">
1907
1908 <select class="form-control input-lg">...</select>
1909 <select class="form-control">...</select>
1910 <select class="form-control input-sm">...</select>
1911 {% endhighlight %}
1912
1913     <h3>Column sizing</h3>
1914     <p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p>
1915     <form class="bs-example" style="padding-bottom: 15px;">
1916       <div class="row">
1917         <div class="col-lg-2">
1918           <input type="text" class="form-control" placeholder=".col-lg-2">
1919         </div>
1920         <div class="col-lg-3">
1921           <input type="text" class="form-control" placeholder=".col-lg-3">
1922         </div>
1923         <div class="col-lg-4">
1924           <input type="text" class="form-control" placeholder=".col-lg-4">
1925         </div>
1926       </div>
1927     </form>
1928 {% highlight html %}
1929 <div class="row">
1930   <div class="col-lg-2">
1931     <input type="text" class="form-control" placeholder=".col-lg-2">
1932   </div>
1933   <div class="col-lg-3">
1934     <input type="text" class="form-control" placeholder=".col-lg-3">
1935   </div>
1936   <div class="col-lg-4">
1937     <input type="text" class="form-control" placeholder=".col-lg-4">
1938   </div>
1939 </div>
1940 {% endhighlight %}
1941
1942     <h2 id="forms-help-text">Help text</h2>
1943     <p>Block level help text for form controls.</p>
1944     <form class="bs-example">
1945       <input type="text" class="form-control">
1946       <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
1947     </form>
1948 {% highlight html %}
1949 <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>
1950 {% endhighlight %}
1951
1952   </div>
1953
1954
1955
1956   <!-- Buttons
1957   ================================================== -->
1958   <div class="bs-docs-section">
1959     <div class="page-header">
1960       <h1 id="buttons">Buttons</h1>
1961     </div>
1962
1963     <h2 id="buttons-options">Options</h2>
1964     <p>Use any of the available button classes to quickly create a styled button.</p>
1965     <div class="bs-example">
1966       <button type="button" class="btn btn-default">Default</button>
1967       <button type="button" class="btn btn-primary">Primary</button>
1968       <button type="button" class="btn btn-success">Success</button>
1969       <button type="button" class="btn btn-info">Info</button>
1970       <button type="button" class="btn btn-warning">Warning</button>
1971       <button type="button" class="btn btn-danger">Danger</button>
1972       <button type="button" class="btn btn-link">Link</button>
1973     </div>
1974 {% highlight html %}
1975 <!-- Standard gray button with gradient -->
1976 <button type="button" class="btn btn-default">Default</button>
1977
1978 <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
1979 <button type="button" class="btn btn-primary">Primary</button>
1980
1981 <!-- Indicates a successful or positive action -->
1982 <button type="button" class="btn btn-success">Success</button>
1983
1984 <!-- Contextual button for informational alert messages -->
1985 <button type="button" class="btn btn-info">Info</button>
1986
1987 <!-- Indicates caution should be taken with this action -->
1988 <button type="button" class="btn btn-warning">Warning</button>
1989
1990 <!-- Indicates a dangerous or potentially negative action -->
1991 <button type="button" class="btn btn-danger">Danger</button>
1992
1993 <!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
1994 <button type="button" class="btn btn-link">Link</button>
1995 {% endhighlight %}
1996
1997     <h2 id="buttons-sizes">Sizes</h2>
1998     <p>Fancy larger or smaller buttons? Add <code>.btn-lg</code>, <code>.btn-sm</code>, or <code>.btn-xs</code> for additional sizes.</p>
1999     <div class="bs-example">
2000       <p>
2001         <button type="button" class="btn btn-primary btn-lg">Large button</button>
2002         <button type="button" class="btn btn-default btn-lg">Large button</button>
2003       </p>
2004       <p>
2005         <button type="button" class="btn btn-primary">Default button</button>
2006         <button type="button" class="btn btn-default">Default button</button>
2007       </p>
2008       <p>
2009         <button type="button" class="btn btn-primary btn-sm">Small button</button>
2010         <button type="button" class="btn btn-default btn-sm">Small button</button>
2011       </p>
2012       <p>
2013         <button type="button" class="btn btn-primary btn-xs">Extra small button</button>
2014         <button type="button" class="btn btn-default btn-xs">Extra small button</button>
2015       </p>
2016     </div>
2017 {% highlight html %}
2018 <p>
2019   <button type="button" class="btn btn-primary btn-lg">Large button</button>
2020   <button type="button" class="btn btn-default btn-lg">Large button</button>
2021 </p>
2022 <p>
2023   <button type="button" class="btn btn-primary">Default button</button>
2024   <button type="button" class="btn btn-default">Default button</button>
2025 </p>
2026 <p>
2027   <button type="button" class="btn btn-primary btn-sm">Small button</button>
2028   <button type="button" class="btn btn-default btn-sm">Small button</button>
2029 </p>
2030 <p>
2031   <button type="button" class="btn btn-primary btn-xs">Extra small button</button>
2032   <button type="button" class="btn btn-default btn-xs">Extra small button</button>
2033 </p>
2034 {% endhighlight %}
2035
2036     <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>
2037     <div class="bs-example">
2038       <div class="well" style="max-width: 400px; margin: 0 auto 10px;">
2039         <button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
2040         <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
2041       </div>
2042     </div>
2043 {% highlight html %}
2044 <button type="button" class="btn btn-primary btn-lg btn-block">Block level button</button>
2045 <button type="button" class="btn btn-default btn-lg btn-block">Block level button</button>
2046 {% endhighlight %}
2047
2048
2049     <h2 id="buttons-disabled">Disabled state</h2>
2050     <p>Make buttons look unclickable by fading them back 50%.</p>
2051
2052     <h3>Button element</h3>
2053     <p>Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.</p>
2054     <p class="bs-example">
2055       <button type="button" class="btn btn-primary btn-lg" disabled="disabled">Primary button</button>
2056       <button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
2057     </p>
2058 {% highlight html %}
2059 <button type="button" class="btn btn-lg btn-primary" disabled="disabled">Primary button</button>
2060 <button type="button" class="btn btn-default btn-lg" disabled="disabled">Button</button>
2061 {% endhighlight %}
2062
2063     <div class="bs-callout bs-callout-danger">
2064       <h4>Cross-browser compatibility</h4>
2065       <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>
2066     </div>
2067
2068     <h3>Anchor element</h3>
2069     <p>Add the <code>.disabled</code> class to <code>&lt;a&gt;</code> buttons.</p>
2070     <p class="bs-example">
2071       <a href="#" class="btn btn-primary btn-lg disabled">Primary link</a>
2072       <a href="#" class="btn btn-default btn-lg disabled">Link</a>
2073     </p>
2074 {% highlight html %}
2075 <a href="#" class="btn btn-primary btn-lg disabled">Primary link</a>
2076 <a href="#" class="btn btn-default btn-lg disabled">Link</a>
2077 {% endhighlight %}
2078     <p>
2079       We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
2080     </p>
2081     <div class="bs-callout bs-callout-warning">
2082       <h4>Link functionality not impacted</h4>
2083       <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>
2084     </div>
2085
2086
2087     <h2 id="buttons-tags">Button tags</h2>
2088     <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>
2089     <form class="bs-example">
2090       <a class="btn btn-default" href="#">Link</a>
2091       <button class="btn btn-default" type="submit">Button</button>
2092       <input class="btn btn-default" type="button" value="Input">
2093       <input class="btn btn-default" type="submit" value="Submit">
2094     </form>
2095 {% highlight html %}
2096 <a class="btn btn-default" href="#">Link</a>
2097 <button class="btn btn-default" type="submit">Button</button>
2098 <input class="btn btn-default" type="button" value="Input">
2099 <input class="btn btn-default" type="submit" value="Submit">
2100 {% endhighlight %}
2101
2102     <div class="bs-callout bs-callout-warning">
2103       <h4>Cross-browser rendering</h4>
2104       <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>
2105       <p>Among other things, there's <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=697451">a Firefox bug</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>
2106     </div>
2107
2108   </div>
2109
2110
2111
2112   <!-- Images
2113   ================================================== -->
2114   <div class="bs-docs-section">
2115     <div class="page-header">
2116       <h1 id="images">Images</h1>
2117     </div>
2118
2119     <p>Add classes to an <code>&lt;img&gt;</code> element to easily style images in any project.</p>
2120     <div class="bs-callout bs-callout-danger">
2121       <h4>Cross-browser compatibility</h4>
2122       <p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
2123     </div>
2124     <div class="bs-example bs-example-images">
2125       <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-rounded" alt="A generic square placeholder image with rounded corners">
2126       <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-circle" alt="A generic square placeholder image where only the portion within the circle circumscribed about said square is visible">
2127       <img data-src="holder.js/140x140" src="data:image/png;base64," class="img-thumbnail" alt="A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera">
2128     </div>
2129 {% highlight html %}
2130 <img src="..." alt="..." class="img-rounded">
2131 <img src="..." alt="..." class="img-circle">
2132 <img src="..." alt="..." class="img-thumbnail">
2133 {% endhighlight %}
2134
2135     <div class="bs-callout bs-callout-warning">
2136       <h4>Responsive images</h4>
2137       <p>Looking for how to make images more responsive? <a href="../css#overview-responsive-images">Check out the responsive images section</a> up top.</p>
2138     </div>
2139
2140   </div>
2141
2142
2143   <!-- Helpers
2144   ================================================== -->
2145   <div class="bs-docs-section">
2146     <div class="page-header">
2147       <h1 id="helper-classes">Helper classes</h1>
2148     </div>
2149
2150     <h3>Close icon</h3>
2151     <p>Use the generic close icon for dismissing content like modals and alerts.</p>
2152     <div class="bs-example">
2153       <p><button type="button" class="close" aria-hidden="true">&times;</button></p>
2154     </div>
2155 {% highlight html %}
2156 <button type="button" class="close" aria-hidden="true">&times;</button>
2157 {% endhighlight %}
2158
2159     <h3>.pull-left</h3>
2160     <p>Float an element left with a class. Can also be used as a mixin.</p>
2161 {% highlight html %}
2162 <div class="pull-left">...</div>
2163 {% endhighlight %}
2164 {% highlight css %}
2165 .pull-left {
2166   float: left !important;
2167 }
2168 {% endhighlight %}
2169
2170     <h3>.pull-right</h3>
2171     <p>Float an element right with a class. Can also be used as a mixin.</p>
2172 {% highlight html %}
2173 <div class="pull-right">...</div>
2174 {% endhighlight %}
2175 {% highlight css %}
2176 .pull-right {
2177   float: right !important;
2178 }
2179 {% endhighlight %}
2180
2181     <h3>.clearfix</h3>
2182     <p>Clear the <code>float</code> on any element. 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>
2183 {% highlight html %}
2184 <div class="clearfix">...</div>
2185 {% endhighlight %}
2186 {% highlight css %}
2187 // Mixin
2188 .clearfix() {
2189   &:before,
2190   &:after {
2191     content: " ";
2192     display: table;
2193   }
2194   &:after {
2195     clear: both;
2196   }
2197 }
2198
2199 // Usage
2200 .element {
2201   .clearfix();
2202 }
2203 {% endhighlight %}
2204
2205     <h3>.sr-only</h3>
2206     <p>Hide an element to all users <em>except</em> screen readers. Necessary for following <a href="{{ page.base_url }}getting-started#accessibility">accessibility best practices</a>.</p>
2207 {% highlight html %}
2208 <a class="sr-only" href="#content">Skip to content</a>
2209 {% endhighlight %}
2210   </div>
2211
2212   <!-- Responsive utilities
2213   ================================================== -->
2214   <div class="bs-docs-section" id="responsive-utilities">
2215     <div class="page-header">
2216       <h1>Responsive utilities</h1>
2217     </div>
2218     <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>
2219     <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. <strong>Responsive utilities are currently only available for block and table toggling.</strong> Use with inline and table elements is currently not supported.</p>
2220
2221
2222     <h2 id="responsive-utilities-classes">Available classes</h2>
2223     <p>Use a single or combination of the available classes for toggling content across viewport breakpoints.</p>
2224     <div class="table-responsive">
2225       <table class="table table-bordered table-striped responsive-utilities">
2226         <thead>
2227           <tr>
2228             <th></th>
2229             <th>
2230               Extra small devices
2231               <small>Phones (&lt;768px)</small>
2232             </th>
2233             <th>
2234               Small devices
2235               <small>Tablets (&ge;768px)</small>
2236             </th>
2237             <th>
2238               Medium devices
2239               <small>Desktops (&ge;992px)</small>
2240             </th>
2241             <th>
2242               Large devices
2243               <small>Desktops (&ge;1200px)</small>
2244             </th>
2245           </tr>
2246         </thead>
2247         <tbody>
2248           <tr>
2249             <th><code>.visible-xs</code></th>
2250             <td class="is-visible">Visible</td>
2251             <td class="is-hidden">Hidden</td>
2252             <td class="is-hidden">Hidden</td>
2253             <td class="is-hidden">Hidden</td>
2254           </tr>
2255           <tr>
2256             <th><code>.visible-sm</code></th>
2257             <td class="is-hidden">Hidden</td>
2258             <td class="is-visible">Visible</td>
2259             <td class="is-hidden">Hidden</td>
2260             <td class="is-hidden">Hidden</td>
2261           </tr>
2262           <tr>
2263             <th><code>.visible-md</code></th>
2264             <td class="is-hidden">Hidden</td>
2265             <td class="is-hidden">Hidden</td>
2266             <td class="is-visible">Visible</td>
2267             <td class="is-hidden">Hidden</td>
2268           </tr>
2269           <tr>
2270             <th><code>.visible-lg</code></th>
2271             <td class="is-hidden">Hidden</td>
2272             <td class="is-hidden">Hidden</td>
2273             <td class="is-hidden">Hidden</td>
2274             <td class="is-visible">Visible</td>
2275           </tr>
2276         </tbody>
2277         <tbody>
2278           <tr>
2279             <th><code>.hidden-xs</code></th>
2280             <td class="is-hidden">Hidden</td>
2281             <td class="is-visible">Visible</td>
2282             <td class="is-visible">Visible</td>
2283             <td class="is-visible">Visible</td>
2284           </tr>
2285           <tr>
2286             <th><code>.hidden-sm</code></th>
2287             <td class="is-visible">Visible</td>
2288             <td class="is-hidden">Hidden</td>
2289             <td class="is-visible">Visible</td>
2290             <td class="is-visible">Visible</td>
2291           </tr>
2292           <tr>
2293             <th><code>.hidden-md</code></th>
2294             <td class="is-visible">Visible</td>
2295             <td class="is-visible">Visible</td>
2296             <td class="is-hidden">Hidden</td>
2297             <td class="is-visible">Visible</td>
2298           </tr>
2299           <tr>
2300             <th><code>.hidden-lg</code></th>
2301             <td class="is-visible">Visible</td>
2302             <td class="is-visible">Visible</td>
2303             <td class="is-visible">Visible</td>
2304             <td class="is-hidden">Hidden</td>
2305           </tr>
2306         </tbody>
2307       </table>
2308     </div>
2309
2310
2311     <h2 id="responsive-utilities-print">Print classes</h2>
2312     <p>Similar to the regular responsive classes, use these for toggling content for print.</p>
2313     <div class="table-responsive">
2314       <table class="table table-bordered table-striped responsive-utilities">
2315         <thead>
2316           <tr>
2317             <th>Class</th>
2318             <th>Browser</th>
2319             <th>Print</th>
2320           </tr>
2321         </thead>
2322         <tbody>
2323           <tr>
2324             <th><code>.visible-print</code></th>
2325             <td class="is-hidden">Hidden</td>
2326             <td class="is-visible">Visible</td>
2327           </tr>
2328           <tr>
2329             <th><code>.hidden-print</code></th>
2330             <td class="is-visible">Visible</td>
2331             <td class="is-hidden">Hidden</td>
2332           </tr>
2333         </tbody>
2334       </table>
2335     </div>
2336
2337
2338     <h2 id="responsive-utilities-tests">Test cases</h2>
2339     <p>Resize your browser or load on different devices to test the responsive utility classes.</p>
2340
2341     <h3>Visible on...</h3>
2342     <p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
2343     <div class="row responsive-utilities-test visible-on">
2344       <div class="col-xs-6 col-sm-3">
2345         <span class="hidden-xs">Extra small</span>
2346         <span class="visible-xs">&#10004; Visible on x-small</span>
2347       </div>
2348       <div class="col-xs-6 col-sm-3">
2349         <span class="hidden-sm">Small</span>
2350         <span class="visible-sm">&#10004; Visible on small</span>
2351       </div>
2352       <div class="clearfix visible-xs"></div>
2353       <div class="col-xs-6 col-sm-3">
2354         <span class="hidden-md">Medium</span>
2355         <span class="visible-md">&#10004; Visible on medium</span>
2356       </div>
2357       <div class="col-xs-6 col-sm-3">
2358         <span class="hidden-lg">Large</span>
2359         <span class="visible-lg">&#10004; Visible on large</span>
2360       </div>
2361     </div>
2362     <div class="row responsive-utilities-test visible-on">
2363       <div class="col-xs-6 col-sm-6">
2364         <span class="hidden-xs hidden-sm">Extra small and small</span>
2365         <span class="visible-xs visible-sm">&#10004; Visible on x-small and small</span>
2366       </div>
2367       <div class="col-xs-6 col-sm-6">
2368         <span class="hidden-md hidden-lg">Medium and large</span>
2369         <span class="visible-md visible-lg">&#10004; Visible on medium and large</span>
2370       </div>
2371       <div class="clearfix visible-xs"></div>
2372       <div class="col-xs-6 col-sm-6">
2373         <span class="hidden-xs hidden-md">Extra small and medium</span>
2374         <span class="visible-xs visible-md">&#10004; Visible on x-small and medium</span>
2375       </div>
2376       <div class="col-xs-6 col-sm-6">
2377         <span class="hidden-sm hidden-lg">Small and large</span>
2378         <span class="visible-sm visible-lg">&#10004; Visible on small and large</span>
2379       </div>
2380       <div class="clearfix visible-xs"></div>
2381       <div class="col-xs-6 col-sm-6">
2382         <span class="hidden-xs hidden-lg">Extra small and large</span>
2383         <span class="visible-xs visible-lg">&#10004; Visible on x-small and large</span>
2384       </div>
2385       <div class="col-xs-6 col-sm-6">
2386         <span class="hidden-sm hidden-md">Small and medium</span>
2387         <span class="visible-sm visible-md">&#10004; Visible on small and medium</span>
2388       </div>
2389     </div>
2390
2391     <h3>Hidden on...</h3>
2392     <p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
2393     <div class="row responsive-utilities-test hidden-on">
2394       <div class="col-xs-6 col-sm-3">
2395         <span class="visible-xs">Extra small</span>
2396         <span class="hidden-xs">&#10004; Hidden on x-small</span>
2397       </div>
2398       <div class="col-xs-6 col-sm-3">
2399         <span class="visible-sm">Small</span>
2400         <span class="hidden-sm">&#10004; Hidden on small</span>
2401       </div>
2402       <div class="clearfix visible-xs"></div>
2403       <div class="col-xs-6 col-sm-3">
2404         <span class="visible-md">Medium</span>
2405         <span class="hidden-md">&#10004; Hidden on medium</span>
2406       </div>
2407       <div class="col-xs-6 col-sm-3">
2408         <span class="visible-lg">Large</span>
2409         <span class="hidden-lg">&#10004; Hidden on large</span>
2410       </div>
2411     </div>
2412     <div class="row responsive-utilities-test hidden-on">
2413       <div class="col-xs-6 col-sm-6">
2414         <span class="visible-xs visible-sm">Extra small and small</span>
2415         <span class="hidden-xs hidden-sm">&#10004; Hidden on x-small and small</span>
2416       </div>
2417       <div class="col-xs-6 col-sm-6">
2418         <span class="visible-md visible-lg">Medium and large</span>
2419         <span class="hidden-md hidden-lg">&#10004; Hidden on medium and large</span>
2420       </div>
2421       <div class="clearfix visible-xs"></div>
2422       <div class="col-xs-6 col-sm-6">
2423         <span class="visible-xs visible-md">Extra small and medium</span>
2424         <span class="hidden-xs hidden-md">&#10004; Hidden on x-small and medium</span>
2425       </div>
2426       <div class="col-xs-6 col-sm-6">
2427         <span class="visible-sm visible-lg">Small and large</span>
2428         <span class="hidden-sm hidden-lg">&#10004; Hidden on small and large</span>
2429       </div>
2430       <div class="clearfix visible-xs"></div>
2431       <div class="col-xs-6 col-sm-6">
2432         <span class="visible-xs visible-lg">Extra small and large</span>
2433         <span class="hidden-xs hidden-lg">&#10004; Hidden on x-small and large</span>
2434       </div>
2435       <div class="col-xs-6 col-sm-6">
2436         <span class="visible-sm visible-md">Small and medium</span>
2437         <span class="hidden-sm hidden-md">&#10004; Hidden on small and medium</span>
2438       </div>
2439     </div>
2440
2441   </div>