components.html 79.4 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
layout: default
title: Components
---


<!-- Subhead
================================================== -->
<header class="bs-docs-jumbotron subhead">
  <div class="container">
    <h1>Components</h1>
    <p class="lead">Dozens of reusable components built to provide navigation, alerts, popovers, and more.</p>
  </div>
</header>


  <div class="container">

    <!-- Docs nav
    ================================================== -->
    <div class="row">
Mark Otto's avatar
Mark Otto committed
22
      <div class="col-span-3 bs-docs-sidebar">
Mark Otto's avatar
Mark Otto committed
23
        <ul class="nav nav-list bs-docs-sidenav">
24
25
26
27
28
29
30
          <li><a href="#dropdowns"><i class="glyphicon glyphicon-chevron-right"></i> Dropdowns</a></li>
          <li><a href="#buttonGroups"><i class="glyphicon glyphicon-chevron-right"></i> Button groups</a></li>
          <li><a href="#buttonDropdowns"><i class="glyphicon glyphicon-chevron-right"></i> Button dropdowns</a></li>
          <li><a href="#navs"><i class="glyphicon glyphicon-chevron-right"></i> Navs</a></li>
          <li><a href="#navbar"><i class="glyphicon glyphicon-chevron-right"></i> Navbar</a></li>
          <li><a href="#breadcrumbs"><i class="glyphicon glyphicon-chevron-right"></i> Breadcrumbs</a></li>
          <li><a href="#pagination"><i class="glyphicon glyphicon-chevron-right"></i> Pagination</a></li>
31
          <li><a href="#labels"><i class="glyphicon glyphicon-chevron-right"></i> Labels</a></li>
32
          <li><a href="#badges"><i class="glyphicon glyphicon-chevron-right"></i> Badges</a></li>
33
34
35
36
37
38
          <li><a href="#typography"><i class="glyphicon glyphicon-chevron-right"></i> Typography</a></li>
          <li><a href="#thumbnails"><i class="glyphicon glyphicon-chevron-right"></i> Thumbnails</a></li>
          <li><a href="#alerts"><i class="glyphicon glyphicon-chevron-right"></i> Alerts</a></li>
          <li><a href="#progress"><i class="glyphicon glyphicon-chevron-right"></i> Progress bars</a></li>
          <li><a href="#media"><i class="glyphicon glyphicon-chevron-right"></i> Media object</a></li>
          <li><a href="#misc"><i class="glyphicon glyphicon-chevron-right"></i> Misc</a></li>
Mark Otto's avatar
Mark Otto committed
39
40
        </ul>
      </div>
Mark Otto's avatar
Mark Otto committed
41
      <div class="col-span-9">
Mark Otto's avatar
Mark Otto committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56



        <!-- Dropdowns
        ================================================== -->
        <section id="dropdowns">
          <div class="page-header">
            <h1>Dropdown menus</h1>
          </div>
          <p class="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p>

          <h3>Example</h3>
          <p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p>
          <div class="bs-docs-example">
            <div class="dropdown clearfix">
Mark Otto's avatar
Mark Otto committed
57
              <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
Mark Otto's avatar
Mark Otto committed
58
59
60
61
62
63
64
65
                <li><a tabindex="-1" href="#">Action</a></li>
                <li><a tabindex="-1" href="#">Another action</a></li>
                <li><a tabindex="-1" href="#">Something else here</a></li>
                <li class="divider"></li>
                <li><a tabindex="-1" href="#">Separated link</a></li>
              </ul>
            </div>
          </div><!-- /example -->
66
67
68
69
70
71
72
73
74
75
76
77
{% highlight html linenos %}
<div class="dropdown">
  <!-- Link or button to toggle dropdown -->
  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
    <li><a tabindex="-1" href="#">Action</a></li>
    <li><a tabindex="-1" href="#">Another action</a></li>
    <li><a tabindex="-1" href="#">Something else here</a></li>
    <li class="divider"></li>
    <li><a tabindex="-1" href="#">Separated link</a></li>
  </ul>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
78
79
80

          <h3>Aligning the menus</h3>
          <p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p>
81
82
{% highlight html linenos %}
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dLabel">
Mark Otto's avatar
Mark Otto committed
83
  ...
84
85
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
86
87
88
89
90

          <h3>Disabled menu options</h3>
          <p>Add <code>.disabled</code> to a <code>&lt;li&gt;</code> in the dropdown to disable the link.</p>
          <div class="bs-docs-example">
            <div class="dropdown clearfix">
Mark Otto's avatar
Mark Otto committed
91
              <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
Mark Otto's avatar
Mark Otto committed
92
93
94
95
96
97
                <li><a tabindex="-1" href="#">Regular link</a></li>
                <li class="disabled"><a tabindex="-1" href="#">Disabled link</a></li>
                <li><a tabindex="-1" href="#">Another link</a></li>
              </ul>
            </div>
          </div><!-- /example -->
98
99
100
101
102
103
104
{% highlight html linenos %}
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
  <li><a tabindex="-1" href="#">Regular link</a></li>
  <li class="disabled"><a tabindex="-1" href="#">Disabled link</a></li>
  <li><a tabindex="-1" href="#">Another link</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193

          <h3>Sub menus on dropdowns</h3>
          <p>Add an extra level of dropdown menus, appearing on hover like those of OS X, with some simple markup additions. Add <code>.dropdown-submenu</code> to any <code>li</code> in an existing dropdown menu for automatic styling.</p>
          <div class="bs-docs-example bs-docs-example-submenu">

            <div class="pull-left">
              <p class="muted">Default</p>
              <div class="dropdown clearfix">
                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
                  <li><a tabindex="-1" href="#">Action</a></li>
                  <li><a tabindex="-1" href="#">Another action</a></li>
                  <li><a tabindex="-1" href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu">
                    <a tabindex="-1" href="#">More options</a>
                    <ul class="dropdown-menu">
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>

            <div class="pull-left">
              <p class="muted">Dropup</p>
              <div class="dropup">
                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
                  <li><a tabindex="-1" href="#">Action</a></li>
                  <li><a tabindex="-1" href="#">Another action</a></li>
                  <li><a tabindex="-1" href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu">
                    <a tabindex="-1" href="#">More options</a>
                    <ul class="dropdown-menu">
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>

            <div class="pull-left">
              <p class="muted">Left submenu</p>
              <div class="dropdown">
                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
                  <li><a tabindex="-1" href="#">Action</a></li>
                  <li><a tabindex="-1" href="#">Another action</a></li>
                  <li><a tabindex="-1" href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu pull-left">
                    <a tabindex="-1" href="#">More options</a>
                    <ul class="dropdown-menu">
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                      <li><a tabindex="-1" href="#">Second level link</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
            </div>

          </div>
{% highlight html linenos %}
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
  ...
  <li class="dropdown-submenu pull-left">
    <a tabindex="-1" href="#">More options</a>
    <ul class="dropdown-menu">
      <li><a tabindex="-1" href="#">Second level link</a></li>
      <li><a tabindex="-1" href="#">Second level link</a></li>
      <li><a tabindex="-1" href="#">Second level link</a></li>
      <li><a tabindex="-1" href="#">Second level link</a></li>
      <li><a tabindex="-1" href="#">Second level link</a></li>
    </ul>
  </li>
  ...
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
        </section>




        <!-- Button Groups
        ================================================== -->
        <section id="buttonGroups">
          <div class="page-header">
            <h1>Button groups</h1>
          </div>
          <p class="lead">Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <a href="./javascript.html#buttons">our buttons plugin</a>.</p>

          <h3>Single button group</h3>
          <p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p>
          <div class="bs-docs-example">
            <div class="btn-group" style="margin: 9px 0 5px;">
