-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
790 lines (708 loc) · 29.1 KB
/
index.html
File metadata and controls
790 lines (708 loc) · 29.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
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
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
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
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
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Test Page</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- internal css style for rows and columns -->
<style type="text/css">
.bg {
background-color: #EEE;
text-align: center;
}
</style>
</head>
<body>
<!-- Title h1 -->
<div class="row-fluid">
<div class="span4" style="padding-left: 20px;">
<h1>Bootstrap Cheat Sheet</h1>
</div>
</div>
<!-- Fluid Grid Example -->
<div class="row-fluid">
<div class="span4" style="padding-left: 20px;">
<h3>Fluid Grid Example</h3>
</div>
</div>
<div class="row-fluid">
<div class="span12" style="padding-left: 20px;">
This is an example of the fluid grid system built into bootstrap. It's pretty simple.
It's a system of 12 columns reference by the css class "span" + number and each row is added with a
<code> <div class="row-fluid"> </code>
</div>
</div>
<div class="row-fluid">
<div class="span3" style="padding-left: 20px;">
<pre>
<div class="row-fluid">
<div class="span4 bg">4</div>
<div class="span8 bg">8</div>
</div>
</pre>
</div>
</div>
<br/>
<div class="row-fluid">
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
<div class="span1 bg">1</div>
</div>
<br/>
<div class="row-fluid">
<div class="span4 bg">4</div>
<div class="span4 bg">4</div>
<div class="span4 bg">4</div>
</div>
<br/>
<div class="row-fluid">
<div class="span4 bg">4</div>
<div class="span8 bg">8</div>
</div>
<br/>
<div class="row-fluid">
<div class="span6 bg">6</div>
<div class="span6 bg">6</div>
</div>
<br/>
<div class="row-fluid">
<div class="span12 bg">12</div>
</div>
<br/>
<div class="row-fluid">
<div class="span12" style="padding-left: 20px;">
<h4> Nesting columns and Offsetting</h4>
There's also nesting and offsets available. <br>
Offset: Just add the .offset + number class to the element being offset.
Nesting: ... uhh it's just nesting dude. Figure it out.
<br>
<br>
<h4>Responsive Design</h4>
Responsive Design is not built in. You have to do it yourself.<br>
Click here to read more about how it's done.
<a href="https://twitter.github.com/bootstrap/scaffolding.html#responsive">
Responsive Design</a>
</div>
</div>
<br/>
<!-- Fluid Layout Example -->
<div class="row-fluid">
<div class="span4" style="padding-left: 20px;">
<h3>Fluid Layout Example</h3>
</div>
</div>
<div class="row-fluid">
<div class="span12" style="padding-left: 20px;">
The Fluid Layout give you a multi column layout with the width of each column set by the divs included.
I'm going to use this example and the rest in one area to save time and space.
</div>
</div>
<div class="row-fluid">
<div class="span3" style="padding-left: 20px;">
<pre>
<div class="container-fluid">
<div class="row-fluid">
<!-- each columns listed here -->
<div class="span2"></div>
<div class="span5"></div>
<div class="span5"></div>
</div>
</div>
</pre>
</div>
</div>
<br/>
<div class="container-fluid">
<div class="row-fluid">
<!-- Left Column-->
<div class="span2">
<h3 style="text-align: center">Left column</h3>
<dl>
<dt>Buttons</dt>
<dd>Just add the "btn-(button-level)" class to each button element.</dd>
</dl>
<button class="btn" type="button">Standard</button><br>
<button class="btn btn-primary" type="button">Primary</button><br>
<button class="btn btn-info" type="button">Info</button><br>
<button class="btn btn-success" type="button">Success</button><br>
<button class="btn btn-warning" type="button">Warning</button><br>
<button class="btn btn-danger" type="button">Danger</button><br>
<button class="btn btn-inverse" type="button">Inverse</button><br>
<button class="btn btn-link" type="button">Link</button><br>
<dl>
<dt>Loading Button</dt>
<dd>A button that changes to a loading state</dd>
</dl>
<button type="button" class="btn btn-primary" data-loading-text="loading.">Click to load</button>
<dl>
<dt>Single Toggle Button</dt>
<dd>A button that toggles or switches between states</dd>
</dl>
<button type="button" class="btn btn-primary" data-toggle="button">Single Toggle</button>
<dl>
<dt>Checkbox Buttons</dt>
<dd>A set of buttons that act like checkboxes</dd>
<dl>
<div class="btn-group" data-toggle="buttons-checkbox">
<button type="button" class="btn btn-primary">Left</button>
<button type="button" class="btn btn-primary">Middle</button>
<button type="button" class="btn btn-primary">Right</button>
</div>
<dl>
<dt>Radio Buttons</dt>
<dd>A set of buttons that act like radios</dd>
</dl>
<div class="btn-group" data-toggle="buttons-radio">
<button type="button" class="btn btn-primary">Left</button>
<button type="button" class="btn btn-primary">Middle</button>
<button type="button" class="btn btn-primary">Right</button>
</div>
<dl>
<dt>Button Size</dt>
<dd>Just add the "btn-(button-size)" class to each button element.</dd>
</dl>
<button class="btn btn-large" type="button">Large</button><br>
<button class="btn" type="button">Default</button><br>
<button class="btn btn-small" type="button">Small</button><br>
<button class="btn btn-mini" type="button">Mini</button><br><br>
<dl>
<dt>Block Level Button</dt>
<dd>Just add the "btn-block" class to each button element.</dd>
</dl>
<button class="btn btn-block" type="button">Default</button><br>
<dl>
<dt>Button Group Example</dt>
<dd><code><div class="btn-group"></div></code></dd>
</dl>
<div class="btn-group">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
<dl>
<dt>Button Toolbar</dt>
<dd>
For when you need multiple button groups in a row?<br>
Just add another div around all the button groups and slap on the
"btn-toolbar" class to that div.
</dd>
</dl>
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
<div class="btn-group">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
</div>
<dl>
<dt>Vertical Button Group</dt>
<dd>
Exactly how it sounds. <br>
Use "btn-group-vertical"
</dd>
</dl>
<div class="btn-group-vertical">
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
</div>
<dl>
<dt>Images and Icons</dt>
<dd>
Eh. Just go <a href="https://twitter.github.com/bootstrap/base-css.html#images">here</a>. <br/>
Worth the read.
</dd>
</dl>
<dl>
<dt>Emphasis Classes</dt>
<dd>Add the (emphasis class) to any <p> element.</dd>
</dl>
<p class="muted">Muted.</p>
<p class="text-warning">Text-Warning.</p>
<p class="text-error">Text-Error.</p>
<p class="text-info">Text-Info.</p>
<p class="text-success">Text-Success.</p>
<dl>
<dt>Code</dt>
<dd>
Element tag to display code.
<code>
<code></code>
</code>
</dd>
</dl>
<dl>
<dt>Description</dt>
<dd>
Some weird way to do descriptions. I dunno. okay.
I ended up using it just to learn it. I don't think
it will ever really be useful. Just style it yourself.
<pre>
<dl>
<dt>Bold text here.<dt>
<dd>Desc. text here.<dd>
<dl>
</pre>
</dd>
</dl>
</div>
<!-- Middle Column -->
<div class="span5">
<!-- Colunmn Header -->
<h3 style="text-align: center">Middle column</h3>
<h4>Tables</h4>
<code><table></code> classes:<br>
"table" for basic table<br>
"table-striped" for striping<br>
"table-borderd" for all borders and rounded corners<br>
"table-hover" to change color on hover<br>
"table-condensed" for less padding<br>
<br>
<code><tr></code> classes:<br>
"success" for a green row<br>
"error" for a red row<br>
"warning for a yellow row<br>
"info" for a puke blue row<br>
<table class="table table-striped table-bordered table-hover table-condensed">
<caption>Caption Example</caption>
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
<th>Third Header</th>
<th>Fourth Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr>
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr>
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr>
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr class="success">
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr class="error">
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr class="warning">
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
<tr class="info">
<td>first</td>
<td>scond</td>
<td>third</td>
<td>fourth</td>
</tr>
</tbody>
</table>
<br>
<h4>Forms and Inputs</h4>
This section is mostly redudant to the HTML spec so not worth putting here.<br>
It's worth reading this section on bootstraps's page since they have pretty examples. <br>
<a href="https://twitter.github.com/bootstrap/base-css.html#forms">Click here for examples.</a>
<br><br><br>
<h4>Dropdown</h4>
I guess this works by creating a Unordered list with all the menu options as list items.
Then you add it to some element... somehow. I don't completely understand it.
I think you need something with a "data-toggle" attribute and set it to "dropdown"
and it'll find the next unordered list element and turn that into a dropdown. <br>
You can align shit too. But I don't know when that's going to come in handy.
Look it up yourself if you need it. <br>
Oh yea, Buttons with dropdowns must be individually wrapped in their own
.btn-group within a .btn-toolbar for proper rendering. And it requires JS.
<br><br>
<pre>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown">
Action
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<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="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
</ul>
</li>
</ul>
</div>
</pre>
<br>
<strong>Example</strong>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown">
Action
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<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="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
</ul>
</li>
</ul>
</div>
<br><br>
<h4>Split Button Drop Down</h4>
Same thing, pretty much. Just add another button in the button group,
and change the link into a button. Move the text from the old link to the new button.<br>
<pre>
Change this:
<a class="btn dropdown-toggle" data-toggle="dropdown">
Action
<span class="caret"></span>
</a>
To This:
<button class="btn">Action</button>
<button class="btn dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
</pre>
<strong>Example</strong>
<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 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="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
<li><a tabindex="-1" href="#">Some submenu shit.</a>
</ul>
</li>
</ul>
</div>
<br><br>
<h4>Tabbed Navigation</h4>
There's other types of navigation built into bootstrap.
But this is the one I use the most. So go write your own cheat sheet if you don't like it. <br>
Link to Bootstraps Nav & Navbar page: <a href="https://twitter.github.com/bootstrap/components.html#navs">Navigation</a>
<div class="tabbable"> <!-- Only required for left/right tabs -->
<ul class="nav nav-tabs navbar-inverse">
<li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
<li><a href="#tab2" data-toggle="tab">Section 2</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab1">
<p>I'm in Section 1.</p>
</div>
<div class="tab-pane" id="tab2">
<p>Howdy, I'm in Section 2.</p>
</div>
</div>
</div>
<hr/><br>
<h4>Modal Panel</h4>
Shit pops up. Can't explain that. <br>
<br>
<strong>Example</strong>
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<div class="modal hide fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Can't Explain that.</h3>
</div>
<div class="modal-body">
<p>... Or can you?</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
<br><br>
<h4>ScrollSpy</h4>
Too lazy to do this. Doubt I'll ever use it.
Link to the Docs:
<a href="https://twitter.github.com/bootstrap/javascript.html#scrollspy">
Scrollspy
</a>
<br><br>
<h4>Tooltips</h4>
<div>
Hover over <span id="test" style="color: blue;">this</span> to see a tooltip.
This one is built using the jQuery Javascript plugin.<br>
The JS script for this is just $('#' + something).tooltip(); <br><br>
The worthwihle options are: <br>
animation : boolean<br>
html : boolean<br>
placement : string<br>
title : delay<br>
delay : number<br>
</div>
<br>
<h4>Popover</h4>
Similar to tooltips but cooler.<br><br>
<div>
Popover Example: <br>
<button class="btn btn-primary" id="popoverTest">Popover</button><br><br>
The JS script for this is just $('#' + something).tooltip(); <br><br>
The worthwihle options are: <br>
animation : boolean<br>
html : boolean<br>
placement : string<br>
trigger : string (click | hover | focus | manual)<br>
title : delay<br>
content : string<br>
delay : number<br>
</div>
</div>
<!-- Right Column -->
<div class="span5">
<h3 style="text-align: center">Right column</h3>
<h4>Pagination</h4>
Or what just looks like it.<br>
<div class="pagination pagination-centered">
<ul>
<li class="disabled"><a href="#">Prev</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="#">Next</a></li>
</ul>
</div>
<h4>Pager?!?</h4>
Not sure why you would use this if you have the thing above this?<br>
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
Unless you're doing this.<br>
<ul class="pager">
<li class="previous disabled"><a href="#">Previous</a></li>
<li class="next"><a href="#">Next</a></li>
</ul>
<h4>Labels</h4>
As if you didn't have enough things with color.<br>
Add the class "label label-(labelType)" to any span.<br>
<span class="label">Default</span>
<span class="label label-success">Success</span>
<span class="label label-warning">Warning</span>
<span class="label label-important">Important</span>
<span class="label label-info">Info</span>
<span class="label label-inverse">Inverse</span>
<br><br>
<h4>Badges</h4>
Even more colors to burn your retinas on.<br>
<span class="badge">Default</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-important">Important</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-inverse">Inverse</span>
<br><br>
<h4>Hero Unit</h4>
<div class="hero-unit">
<h1>Heading</h1>
<p>Tagline</p>
<p>
<a class="btn btn-primary btn-large">
Learn more
</a>
</p>
</div>
<h4>Thumbnails</h4>
<ul class="thumbnails">
<li class="span4">
<a href="#" class="thumbnail">
<img src="https://placehold.it/300x200" alt="">
</a>
</li>
<li class="span4">
<a href="#" class="thumbnail">
<img src="https://placehold.it/300x200" alt="">
</a>
</li>
<li class="span4">
<a href="#" class="thumbnail">
<img src="https://placehold.it/300x200" alt="">
</a>
</li>
</ul>
<h4>Alerts</h4>
<div class="alert alert-block"> <!-- alert-block added for multiline -->
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Warning!</strong> Best check yo self, you're not looking too good.
</div>
<div class="alert alert-error"> <!-- alert-block added for multiline -->
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Error!</strong> Best check yo self, you're not looking too good.
</div>
<div class="alert alert-success"> <!-- alert-block added for multiline -->
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Success!</strong> You're looking good.
</div>
<div class="alert alert-info"> <!-- alert-block added for multiline -->
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Info!</strong> You're not looking too good.
</div>
Mobile Safari and Mobile Opera browsers, in addition to the data-dismiss="alert" attribute,
require an href="#" for the dismissal of alerts when using an <a> tag.<br>
I don't care about these guys so look that up yourself.<br><br>
<h4>Progress Bars</h4>
<div class="progress">
<div class="bar" style="width: 60%;"></div>
</div>
<div class="progress progress-striped">
<div class="bar" style="width: 60%;"></div>
</div>
<div class="progress progress-striped active">
<div class="bar" style="width: 60%;"></div>
</div>
<div class="progress">
<div class="bar bar-success" style="width: 35%;"></div>
<div class="bar bar-warning" style="width: 20%;"></div>
<div class="bar bar-danger" style="width: 10%;"></div>
</div>
<div class="progress progress-info">
<div class="bar" style="width: 20%"></div>
</div>
<div class="progress progress-success">
<div class="bar" style="width: 40%"></div>
</div>
<div class="progress progress-warning">
<div class="bar" style="width: 60%"></div>
</div>
<div class="progress progress-danger">
<div class="bar" style="width: 80%"></div>
</div>
<div class="progress progress-info progress-striped">
<div class="bar" style="width: 20%"></div>
</div>
<div class="progress progress-success progress-striped">
<div class="bar" style="width: 40%"></div>
</div>
<div class="progress progress-warning progress-striped">
<div class="bar" style="width: 60%"></div>
</div>
<div class="progress progress-danger progress-striped">
<div class="bar" style="width: 80%"></div>
</div>
<div class="progress progress-info progress-striped active">
<div class="bar" style="width: 20%"></div>
</div>
<div class="progress progress-success progress-striped active">
<div class="bar" style="width: 40%"></div>
</div>
<div class="progress progress-warning progress-striped active">
<div class="bar" style="width: 60%"></div>
</div>
<div class="progress progress-danger progress-striped active">
<div class="bar" style="width: 80%"></div>
</div>
Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox. Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.
<br><br>
<h4>Well</h4>
<div class="well well-small"> <!-- can also add "well-large" and "well-small" -->
Just puts text into a pretty box.
</div>
<br>
<h4>Close Icon</h4>
<button class="close pull-left">×</button><br><br>
<h4>Muted Color</h4>
Just use the class "muted"<br><br>
<h4>Collapse</h4>
You've seen this before. It set three or so section and you can "collapse"
them as needed to save space. I never use this. So... go figure it out
yourself. Here's the link:<br>
<a href="https://twitter.github.com/bootstrap/javascript.html#collapse">Collapse</a>
<br><br>
<h4>Carousel</h4>
The pictures go round and round. You could probably find a better implementation elsewhere.
This can handle more than just pictures though. So maybe not.
<div style="height: 60px;"></div>
<div id="myCarousel" class="carousel slide">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item" style="text-align:center">There should a picture here really.</div>
<div class="item" style="text-align:center">Second set of text</div>
<div class="item" style="text-align:center">I don't know what else to say.</div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div><br><br>
<h4>Typeahead</h4>
Basically it's an autocomplete. I won't do this here because it requires a source.
I'm too lazy to make one. Maybe one day when I have more time I'll provide a full
example. For now, here's a link to the docs straight from bootstrap:<br>
<a href="https://twitter.github.com/bootstrap/javascript.html#typeahead">Typeahead</a>
<br><br>
<h4>Affix</h4>
This is complicated. I'll figure it out one day. Maybe.
<a href="https://twitter.github.com/bootstrap/javascript.html#affix">Affix</a>
</div>
</div>
<br><br><br>
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$('#test').tooltip({animation:true, placement:'top',title:"Something to say"});
$('#popoverTest').popover({animation:true, placement:'right', trigger:'click', title:"This is a title", content:"Popover Content"});
</script>
</body>
</html>