211
212
213
              <button type="button" class="btn">Left</button>
              <button type="button" class="btn">Middle</button>
              <button type="button" class="btn">Right</button>
Mark Otto's avatar
Mark Otto committed
214
215
            </div>
          </div>
216
217
218
219
220
221
222
{% highlight html linenos %}
<div class="btn-group">
  <button type="button" class="btn">Left</button>
  <button type="button" class="btn">Middle</button>
  <button type="button" class="btn">Right</button>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
223
224
225
226
227
228

          <h3>Multiple button groups</h3>
          <p>Combine sets of <code>&lt;div class="btn-group"&gt;</code> into a <code>&lt;div class="btn-toolbar"&gt;</code> for more complex components.</p>
          <div class="bs-docs-example">
            <div class="btn-toolbar" style="margin: 0;">
              <div class="btn-group">
229
230
231
232
                <button type="button" class="btn">1</button>
                <button type="button" class="btn">2</button>
                <button type="button" class="btn">3</button>
                <button type="button" class="btn">4</button>
Mark Otto's avatar
Mark Otto committed
233
234
              </div>
              <div class="btn-group">
235
236
237
                <button type="button" class="btn">5</button>
                <button type="button" class="btn">6</button>
                <button type="button" class="btn">7</button>
Mark Otto's avatar
Mark Otto committed
238
239
              </div>
              <div class="btn-group">
240
                <button type="button" class="btn">8</button>
Mark Otto's avatar
Mark Otto committed
241
242
243
              </div>
            </div>
          </div>
244
245
246
247
248
249
250
{% highlight html linenos %}
<div class="btn-toolbar">
  <div class="btn-group">...</div>
  <div class="btn-group">...</div>
  <div class="btn-group">...</div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
251
252
253
254
255

          <h3>Vertical button groups</h3>
          <p>Make a set of buttons appear vertically stacked rather than horizontally.</p>
          <div class="bs-docs-example">
            <div class="btn-group btn-group-vertical">
256
257
258
259
              <button type="button" class="btn"><i class="glyphicon glyphicon-align-left"></i></button>
              <button type="button" class="btn"><i class="glyphicon glyphicon-align-center"></i></button>
              <button type="button" class="btn"><i class="glyphicon glyphicon-align-right"></i></button>
              <button type="button" class="btn"><i class="glyphicon glyphicon-align-justify"></i></button>
Mark Otto's avatar
Mark Otto committed
260
261
            </div>
          </div>
262
263
{% highlight html linenos %}
<div class="btn-group btn-group-vertical">
Mark Otto's avatar
Mark Otto committed
264
  ...
265
266
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
267
268
269
270
271
272
273
274
275
276

          <h3>Justified button groups</h3>
          <p>Make a group of buttons stretch at the same size to span the entire width of its parent. <strong>This only works with <code>&lt;a&gt;</code> elements</strong> as the <code>&lt;button&gt;</code> doesn't pick up these styles.</p>
          <div class="bs-docs-example">
            <div class="btn-group btn-group-justified">
              <a href="#" class="btn">Left</a>
              <a href="#" class="btn">Right</a>
              <a href="#" class="btn">Middle</a>
            </div>
          </div>
277
278
{% highlight html linenos %}
<div class="btn-group btn-group-justified">
Mark Otto's avatar
Mark Otto committed
279
  ...
280
281
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408

        </section>



        <!-- Split button dropdowns
        ================================================== -->
        <section id="buttonDropdowns">
          <div class="page-header">
            <h1>Button dropdown menus</h1>
          </div>
          <p class="lead">Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup. Requires the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a>.</p>

          <h3>Single or split button</h3>
          <p>Turn a button into dropdown toggle, or add a second button to toggle the dropdown while retaining the primary button action.</p>
          <div class="bs-docs-example">
            <div class="btn-toolbar" style="margin-bottom: 10px;">
              <div class="btn-group">
                <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Danger <span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Warning <span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Success <span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
            </div>

            <div class="btn-toolbar" style="margin: 0;">
              <div class="btn-group">
                <button class="btn">Action</button>
                <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-primary">Action</button>
                <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-danger">Danger</button>
                <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-warning">Warning</button>
                <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
                <button class="btn btn-success">Success</button>
                <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
            </div><!-- /btn-toolbar -->
          </div>
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
{% highlight html linenos %}
<!-- Single button -->
<div class="btn-group">
  <button class="btn dropdown-toggle" data-toggle="dropdown">
    Action <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

<!-- Split button -->
<div class="btn-group">
  <button class="btn">Action</button>
  <button class="btn dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
439
440
441
442
443
444

          <h3>Works with all button sizes</h3>
          <p>Button dropdowns work at any size: <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.</p>
          <div class="bs-docs-example">
            <div class="btn-toolbar" style="margin: 0;">
              <div class="btn-group">
445
446
447
                <button class="btn btn-large dropdown-toggle" type="button" data-toggle="dropdown">
                  Large button <span class="caret"></span>
                </button>
Mark Otto's avatar
Mark Otto committed
448
449
450
451
452
453
454
455
456
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
457
458
459
                <button class="btn btn-small dropdown-toggle" type="button" data-toggle="dropdown">
                  Small button <span class="caret"></span>
                </button>
Mark Otto's avatar
Mark Otto committed
460
461
462
463
464
465
466
467
468
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group">
469
470
471
                <button class="btn btn-mini dropdown-toggle" type="button" data-toggle="dropdown">
                  Mini button <span class="caret"></span>
                </button>
Mark Otto's avatar
Mark Otto committed
472
473
474
475
476
477
478
479
480
481
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
            </div><!-- /btn-toolbar -->
          </div><!-- /example -->
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
{% highlight html linenos %}
<!-- Large button group -->
<div class="btn-group">
  <button class="btn btn-large dropdown-toggle" type="button" data-toggle="dropdown">
    Large button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Small button group -->
<div class="btn-group">
  <button class="btn btn-small dropdown-toggle" type="button" data-toggle="dropdown">
    Small button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>

<!-- Mini button group -->
<div class="btn-group">
  <button class="btn btn-mini dropdown-toggle" type="button" data-toggle="dropdown">
    Mini button <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    ...
  </ul>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541

          <h3>Dropup buttons</h3>
          <p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p>
          <div class="bs-docs-example">
            <div class="btn-toolbar">
              <div class="btn-group dropup">
                <button class="btn">Dropup</button>
                <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
              <div class="btn-group dropup">
                <button class="btn primary">Right dropup</button>
                <button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
                <ul class="dropdown-menu pull-right">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </div><!-- /btn-group -->
            </div>
          </div><!-- /example -->
542
543
544
545
546
547
548
549
550
551
552
{% highlight html linenos %}
<div class="btn-group dropup">
  <button class="btn">Dropup</button>
  <button class="btn dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <!-- Dropdown menu links -->
  </ul>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575

        </section>



        <!-- Navs
        ================================================== -->
        <section id="navs">
          <div class="page-header">
            <h1>Navs</small></h1>
          </div>

          <p class="lead">Navs available in Bootstrap have shared markup, starting with the base <code>.nav</code> class, as well as shared states. Swap modifier classes to switch between each style.</p>

          <h2>Tabs</h2>
          <p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p>
          <div class="bs-docs-example">
            <ul class="nav nav-tabs">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
          </div>
576
577
578
579
580
581
582
{% highlight html linenos %}
<ul class="nav nav-tabs">
  <li class="active"><a href="#">Home</a></li>
  <li><a href="#">Profile</a></li>
  <li><a href="#">Messages</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
583
584
585
586
587
588
589
590
591
592

          <h2>List</h2>
          <p>Swap the tabs class for <code>.nav-list</code>.</p>
          <div class="bs-docs-example">
            <ul class="nav nav-list" style="max-width: 300px;">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
          </div>
593
594
595
596
597
598
599
{% highlight html linenos %}
<ul class="nav nav-list">
  <li class="active"><a href="#">Home</a></li>
  <li><a href="#">Profile</a></li>
  <li><a href="#">Messages</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
600
601
602
603
604
605
606
607
608
609

          <h2>Pills</h2>
          <p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
          <div class="bs-docs-example">
            <ul class="nav nav-pills">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
          </div>
610
611
612
613
614
615
616
{% highlight html linenos %}
<ul class="nav nav-pills">
  <li class="active"><a href="#">Home</a></li>
  <li><a href="#">Profile</a></li>
  <li><a href="#">Messages</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
617
618
619
620
621
622
623
624
          <p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p>
          <div class="bs-docs-example">
            <ul class="nav nav-pills nav-stacked" style="max-width: 300px;">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
          </div>
625
626
{% highlight html linenos %}
<ul class="nav nav-pills nav-stacked">
Mark Otto's avatar
Mark Otto committed
627
  ...
628
629
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647

          <h2>Options</h2>

          <h3>Justified links</h3>
          <p>Easily make tabs or pills equal widths of their parent with <code>.nav-justified</code>.</p>
          <div class="bs-docs-example">
            <ul class="nav nav-tabs nav-justified">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
            <br>
            <ul class="nav nav-pills nav-justified">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Profile</a></li>
              <li><a href="#">Messages</a></li>
            </ul>
          </div>
648
649
{% highlight html linenos %}
<ul class="nav nav-tabs nav-justified">
Mark Otto's avatar
Mark Otto committed
650
  ...
651
652
</ul>
<ul class="nav nav-pills nav-justified">
Mark Otto's avatar
Mark Otto committed
653
  ...
654
655
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
656
657
658
659
660
661
662
663
664
665

          <h3>Disabled state</h3>
          <p>For any nav component (tabs, pills, or list), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>. Links will remain clickable, however, unless you remove the <code>href</code> attribute. Alternatively, you could implement custom JavaScript to prevent those clicks.</p>
          <div class="bs-docs-example">
            <ul class="nav nav-pills">
              <li><a href="#">Clickable link</a></li>
              <li><a href="#">Clickable link</a></li>
              <li class="disabled"><a href="#">Disabled link</a></li>
            </ul>
          </div>
666
667
{% highlight html linenos %}
<ul class="nav nav-tabs">
Mark Otto's avatar
Mark Otto committed
668
  ...
669
  <li class="disabled"><a href="#">Disabled link</a></li>
Mark Otto's avatar
Mark Otto committed
670
  ...
671
672
673
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690

          <h3>Component alignment</h3>
          <p>To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>


          <hr class="bs-docs-separator">


          <h2>Dropdowns</h2>
          <p>Add dropdown menus with a little extra HTML and the <a href="./javascript.html#dropdowns">dropdowns JavaScript plugin</a>.</p>

          <h3>Tabs with dropdowns</h3>
          <div class="bs-docs-example">
            <ul class="nav nav-tabs">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Help</a></li>
              <li class="dropdown">
691
692
693
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                  Dropdown <span class="caret"></span>
                </a>
Mark Otto's avatar
Mark Otto committed
694
695
696
697
698
699
700
701
702
703
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </li>
            </ul>
          </div>
704
705
706
707
708
709
710
711
712
713
714
715
716
717
{% highlight html linenos %}
<ul class="nav nav-tabs">
  ...
  <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
      Dropdown <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      ...
    </ul>
  </li>
  ...
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
718
719
720
721
722
723
724

          <h3>Pills with dropdowns</h3>
          <div class="bs-docs-example">
            <ul class="nav nav-pills">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="#">Help</a></li>
              <li class="dropdown">
725
726
727
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                  Dropdown <span class="caret"></span>
                </a>
Mark Otto's avatar
Mark Otto committed
728
729
730
731
732
733
734
735
736
737
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </li>
            </ul>
          </div><!-- /example -->
738
739
740
741
742
743
744
745
746
747
748
749
750
751
{% highlight html linenos %}
<ul class="nav nav-pills">
  ...
  <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
      Dropdown <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      ...
    </ul>
  </li>
  ...
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768

        </section>



        <!-- Navbar
        ================================================== -->
        <section id="navbar">
          <div class="page-header">
            <h1>Navbar</h1>
          </div>


          <h2>Basic navbar</h2>
          <p>To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a <code>.container</code>, which sets the width of your site and content.</p>
          <div class="bs-docs-example">
            <div class="navbar">
Mark Otto's avatar
Mark Otto committed
769
              <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
770
771
772
773
774
775
776
              <ul class="nav">
                <li class="active"><a href="#">Home</a></li>
                <li><a href="#">Link</a></li>
                <li><a href="#">Link</a></li>
              </ul>
            </div>
          </div><!-- /example -->
777
778
{% highlight html linenos %}
<div class="navbar">
Mark Otto's avatar
Mark Otto committed
779
  <a class="navbar-brand" href="#">Title</a>
780
781
782
783
784
785
786
  <ul class="nav">
    <li class="active"><a href="#">Home</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
  </ul>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
787
788
789
790
791
792
793

          <h2>Navbar components</h2>

          <h3>Brand</h3>
          <p>A simple link to show your brand or project name only requires an anchor tag.</p>
          <div class="bs-docs-example">
            <div class="navbar">
Mark Otto's avatar
Mark Otto committed
794
              <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
795
796
            </div>
          </div><!-- /example -->
797
{% highlight html linenos %}
Mark Otto's avatar
Mark Otto committed
798
<a class="navbar-brand" href="#">Title</a>
799
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
800
801
802
803
804
805
806
807

          <h3>Nav links</h3>
          <p>Nav items are simple to add via unordered lists.</p>
          <div class="bs-docs-example">
            <div class="navbar">
              <ul class="nav">
                <li class="active"><a href="#">Home</a></li>
                <li><a href="#">Link</a></li>
808
                <li class="disabled"><a href="#">Disabled</a></li>
Mark Otto's avatar
Mark Otto committed
809
810
811
              </ul>
            </div>
          </div><!-- /example -->
812
813
814
815
{% highlight html linenos %}
<ul class="nav">
  <li class="active"><a href="#">Home</a></li>
  <li><a href="#">Link</a></li>
816
  <li class="disabled"><a href="#">Disabled</a></li>
817
818
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
819
820
821
          <p>You can easily add dividers to your nav links with an empty list item and a simple class. Just add the appropriate class to <code>&lt;li&gt;</code> elements between links. Dividers will be horizontal to start, but at resolutions above 768px they become vertical with the navigation.</p>
          <div class="bs-docs-example">
            <div class="navbar">
Tom Pietschker's avatar
Tom Pietschker committed
822
823
824
825
826
827
828
829
              <ul class="nav">
                <li class="active"><a href="#">Home</a></li>
                <li class="divider"></li>
                <li><a href="#">Link</a></li>
                <li class="divider"></li>
                <li><a href="#">Link</a></li>
                <li class="divider"></li>
              </ul>
Mark Otto's avatar
Mark Otto committed
830
831
            </div>
          </div><!-- /example -->
832
833
{% highlight html linenos %}
<ul class="nav">
Mark Otto's avatar
Mark Otto committed
834
  ...
835
  <li class="divider"></li>
Mark Otto's avatar
Mark Otto committed
836
  ...
837
838
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
839
840
841
842
843
844
845
846
847
848
849

          <h3>Forms</h3>
          <p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p>
          <div class="bs-docs-example">
            <div class="navbar">
              <form class="navbar-form pull-left">
                <input type="text" style="width: 200px;">
                <button type="submit" class="btn">Submit</button>
              </form>
            </div>
          </div><!-- /example -->
850
851
852
853
854
855
{% highlight html linenos %}
<form class="navbar-form pull-left">
  <input type="text" style="width: 200px;">
  <button type="submit" class="btn">Submit</button>
</form>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872

          <h3>Component alignment</h3>
          <p>Align nav links, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>

          <h3>Using dropdowns</h3>
          <p>Add dropdowns and dropups to the nav with a bit of markup and the <a href="./javascript.html#dropdowns">dropdowns JavaScript plugin</a>.</p>

          <h3>Text</h3>
          <p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code>&lt;p&gt;</code> tag for proper leading and color.</p>


          <h2>Optional display variations</h2>
          <p>Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.</p>

          <h3>Fixed to top</h3>
          <p>Add <code>.navbar-fixed-top</code> and remember to account for the hidden area underneath it by adding at least 40px <code>padding</code> to the <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
          <div class="bs-docs-example bs-navbar-top-example">
873
            <div class="navbar navbar-fixed-top" style="position: absolute; top: -1px;">
Mark Otto's avatar
Mark Otto committed
874
              <div class="container" style="width: auto;">
Mark Otto's avatar
Mark Otto committed
875
                <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
876
877
878
879
880
881
882
883
                <ul class="nav">
                  <li class="active"><a href="#">Home</a></li>
                  <li><a href="#">Link</a></li>
                  <li><a href="#">Link</a></li>
                </ul>
              </div>
            </div>
          </div><!-- /example -->
884
885
{% highlight html linenos %}
<div class="navbar navbar-fixed-top">
Mark Otto's avatar
Mark Otto committed
886
  ...
887
888
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
889
890
891
892

          <h3>Fixed to bottom</h3>
          <p>Add <code>.navbar-fixed-bottom</code> instead.</p>
          <div class="bs-docs-example bs-navbar-bottom-example">
893
            <div class="navbar navbar-fixed-bottom" style="position: absolute; bottom: -1px;">
Mark Otto's avatar
Mark Otto committed
894
              <div class="container" style="width: auto;">
Mark Otto's avatar
Mark Otto committed
895
                <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
896
897
898
899
900
901
902
903
                <ul class="nav">
                  <li class="active"><a href="#">Home</a></li>
                  <li><a href="#">Link</a></li>
                  <li><a href="#">Link</a></li>
                </ul>
              </div>
            </div>
          </div><!-- /example -->
904
905
{% highlight html linenos %}
<div class="navbar navbar-fixed-bottom">
Mark Otto's avatar
Mark Otto committed
906
  ...
907
908
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
909
910
911
912
913
914

          <h3>Static top navbar</h3>
          <p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code>. Unlike the <code>.navbar-fixed-top</code> class, you do not need to change any padding on the <code>body</code>.</p>
          <div class="bs-docs-example bs-navbar-top-example">
            <div class="navbar navbar-static-top" style="margin: -1px -1px 0;">
              <div class="container" style="width: auto;">
Mark Otto's avatar
Mark Otto committed
915
                <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
916
917
918
919
920
921
922
923
                <ul class="nav">
                  <li class="active"><a href="#">Home</a></li>
                  <li><a href="#">Link</a></li>
                  <li><a href="#">Link</a></li>
                </ul>
              </div>
            </div>
          </div><!-- /example -->
924
925
{% highlight html linenos %}
<div class="navbar navbar-static-top">
Mark Otto's avatar
Mark Otto committed
926
  ...
927
928
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
929
930
931


          <h2>Responsive navbar</h2>
Mark Otto's avatar
Mark Otto committed
932
          <p>To implement a collapsing responsive navbar, wrap your navbar content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.navbar-toggle</code>.</p>
Mark Otto's avatar
Mark Otto committed
933
934
935
          <div class="bs-docs-example">
            <div class="navbar">
              <div class="container">
Mark Otto's avatar
Mark Otto committed
936
                <a class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
Mark Otto's avatar
Mark Otto committed
937
938
939
940
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </a>
Mark Otto's avatar
Mark Otto committed
941
                <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
                <div class="nav-collapse collapse navbar-responsive-collapse">
                  <ul class="nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li class="nav-header">Nav header</li>
                        <li><a href="#">Separated link</a></li>
                        <li><a href="#">One more separated link</a></li>
                      </ul>
                    </li>
                  </ul>
960
                  <form class="navbar-form pull-left" action="">
961
                    <input type="text" class="span8" placeholder="Search">
Mark Otto's avatar
Mark Otto committed
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
                  </form>
                  <ul class="nav pull-right">
                    <li><a href="#">Link</a></li>
                    <li class="divider"></li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </li>
                  </ul>
                </div><!-- /.nav-collapse -->
978
979
              </div><!-- /.container -->
            </div><!-- /.navbar -->
Mark Otto's avatar
Mark Otto committed
980
          </div><!-- /example -->
981
982
983
984
{% highlight html linenos %}
<div class="navbar">
  <div class="container">

Mark Otto's avatar
Mark Otto committed
985
986
    <!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
    <a class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
987
988
989
990
991
992
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </a>

    <!-- Be sure to leave the brand out there if you want it shown -->
Mark Otto's avatar
Mark Otto committed
993
    <a class="navbar-brand" href="#">Title</a>
994
995
996
997
998
999
1000
1001
1002

    <!-- Place everything within .navbar-collapse to hide it until above 768px -->
    <div class="nav-collapse collapse navbar-responsive-collapse">
      ...
    </div><!-- /.nav-collapse -->
  </div><!-- /.container -->
</div><!-- /.navbar -->
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
          <div class="alert alert-info">
            <strong>Heads up!</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
          </div>


          <h2>Inverted variation</h2>
          <p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p>
          <div class="bs-docs-example">
            <div class="navbar navbar-inverse" style="position: static;">
              <div class="container">
Mark Otto's avatar
Mark Otto committed
1013
                <a class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse">
Mark Otto's avatar
Mark Otto committed
1014
1015
1016
1017
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </a>
Mark Otto's avatar
Mark Otto committed
1018
                <a class="navbar-brand" href="#">Title</a>
Mark Otto's avatar
Mark Otto committed
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
                <div class="nav-collapse collapse navbar-inverse-collapse">
                  <ul class="nav">
                    <li class="active"><a href="#">Home</a></li>
                    <li><a href="#">Link</a></li>
                    <li><a href="#">Link</a></li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li class="nav-header">Nav header</li>
                        <li><a href="#">Separated link</a></li>
                        <li><a href="#">One more separated link</a></li>
                      </ul>
                    </li>
                  </ul>
1037
                  <form class="navbar-form pull-left" action="">
1038
                    <input type="text" class="span8" placeholder="Search">
Mark Otto's avatar
Mark Otto committed
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
                  </form>
                  <ul class="nav pull-right">
                    <li><a href="#">Link</a></li>
                    <li class="divider"></li>
                    <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </li>
                  </ul>
                </div><!-- /.nav-collapse -->
              </div>
            </div><!-- /navbar -->
          </div><!-- /example -->
1058
1059
{% highlight html linenos %}
<div class="navbar navbar-inverse">
Mark Otto's avatar
Mark Otto committed
1060
  ...
1061
1062
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089

        </section>



        <!-- Breadcrumbs
        ================================================== -->
        <section id="breadcrumbs">
          <div class="page-header">
            <h1>Breadcrumbs <small></small></h1>
          </div>
          <p class="lead">Indicate the current page's location within a navigational hierarchy.</p>

          <div class="bs-docs-example">
            <ul class="breadcrumb">
              <li class="active">Home</li>
            </ul>
            <ul class="breadcrumb">
              <li><a href="#">Home</a></li>
              <li class="active">Library</li>
            </ul>
            <ul class="breadcrumb" style="margin-bottom: 5px;">
              <li><a href="#">Home</a></li>
              <li><a href="#">Library</a></li>
              <li class="active">Data</li>
            </ul>
          </div>
1090
1091
1092
1093
1094
1095
1096
1097
{% highlight html linenos %}
<ul class="breadcrumb">
  <li><a href="#">Home</a></li>
  <li><a href="#">Library</a></li>
  <li class="active">Data</li>
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123

        </section>



        <!-- Pagination
        ================================================== -->
        <section id="pagination">
          <div class="page-header">
            <h1>Pagination</h1>
          </div>
          <p class="lead">Provide pagination links for your site or app with the multi-page pagination component, or the simpler <a href="./components.html#pagination-pager">pager alternative</a>.</p>

          <h2>Standard pagination</h2>
          <p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p>
          <div class="bs-docs-example">
            <ul class="pagination">
              <li><a href="#">&laquo;</a></li>
              <li><a href="#">1</a></li>
              <li><a href="#">2</a></li>
              <li><a href="#">3</a></li>
              <li><a href="#">4</a></li>
              <li><a href="#">5</a></li>
              <li><a href="#">&raquo;</a></li>
            </ul>
          </div>
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
{% highlight html linenos %}
<ul class="pagination">
  <li><a href="#">&laquo;</a></li>
  <li><a href="#">1</a></li>
  <li><a href="#">2</a></li>
  <li><a href="#">3</a></li>
  <li><a href="#">4</a></li>
  <li><a href="#">5</a></li>
  <li><a href="#">&raquo;</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148

          <h3>Disabled and active states</h3>
          <p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p>
          <div class="bs-docs-example">
            <ul class="pagination">
              <li class="disabled"><a href="#">&laquo;</a></li>
              <li class="active"><a href="#">1</a></li>
              <li><a href="#">2</a></li>
              <li><a href="#">3</a></li>
              <li><a href="#">4</a></li>
              <li><a href="#">5</a></li>
              <li><a href="#">&raquo;</a></li>
           </ul>
          </div>
1149
1150
1151
1152
{% highlight html linenos %}
<ul class="pagination">
  <li class="disabled"><a href="#">&laquo;</a></li>
  <li class="active"><a href="#">1</a></li>
Mark Otto's avatar
Mark Otto committed
1153
  ...
1154
1155
1156
1157
1158
1159
1160
</ul>
{% endhighlight %}
          <p>You can optionally swap out active or disabled anchors for <code>&lt;span&gt;</code> to remove click functionality while retaining intended styles.</p>
{% highlight html linenos %}
<ul class="pagination">
  <li class="disabled"><span>&laquo;</span></li>
  <li class="active"><span>1</span></li>
Mark Otto's avatar
Mark Otto committed
1161
  ...
1162
1163
1164
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213

          <h3>Sizes</h3>
          <p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p>
          <div class="bs-docs-example">
            <div>
              <ul class="pagination pagination-large">
                <li><a href="#">&laquo;</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
              </ul>
            </div>
            <div>
              <ul class="pagination">
                <li><a href="#">&laquo;</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
              </ul>
            </div>
            <div>
              <ul class="pagination pagination-small">
                <li><a href="#">&laquo;</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
              </ul>
            </div>
            <div>
              <ul class="pagination pagination-mini">
                <li><a href="#">&laquo;</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">5</a></li>
                <li><a href="#">&raquo;</a></li>
              </ul>
            </div>
          </div>
1214
1215
1216
1217
1218
1219
1220
{% highlight html linenos %}
<ul class="pagination pagination-large">...</ul>
<ul class="pagination pagination">...</ul>
<ul class="pagination pagination-small">...</ul>
<ul class="pagination pagination-mini">...</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232

          <h2 id="pagination-pager">Pager</h2>
          <p>Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.</p>

          <h3>Default example</h3>
          <p>By default, the pager centers links.</p>
          <div class="bs-docs-example">
            <ul class="pager">
              <li><a href="#">Previous</a></li>
              <li><a href="#">Next</a></li>
            </ul>
          </div>
1233
1234
1235
1236
1237
1238
{% highlight html linenos %}
<ul class="pager">
  <li><a href="#">Previous</a></li>
  <li><a href="#">Next</a></li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1239
1240
1241
1242
1243
1244
1245
1246
1247

          <h3>Aligned links</h3>
          <p>Alternatively, you can align each link to the sides:</p>
          <div class="bs-docs-example">
            <ul class="pager">
              <li class="previous"><a href="#">&larr; Older</a></li>
              <li class="next"><a href="#">Newer &rarr;</a></li>
            </ul>
          </div>
1248
1249
1250
1251
1252
1253
1254
{% highlight html linenos %}
<ul class="pager">
  <li class="previous"><a href="#">&larr; Older</a></li>
  <li class="next"><a href="#">Newer &rarr;</a></li>
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1255
1256
1257
1258
1259
1260
1261
1262
1263

          <h3>Optional disabled state</h3>
          <p>Pager links also use the general <code>.disabled</code> utility class from the pagination.</p>
          <div class="bs-docs-example">
            <ul class="pager">
              <li class="previous disabled"><a href="#">&larr; Older</a></li>
              <li class="next"><a href="#">Newer &rarr;</a></li>
            </ul>
          </div>
1264
1265
1266
1267
1268
1269
1270
{% highlight html linenos %}
<ul class="pager">
  <li class="previous disabled"><a href="#">&larr; Older</a></li>
  <li class="next"><a href="#">Newer &rarr;</a></li>
</ul>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1271
1272
1273
1274
1275

        </section>



1276
1277
        <!-- Labels
        ================================================== -->
1278
        <section id="labels">
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
          <div class="page-header">
            <h1>Labels</h1>
          </div>
          <p class="lead"></p>

          <h3>Example</h3>
          <div class="bs-docs-example">
            <h1>Example heading <span class="label">New</span></h1>
            <h2>Example heading <span class="label">New</span></h2>
            <h3>Example heading <span class="label">New</span></h3>
            <h4>Example heading <span class="label">New</span></h4>
            <h5>Example heading <span class="label">New</span></h5>
            <h6>Example heading <span class="label">New</span></h6>
          </div>
{% highlight html linenos %}
<h3>Example heading <span class="label">New</span></h3>
{% endhighlight %}

          <h3>Available variations</h3>
          <p>Add any of the below mentioned modifier classes to change the appearance of a label.</p>
          <table class="table table-bordered table-striped">
            <thead>
              <tr>
                <th>Labels</th>
                <th>Markup</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  <span class="label">Default</span>
                </td>
                <td>
                  <code>&lt;span class="label"&gt;Default&lt;/span&gt;</code>
                </td>
              </tr>
              <tr>
                <td>
                  <span class="label label-success">Success</span>
                </td>
                <td>
                  <code>&lt;span class="label label-success"&gt;Success&lt;/span&gt;</code>
                </td>
              </tr>
              <tr>
                <td>
                  <span class="label label-warning">Warning</span>
                </td>
                <td>
                  <code>&lt;span class="label label-warning"&gt;Warning&lt;/span&gt;</code>
                </td>
              </tr>
              <tr>
                <td>
                  <span class="label label-danger">Danger</span>
                </td>
                <td>
                  <code>&lt;span class="label label-danger"&gt;Danger&lt;/span&gt;</code>
                </td>
              </tr>
              <tr>
                <td>
                  <span class="label label-info">Info</span>
                </td>
                <td>
                  <code>&lt;span class="label label-info"&gt;Info&lt;/span&gt;</code>
                </td>
              </tr>
            </tbody>
          </table>

        </section>



1354
        <!-- Badges
Mark Otto's avatar
Mark Otto committed
1355
        ================================================== -->
1356
        <section id="badges">
Mark Otto's avatar
Mark Otto committed
1357
          <div class="page-header">
1358
            <h1>Badges</h1>
Mark Otto's avatar
Mark Otto committed
1359
          </div>
1360
          <p class="lead">Easily highlight new or unread items by adding a <code>&lt;span class="badge"&gt;</code> to links, Bootstrap navs, and more.</p>
Mark Otto's avatar
Mark Otto committed
1361
1362

          <div class="bs-docs-example">
1363
            <a href="#">Inbox <span class="badge">42</span></a>
Mark Otto's avatar
Mark Otto committed
1364
          </div>
1365
{% highlight html linenos %}
1366
<a href="#">Inbox <span class="badge">42</span></a>
1367
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1368
1369

          <h4>Self collapsing</h4>
1370
          <p>When there are no new or unread items, badges will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p>
Mark Otto's avatar
Mark Otto committed
1371
1372

          <h4>Adapts to active nav states</h4>
1373
          <p>Built-in styles are included for placing badges in active states in pill and list navigations.</p>
Mark Otto's avatar
Mark Otto committed
1374
1375
          <div class="bs-docs-example">
            <ul class="nav nav-pills">
1376
              <li class="active"><a href="#">Home <span class="badge">42</span></a></li>
Mark Otto's avatar
Mark Otto committed
1377
              <li><a href="#">Profile</a></li>
1378
              <li><a href="#">Messages <span class="badge">3</span></a></li>
Mark Otto's avatar
Mark Otto committed
1379
1380
1381
1382
1383
            </ul>
            <br>
            <ul class="nav nav-list" style="max-width: 260px;">
              <li class="active">
                <a href="#">
1384
                  <span class="badge pull-right">42</span>
Mark Otto's avatar
Mark Otto committed
1385
1386
1387
1388
1389
1390
                  Home
                </a>
              </li>
              <li><a href="#">Profile</a></li>
              <li>
                <a href="#">
1391
                  <span class="badge pull-right">3</span>
Mark Otto's avatar
Mark Otto committed
1392
1393
1394
1395
1396
                  Messages
                </a>
              </li>
            </ul>
          </div>
1397
1398
1399
1400
{% highlight html linenos %}
<ul class="nav nav-list">
  <li class="active">
    <a href="#">
1401
      <span class="badge pull-right">42</span>
1402
1403
1404
1405
1406
1407
      Home
    </a>
  </li>
  ...
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428

        </section>



        <!-- Typographic components
        ================================================== -->
        <section id="typography">
          <div class="page-header">
            <h1>Typographic components</h1>
          </div>

          <h2>Jumbotron</h2>
          <p>A lightweight, flexible component to showcase key content on your site. It works well on marketing and content-heavy sites.</p>
          <div class="bs-docs-example">
            <div class="jumbotron">
              <h1>Hello, world!</h1>
              <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
              <p><a class="btn btn-primary btn-large">Learn more</a></p>
            </div>
          </div>
1429
1430
1431
1432
1433
1434
1435
{% highlight html linenos %}
<div class="jumbotron">
  <h1>Hello, world!</h1>
  <p>...</p>
  <p><a class="btn btn-primary btn-large">Learn more</a></p>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1436
1437
1438
1439
1440
1441
1442
1443

          <h2>Page header</h2>
          <p>A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
          <div class="bs-docs-example">
            <div class="page-header">
              <h1>Example page header <small>Subtext for header</small></h1>
            </div>
          </div>
1444
1445
1446
1447
1448
{% highlight html linenos %}
<div class="page-header">
  <h1>Example page header <small>Subtext for header</small></h1>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459

        </section>



        <!-- Thumbnails
        ================================================== -->
        <section id="thumbnails">
          <div class="page-header">
            <h1>Thumbnails</h1>
          </div>
1460
          <p class="lead">Extend Bootstrap's <a href="./css/#gridsystem">grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p>
Mark Otto's avatar
Mark Otto committed
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487

          <h3>Default thumbnails</h3>
          <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
          <div class="bs-docs-example">
            <div class="row">
              <div class="span3">
                <a href="#" class="thumbnail">
                  <img data-src="holder.js/260x180" alt="">
                </a>
              </div>
              <div class="span3">
                <a href="#" class="thumbnail">
                  <img data-src="holder.js/260x180" alt="">
                </a>
              </div>
              <div class="span3">
                <a href="#" class="thumbnail">
                  <img data-src="holder.js/260x180" alt="">
                </a>
              </div>
              <div class="span3">
                <a href="#" class="thumbnail">
                  <img data-src="holder.js/260x180" alt="">
                </a>
              </div>
            </div>
          </div><!-- /.bs-docs-example -->
1488
1489
1490
1491
1492
1493
1494
{% highlight html linenos %}
<div class="row">
  <div class="span3">
    <a href="#" class="thumbnail">
      <img data-src="holder.js/260x180" alt="">
    </a>
  </div>
Mark Otto's avatar
Mark Otto committed
1495
  ...
1496
1497
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534

          <h3>Custom content thumbnails</h3>
          <p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p>
          <div class="bs-docs-example">
            <div class="row">
              <div class="span4">
                <div class="thumbnail">
                  <img data-src="holder.js/300x200" alt="">
                  <div class="caption">
                    <h3>Thumbnail label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
                  </div>
                </div>
              </div>
              <div class="span4">
                <div class="thumbnail">
                  <img data-src="holder.js/300x200" alt="">
                  <div class="caption">
                    <h3>Thumbnail label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
                  </div>
                </div>
              </div>
              <div class="span4">
                <div class="thumbnail">
                  <img data-src="holder.js/300x200" alt="">
                  <div class="caption">
                    <h3>Thumbnail label</h3>
                    <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
                    <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
                  </div>
                </div>
              </div>
            </div>
          </div><!-- /.bs-docs-example -->
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
{% highlight html linenos %}
<div class="row">
  <div class="span3">
    <div class="thumbnail">
      <img data-src="holder.js/300x200" alt="">
      <div class="caption">
        <h3>Thumbnail label</h3>
        <p>...</p>
        <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
      </div>
    </div>
  </div>
</div>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571

        </section>




        <!-- Alerts
        ================================================== -->
        <section id="alerts">
          <div class="page-header">
            <h1>Alerts</h1>
          </div>
          <p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <a href="./javascript.html#alerts">alerts jQuery plugin</a>.</p>

          <h3>Default alert</h3>
          <p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message. <strong>To ensure proper behavior across all devices</strong>, be sure to use <code>&lt;button&gt;</code> element with the <code>data-dismiss="alert"</code> data attribute.</p>
          <div class="bs-docs-example">
            <div class="alert">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Warning!</strong> Best check yo self, you're not looking too good.
            </div>
          </div>
1572
1573
1574
1575
1576
1577
{% highlight html linenos %}
<div class="alert">
  <button type="button" class="close" data-dismiss="alert">&times;</button>
  <strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587

          <h3>Block alerts</h3>
          <p>For longer messages, increase the padding on the top and bottom of the alert wrapper by adding <code>.alert-block</code>.</p>
          <div class="bs-docs-example">
            <div class="alert alert-block">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <h4>Warning!</h4>
              <p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
            </div>
          </div>
1588
1589
1590
1591
1592
1593
1594
{% highlight html linenos %}
<div class="alert alert-block">
  <button type="button" class="close" data-dismiss="alert">&times;</button>
  <h4>Warning!</h4>
  <p>...</p>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611

          <h3>Contextual alternatives</h3>
          <p>Add optional classes to change an alert's connotation.</p>
          <div class="bs-docs-example">
            <div class="alert alert-error">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Oh snap!</strong> Change a few things up and try submitting again.
            </div>
            <div class="alert alert-success">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Well done!</strong> You successfully read this important alert message.
            </div>
            <div class="alert alert-info">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
            </div>
          </div>
1612
1613
1614
1615
1616
{% highlight html linenos %}
<div class="alert alert-error">...</div>
<div class="alert alert-success">...</div>
<div class="alert alert-info">...</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
        </section>




        <!-- Progress bars
        ================================================== -->
        <section id="progress">
          <div class="page-header">
            <h1>Progress bars</h1>
          </div>
          <p class="lead">Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p>

          <p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in IE8-9 or older versions of Firefox. Internet Explorer 10 and below, as well as Opera 12, do not support animations.</p>

          <h3>Basic</h3>
          <p>Default progress bar with a vertical gradient.</p>
          <div class="bs-docs-example">
            <div class="progress">
              <div class="progress-bar" style="width: 60%;"></div>
            </div>
          </div>
1639
1640
1641
1642
1643
{% highlight html linenos %}
<div class="progress">
  <div class="progress-bar" style="width: 60%;"></div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660

          <h3>Additional colors</h3>
          <p>Progress bars use some of the same button and alert classes for consistent styles.</p>
          <div class="bs-docs-example">
            <div class="progress" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-info" style="width: 20%"></div>
            </div>
            <div class="progress" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-success" style="width: 40%"></div>
            </div>
            <div class="progress" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-warning" style="width: 60%"></div>
            </div>
            <div class="progress">
              <div class="progress-bar progress-bar-danger" style="width: 80%"></div>
            </div>
          </div>
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
{% highlight html linenos %}
<div class="progress">
  <div class="progress-bar progress-bar-info" style="width: 20%"></div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-success" style="width: 40%"></div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-warning" style="width: 60%"></div>
</div>
<div class="progress">
  <div class="progress-bar progress-bar-danger" style="width: 80%"></div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691

          <h3>Striped</h3>
          <p>Uses a gradient to create a striped effect. Not available in IE8.</p>
          <div class="bs-docs-example">
            <div class="progress progress-striped" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-info" style="width: 20%"></div>
            </div>
            <div class="progress progress-striped" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-success" style="width: 40%"></div>
            </div>
            <div class="progress progress-striped" style="margin-bottom: 9px;">
              <div class="progress-bar progress-bar-warning" style="width: 60%"></div>
            </div>
            <div class="progress progress-striped">
              <div class="progress-bar progress-bar-danger" style="width: 80%"></div>
            </div>
          </div>
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
{% highlight html linenos %}
<div class="progress progress-striped">
  <div class="progress-bar progress-bar-info" style="width: 20%"></div>
</div>
<div class="progress progress-striped">
  <div class="progress-bar progress-bar-success" style="width: 40%"></div>
</div>
<div class="progress progress-striped">
  <div class="progress-bar progress-bar-warning" style="width: 60%"></div>
</div>
<div class="progress progress-striped">
  <div class="progress-bar progress-bar-danger" style="width: 80%"></div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1706
1707
1708
1709
1710
1711
1712
1713

          <h3>Animated</h3>
          <p>Add <code>.active</code> to <code>.progress-striped</code> to animate the stripes right to left. Not available in all versions of IE.</p>
          <div class="bs-docs-example">
            <div class="progress progress-striped active">
              <div class="progress-bar" style="width: 45%"></div>
            </div>
          </div>
1714
1715
1716
1717
1718
{% highlight html linenos %}
<div class="progress progress-striped active">
  <div class="progress-bar" style="width: 45%"></div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728

          <h3>Stacked</h3>
          <p>Place multiple bars into the same <code>.progress</code> to stack them.</p>
          <div class="bs-docs-example">
            <div class="progress">
              <div class="progress-bar progress-bar-success" style="width: 35%"></div>
              <div class="progress-bar progress-bar-warning" style="width: 20%"></div>
              <div class="progress-bar progress-bar-danger" style="width: 10%"></div>
            </div>
          </div>
1729
1730
1731
1732
1733
1734
1735
{% highlight html linenos %}
<div class="progress">
  <div class="progress-bar progress-bar-success" style="width: 35%"></div>
  <div class="progress-bar progress-bar-warning" style="width: 20%"></div>
  <div class="progress-bar progress-bar-danger" style="width: 10%"></div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780

        </section>




        <!-- Media object
        ================================================== -->
        <section id="media">
          <div class="page-header">
            <h1>Media object</h1>
          </div>
          <p class="lead">Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</p>

          <h3>Default example</h3>
          <p>The default media allow to float a media object (images, video, audio) to the left or right of a content block.</p>
          <div class="bs-docs-example">
            <div class="media">
              <a class="pull-left" href="#">
                <img class="media-object" data-src="holder.js/64x64">
              </a>
              <div class="media-body">
                <h4 class="media-heading">Media heading</h4>
                Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
              </div>
            </div>
            <div class="media">
              <a class="pull-left" href="#">
                <img class="media-object" data-src="holder.js/64x64">
              </a>
              <div class="media-body">
                <h4 class="media-heading">Media heading</h4>
                Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                <div class="media">
                  <a class="pull-left" href="#">
                    <img class="media-object" data-src="holder.js/64x64">
                  </a>
                  <div class="media-body">
                    <h4 class="media-heading">Media heading</h4>
                    Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
                  </div>
                </div>
              </div>
            </div>
          </div><!-- /.bs-docs-example -->
1781
1782
1783
1784
1785
1786
1787
{% highlight html linenos %}
<div class="media">
  <a class="pull-left" href="#">
    <img class="media-object" src="...">
  </a>
  <div class="media-body">
    <h4 class="media-heading">Media heading</h4>
Mark Otto's avatar
Mark Otto committed
1788
    ...
1789
1790
1791
  </div>
</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846

          <h3>Media list</h3>
          <p>With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).</p>
          <div class="bs-docs-example">
            <ul class="media-list">
              <li class="media">
                <a class="pull-left" href="#">
                  <img class="media-object" data-src="holder.js/64x64">
                </a>
                <div class="media-body">
                  <h4 class="media-heading">Media heading</h4>
                  <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p>
                  <!-- Nested media object -->
                  <div class="media">
                    <a class="pull-left" href="#">
                      <img class="media-object" data-src="holder.js/64x64">
                    </a>
                    <div class="media-body">
                      <h4 class="media-heading">Nested media heading</h4>
                      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
                      <!-- Nested media object -->
                      <div class="media">
                        <a class="pull-left" href="#">
                          <img class="media-object" data-src="holder.js/64x64">
                        </a>
                        <div class="media-body">
                          <h4 class="media-heading">Nested media heading</h4>
                          Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
                        </div>
                      </div>
                    </div>
                  </div>
                  <!-- Nested media object -->
                  <div class="media">
                    <a class="pull-left" href="#">
                      <img class="media-object" data-src="holder.js/64x64">
                    </a>
                    <div class="media-body">
                      <h4 class="media-heading">Nested media heading</h4>
                      Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
                    </div>
                  </div>
                </div>
              </li>
              <li class="media">
                <a class="pull-right" href="#">
                  <img class="media-object" data-src="holder.js/64x64">
                </a>
                <div class="media-body">
                  <h4 class="media-heading">Media heading</h4>
                  Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
                </div>
              </li>
            </ul>
          </div>
1847
1848
1849
1850
1851
1852
1853
1854
{% highlight html linenos %}
<ul class="media-list">
  <li class="media">
    <a class="pull-left" href="#">
      <img class="media-object" src="...">
    </a>
    <div class="media-body">
      <h4 class="media-heading">Media heading</h4>
Mark Otto's avatar
Mark Otto committed
1855
      ...
1856
1857
1858
1859
    </div>
  </li>
</ul>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880

</section>





        <!-- Miscellaneous
        ================================================== -->
        <section id="misc">
          <div class="page-header">
            <h1>Miscellaneous <small>Lightweight utility components</small></h1>
          </div>

          <h2>Wells</h2>
          <p>Use the well as a simple effect on an element to give it an inset effect.</p>
          <div class="bs-docs-example">
            <div class="well">
              Look, I'm in a well!
            </div>
          </div>
1881
1882
1883
{% highlight html linenos %}
<div class="well">...</div>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1884
1885
1886
1887
1888
1889
1890
          <h3>Optional classes</h3>
          <p>Control padding and rounded corners with two optional modifier classes.</p>
          <div class="bs-docs-example">
            <div class="well well-large">
              Look, I'm in a well!
            </div>
          </div>
1891
1892
1893
1894
{% highlight html linenos %}
<div class="well well-large">...</div>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1895
1896
1897
1898
1899
          <div class="bs-docs-example">
            <div class="well well-small">
              Look, I'm in a well!
            </div>
          </div>
1900
1901
1902
1903
{% highlight html linenos %}
<div class="well well-small">...</div>
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1904
1905
1906
1907
1908
1909

          <h2>Close icon</h2>
          <p>Use the generic close icon for dismissing content like modals and alerts.</p>
          <div class="bs-docs-example">
            <p><button class="close" style="float: none;">&times;</button></p>
          </div>
1910
1911
1912
{% highlight html linenos %}
<button class="close" style="float: none;">&times;</button>
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1913
1914
1915
1916
1917
1918

          <h2>Helper classes</h2>
          <p>Simple, focused classes for small display or behavior tweaks.</p>

          <h4>.pull-left</h4>
          <p>Float an element left</p>
1919
1920
1921
1922
{% highlight html linenos %}
<div class="pull-left">...</div>
{% endhighlight %}
{% highlight css linenos %}
Mark Otto's avatar
Mark Otto committed
1923
1924
1925
.pull-left {
  float: left;
}
1926
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1927
1928
1929

          <h4>.pull-right</h4>
          <p>Float an element right</p>
1930
1931
1932
1933
{% highlight html linenos %}
<div class="pull-right">...</div>
{% endhighlight %}
{% highlight css linenos %}
Mark Otto's avatar
Mark Otto committed
1934
1935
1936
.pull-right {
  float: right;
}
1937
{% endhighlight %}
Mark Otto's avatar
Mark Otto committed
1938
1939
1940

          <h4>.muted</h4>
          <p>Change an element's color to <code>#999</code></p>
1941
1942
1943
1944
{% highlight html linenos %}
<p class="muted">...</p>
{% endhighlight %}
{% highlight css linenos %}
Mark Otto's avatar
Mark Otto committed
1945
1946
1947
.muted {
  color: #999;
}
1948
1949
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1950
1951
1952

          <h4>.clearfix</h4>
          <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.</p>
1953
1954
1955
1956
{% highlight html linenos %}
<div class="clearfix">...</div>
{% endhighlight %}
{% highlight css linenos %}
Mark Otto's avatar
Mark Otto committed
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
.clearfix {
  &:before,
  &:after {
    content: " ";
    display: table;
  }
  &:after {
    clear: both;
  }
}
1967
1968
{% endhighlight %}

Mark Otto's avatar
Mark Otto committed
1969
1970
1971
1972
1973
1974
1975
1976
1977

        </section>



      </div><!-- /span9 -->
    </div><!-- row -->

  </div><!-- /.container -->