-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboostrap_students_pdf.html
More file actions
1714 lines (1651 loc) · 52.3 KB
/
boostrap_students_pdf.html
File metadata and controls
1714 lines (1651 loc) · 52.3 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
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css" >
<title>All Bootstrap Elements</title>
</head>
<body>
<div class="container">
<h2>Basic Table</h2>
<p>The .table class adds basic styling (light padding and only horizontal
dividers) to a table:</p>
<table class="table">
<thead>
<tr>
<th>Rank</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Google</td>
<td>google@gmail.com</td>
</tr>
<tr>
<td>2</td>
<td>facebook</td>
<td>facebook@fb.com</td>
</tr>
<tr>
<td>3</td>
<td>twitter</td>
<td>twitter@tweet.com</td>
</tr>
</tbody>
</table>
</div>
<!-- Bootstrap Tables:Striped Rows PageNo:5 -->
<div class="container">
<h2>Striped Rows</h2>
<p>The .table-striped class adds zebra-stripes to a table:</p>
<table class="table table-striped">
<thead>
<tr>
<th>Rank</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Google</td>
<td> google@gmail.com </td>
</tr>
<tr>
<td>2</td>
<td> facebook </td>
<td>facebook@fb.com</td>
</tr>
<tr>
<td>3</td>
<td>twitter</td>
<td>twitter@tweet.com</td>
</tr>
</tbody>
</table>
<!-- Bootstrap Tables:Condensed Table PageNo:8 -->
<div class="container">
<h2>Condensed Table</h2>
<p>The .table-condensed class makes a table more compact by cutting cell
padding in half:</p>
<table class="table table-condensed">
<thead>
<tr>
<th>Rank</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Google</td>
<td>google@gmail.com</td>
</tr>
<tr>
<td>2</td>
<td>facebook</td>
<td>facebook@fb.com</td>
</tr>
<tr>
<td>3</td>
<td>twitter</td>
<td>twitter@tweet.com</td>
</tr>
</tbody>
</table>
</div>
<!-- The contextual classes that can be used are:
Class Description:
.active Applies the hover color to the table row or table cell
.success Indicates a successful or positive action
.info Indicates a neutral informative change or action
.warning Indicates a warning that might need attention
.danger Indicates a dangerous or potentially negative action -->
<div class="container">
<h2>Contextual Classes</h2>
<p>Contextual classes can be used to color table rows or table cells. The
classes that can be used are: .active, .success, .info, .warning, and
.danger.</p>
<table class="table">
<thead>
<tr class="active">
<th>Rank</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr class="success">
<td>1</td>
<td>Google</td>
<td>google@gmail.com</td>
</tr>
<tr class="danger">
<td>2</td>
<td>facebook</td>
<td>facebook@fb.com</td>
</tr>
<tr >
<td class="info">3</td>
<td class="warning">twitter</td>
<td>twitter@tweet.com</td>
</tr>
</tbody>
</table>
</div>
<!-- BS Images:Rounded Corners:PageNo:11 -->
<div class="container">
<h2>Rounded Corners</h2>
<p>The .img-rounded class adds rounded corners to an image (not available
in IE8):</p>
<img src="images/Harry.jpg" class="img-rounded" alt="Cinque Terre"
width="400" height="400">
</div>
<!-- BS Images:Circle:PageNo:11
If we want to display a image in a circular fashion we have to use .imgcircle class.
It shapes the image to a circle (IE8 do not support rounded
corners):-->
<div class="container">
<h2>Circle</h2>
<p>The .img-circle class shapes the image to a circle (not available in
IE8):</p>
<img src="images/Harry.jpg" class="img-circle" alt="Cinque Terre"
width="304" height="236">
</div>
<!-- BS Images:Thumbnail:PageNo:12
Suppose we want display image as a thumbnail .img-thumbnail class
provides us the facility to do so: -->
<div class="container">
<h2>Thumbnail</h2>
<p>The .img-thumbnail class creates a thumbnail of the image:</p>
<img src="images/Harry.jpg" class="img-thumbnail" alt="Cinque Terre"
width="304" height="236">
</div>
<!-- BS Images:Responsive Images:PageNo:13
Images comes in all sizes. So do screens. Responsive images automatically
adjust to fit the size of the screen.
Create responsive images by adding an .img-responsive class to the <img>
tag. The image will then scale nicely to the parent element.
The .img-responsive class applies max-width: 100%; and height: auto; to
the image: -->
<div class="container">
<h2>Image</h2>
<p>The .img-responsive class makes the image scale nicely to the parent
element (resize the browser window to see the effect):</p>
<img class="img-responsive" src="images/Harry.jpg" alt="Chania"
width="100%">
<!-- BS Images:Image Gallery:PageNo:14
You can also use Bootstrap's grid system along with the .thumbnail class
to create an image gallery:-->
<div class="container">
<h2>Image Gallery</h2>
<p>The .thumbnail class can be used to display an image gallery. Click on
the images to see it in full size:</p>
<div class="row">
<div class="col-md-4 colg-lg-3">
<a href="images/Harry.jpg" class="thumbnail">
<img src=" images/Harry.jpg " alt="Pulpit Rock"
style="width:100%;height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href=" images/Harry1.jpg " class="thumbnail">
<img src=" images/Harry1.jpg " alt="Moustiers Sainte Marie"
style="width:100%;height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry3.jpg" class="thumbnail">
<img src="images/Harry3.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry4.jpg" class="thumbnail">
<img src="images/Harry4.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry5.jpg" class="thumbnail">
<img src="images/Harry5.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry6.jpg" class="thumbnail">
<img src="images/Harry6.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry7.jpg" class="thumbnail">
<img src="images/Harry7.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry8.jpg" class="thumbnail">
<img src="images/Harry8.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry9.jpg" class="thumbnail">
<img src="images/Harry9.jpg" alt="Cinque Terre"
style="width:100%; height:200px; align:center">
</a>
</div>
<div class="col-md-4 colg-lg-3">
<a href="images/Harry2.jpg" >
<img src="images/Harry2.jpg" alt="Cinque Terre"
style="width:100%; height:200px">
</a>
</div>
</div>
</div>
<!-- Responsive Embeds:PageNo:15
Also let videos or slideshows scale properly on any device.
Classes can be applied directly to <iframe>, <embed>, <video>, and
<object> elements.
Adding .embed-responsive-item class to an <iframe> tag makes the video
scale nicely to the parent element. -->
<div class="container">
<h2>Responsive Embed</h2>
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item"
src="http://www.youtube.com/embed/XGSy3_Czz8k"></iframe>
</div>
</div>
<!-- BS Jumbotron:
Creating a Jumbotron:
A jumbotron indicates a big box for calling extra attention to some
special content or information.
A jumbotron is displayed as a grey box with rounded corners. It also
enlarges the font sizes of the text inside it.
Tip: Inside a jumbotron you can put nearly any valid HTML, including
other Bootstrap elements/classes.
Use a <div> element with class .jumbotron to create a jumbotron:
Jumbotron Inside Container:
Place the jumbotron inside the <div class="container"> if you want the
jumbotron to NOT extend to the edge of the screen: -->
<br>
<div class="container">
<div class="jumbotron">
<h1>Its a Jumbotron ...</h1>
<p>It is used for big Heading.....</p>
</div>
</div>
<!-- Jumbotron Outside Container:
Place the jumbotron outside the <div class="container"> if you want the
jumbotron to extend to the screen edges: -->
<div class="jumbotron">
<h1>This is a heading </h1>
<p>within JUMBOTRON</p>
</div>
<!-- BS Wells:PageNo:16
Wells:
The .well class adds a rounded border around an element with a gray
background color and some padding: -->
<div class="container">
<h2>Well</h2>
<div class="well">Basic Well</div>
</div>
<!-- Well Size-->
<div class="container">
<h2>Well Size</h2>
<div class="well well-sm">Small Well</div>
<div class="well">Normal Well</div>
<div class="well well-lg">Large Well</div>
</div>
<!-- BS Alerts:PageNo:20
Alerts:
Creating responsive and attractive alerts in bootstrap can be done by
using .alert class.
For making alert more informative we can also use contextual classes like
.alert-success, .alert-info, .alert-warning or .alert-danger: -->
<div class="container">
<h2>Alerts</h2>
<div class="alert alert-success">
<strong>Success!</strong> This alert box could indicate a successful or
positive action.
</div>
<div class="alert alert-info">
<strong>Info!</strong> This alert box could indicate a neutral
informative change or action.
</div>
<div class="alert alert-warning">
<strong>Warning!</strong> This alert box could indicate a warning that
might need attention.
</div>
<div class="alert alert-danger">
<strong>Danger!</strong> This alert box could indicate a dangerous or
potentially negative action.
</div>
</div>
<!-- Closing Alerts:
To close the alert we have created we have to add class="close" and
datadismiss="alert" to a anchor or button element: -->
<div class="container">
<h2>Alerts</h2>
<p>The a element with class="close" and data-dismiss="alert" is used to
close the alert box.</p>
<div class="alert alert-success">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with success intimation
</div>
<div class="alert alert-info">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with some information
</div>
<div class="alert alert-warning">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with warning information
</div>
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert intimating something danger
</div>
</div>
<!-- Animated Alerts:
The .fade and .in classes adds a fading effect when closing the alert
message: -->
<div class="container">
<h2>Alerts</h2>
<p>The .fade and .in classes adds a fading effect when closing the alert
message.</p>
<div class="alert alert-success fade in">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with success intimation
</div>
<div class="alert alert-info fade in">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with some information
</div>
<div class="alert alert-warning fade in">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
Alert box with warning information
</div>
<div class="alert alert-danger fade in">
<a href="#" class="close" data-dismiss="alert" arialabel="close">×</a>
<strong></strong> Alert intimating something danger
</div>
</div>
<!-- BS Buttons:
Button Styles:PageNo:23
Bootstrap provides seven styles of buttons which could be achieved using
the following classes:
.btn-default
.btn-primary
.btn-success
.btn-info
.btn-warning
.btn-danger
.btn-link
-->
<div class="container">
<h2>Button Styles</h2>
<button type="button" class="btn btn-default">Default</button>
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-link">Link</button>
</div>
<!-- The button classes can be used on an <a>, <button>, or <input> element: -->
<div class="container">
<h2>Button Tags</h2>
<a href="#" class="btn btn-info" role="button">Link Button</a>
<button type="button" class="btn btn-info">Button</button>
<input type="button" class="btn btn-info" value="Input Button">
<input type="submit" class="btn btn-info" value="Submit Button">
</div>
<!-- Button Sizes:
Same as that of grid system button also has similar classes:
.btn-lg
.btn-md
.btn-sm
.btn-xs
The following example shows the code for different button sizes: -->
<div class="container">
<h2>Button Sizes</h2>
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary btn-md">Medium</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
<button type="button" class="btn btn-primary btn-xs">XSmall</button>
</div>
<!-- Active/Disabled Buttons:
To create a active and disabled button we have to use .active and
.disabled respectively:
The class .active makes a button appear pressed/clicked, and the class
.disabled makes a button unclickable: -->
<div class="container">
<h2>Button States</h2>
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-primary active">Active
Primary</button>
<button type="button" class="btn btn-primary disabled">Disabled
Primary</button>
</div>
<!-- BS Glyphicons:
Glyphicons:
Glyphicons are basically little symbols/icons that you can use in a
webpage. They're implemented in Bootstrap as an icon font — a custom font
that contains these glyphs instead of letters.
Bootstrap provides 200 glyphicons from the Glyphicons Halflings set.
Glyphicons can be used in text, buttons, toolbars, navigation, forms,
etc.
Here are some examples of glyphicons:
Music glyphicon:
Print glyphicon:
Search glyphicon:
Download glyphicon:
Glyphicon Syntax:
A glyphicon is inserted with the following syntax:
<span class="glyphicon glyphicon-name"></span>
The name part in the syntax above must be replaced with the proper name
of the glyphicon.
Glyphicon Example:
The following example shows different ways to use glyphicons:
-->
<div class="container">
<h2>Glyphicon Examples</h2>
<p>Envelope icon: <span class="glyphicon glyphicon-music"></span></p>
<p>Envelope icon as a link:
Bootstrap Course Material
Part of level 2 – Web Technologies course work ( visit http://monster.suven.net ) Page 27
<a href="#"><span class="glyphicon glyphicon-music"></span></a>
</p>
<p>Search icon: <span class="glyphicon glyphicon-search"></span></p>
<p>Search icon on a button:
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-search"></span> Search
</button>
</p>
<p>Search icon on a styled button:
<button type="button" class="btn btn-info">
<span class="glyphicon glyphicon-search"></span> Search
</button>
</p>
<p>Print icon: <span class="glyphicon glyphicon-print"></span></p>
<p>Print icon on a styled link button:
<a href="#" class="btn btn-success btn-lg">
<span class="glyphicon glyphicon-print"></span> Print
</a>
</p>
</div>
<!-- BS Badges/Labels:
Badges:
Badges are numerical indicators of how many items are associated with a
link:
for eg:
friends 5
notification 10
request 2
The numbers (5, 10, and 2) are the badges.
Use the .badge class within <span> elements to create badges: -->
<div class="container">
<h2>Badges</h2>
<a href="#">Friends <span class="badge">15</span></a><br>
<a href="#">Notification <span class="badge">110</span></a><br>
<a href="#">Request <span class="badge">21</span></a>
</div>
<!-- Badges can also be used inside other elements, such as buttons:
Primary 7 -->
<div class="container">
<h2>Badges on Buttons</h2>
<button type="button" class="btn btn-primary">Primary <span
class="badge">7</span></button>
<button type="button" class="btn btn-success">Success <span
class="badge">3</span></button>
<button type="button" class="btn btn-danger">Danger <span
class="badge">5</span></button>
</div>
<!-- Labels:
Use the .label class, followed by one of the six contextual classes
.label-default, .label-primary, .label-success, .label-info, .labelwarning or .label-danger, within a <span> element to create a label:
The following example shows all contextual label classes: -->
<div class="container">
<h2>Contextual Label Classes</h2>
<p>Contextual classes can be used to color the label.</p>
<span class="label label-default">Default Label</span>
<span class="label label-primary">Primary Label</span>
<span class="label label-success">Success Label</span>
<span class="label label-info">Info Label</span>
<span class="label label-warning">Warning Label</span>
<span class="label label-danger">Danger Label</span>
<!-- BS Progress Bars:
Basic Progress Bar
A progress bar can be used to show a user how far along he/she is in a
process.
Bootstrap provides several types of progress bars.
A default progress bar in Bootstrap looks like this:
70% Complete
To create a default progress bar, add a .progress class to a <div>
element: -->
<div class="container">
<h2>Basic Progress Bar</h2>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70" ariavaluemin="0" aria-valuemax="100" style="width:70%">
<span class="sr-only">70% Complete</span>
</div>
</div>
</div>
<!-- Progress Bar With Label:
A progress bar with a label looks like this:
70%
Remove the .sr-only class from the progress bar to show a visible
percentage:
-->
<div class="container">
<h2>Progress Bar With Label</h2>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70" ariavaluemin="0" aria-valuemax="100" style="width:70%">
70%
</div>
</div>
</div>
<!-- Colored Progress Bars:
Contextual classes are used to provide "meaning through colors".
The contextual classes that can be used with progress bars are:
.progress-bar-success
.progress-bar-info
.progress-bar-warning
.progress-bar-danger
The following example shows how to create progress bars with the
different contextual classes:
-->
<div class="container">
<h2>Colored Progress Bars</h2>
<p>The contextual classes colors the progress bars:</p>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" ariavaluenow="40" aria-valuemin="0" aria-valuemax="100" style="width:40%">
40% Complete (success)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" ariavaluenow="50" aria-valuemin="0" aria-valuemax="100" style="width:50%">
50% Complete (info)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" ariavaluenow="60" aria-valuemin="0" aria-valuemax="100" style="width:60%">
60% Complete (warning)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" ariavaluenow="70" aria-valuemin="0" aria-valuemax="100" style="width:70%">
70% Complete (danger)
</div>
</div>
</div>
<!-- Progress bars can also be striped:
Add class .progress-bar-striped to add stripes to the progress bars:
-->
<div class="container">
<h2>Striped Progress Bars</h2>
<p>The .progress-bar-striped class adds stripes to the progress bars:</p>
<div class="progress">
<div class="progress-bar progress-bar-success progress-bar-striped"
role="progressbar" aria-valuenow="40" aria-valuemin="0" ariavaluemax="100" style="width:40%">
40% Complete (success)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-info progress-bar-striped"
role="progressbar" aria-valuenow="50" aria-valuemin="0" ariavaluemax="100" style="width:50%">
50% Complete (info)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-warning progress-bar-striped"
role="progressbar" aria-valuenow="60" aria-valuemin="0" ariavaluemax="100" style="width:60%">
60% Complete (warning)
</div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-danger progress-bar-striped"
role="progressbar" aria-valuenow="70" aria-valuemin="0" ariavaluemax="100" style="width:70%">
70% Complete (danger)
</div>
</div>
Bootstrap Course Material
Part of level 2 – Web Technologies course work ( visit http://monster.suven.net ) Page 35
</div>
<!-- Animated Progress Bar:
Here is an "animated" progress bar:
40%
Add class .active to animate the progress bar: -->
<div class="container">
<h2>Animated Progress Bar</h2>
<p>The .active class animates the progress bar:</p>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"
style="width:40%">
40%
</div>
</div>
</div>
<!-- Stacked Progress Bars:
Progress bars can also be stacked:
-->
<div class="container">
<h2>Stacked Progress Bars</h2>
<p>Create a stacked progress bar by placing multiple bars into the same
div with class .progress:</p>
<div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar"
style="width:40%">
Free Space
</div>
<div class="progress-bar progress-bar-warning" role="progressbar"
style="width:10%">
Warning
</div>
<div class="progress-bar progress-bar-danger" role="progressbar"
style="width:20%">
Danger
</div>
</div>
</div>
<!-- BS Pagination:
Basic Pagination:
If you have a web site with lots of pages, you may wish to add some sort
of pagination to each page.
A basic pagination in Bootstrap looks like this:
To create a basic pagination, add the .pagination class to an <ul>
element:
-->
<div class="container">
<h2>Pagination</h2>
<p>The .pagination class provides pagination links:</p>
<ul class="pagination">
<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>
</ul>
</div>
<!--
Active State:
The active state shows what is the current page:
1 2 3 4 5
Add class .active to let the user know which page he/she is on: -->
<div class="container">
<h2>Pagination - Active State</h2>
<p>Add class .active to let the user know which page he/she is on:</p>
<ul class="pagination">
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
</div>
<!-- Disabled State:
A disabled link cannot be clicked:
1 2 3 4 5
Add class .disabled if a link for some reason is disabled: -->
<div class="container">
<h2>Pagination - Disabled State</h2>
<p>Add class .disabled if a page for some reason is disabled:</p>
<ul class="pagination">
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li class="disabled"><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
</div>
<!-- Pagination Sizing:
Pagination blocks can also be sized to a larger size or a smaller size:
1 2 3 4 5 1 2 3 4 5
Add class .pagination-lg for larger blocks or .pagination-sm for smaller
blocks:
-->
<div class="container">
<h2>Pagination - Sizing</h2>
<p>Add class .pagination-lg for larger blocks or .pagination-sm for
smaller blocks:</p>
<ul class="pagination pagination-lg">
<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>
</ul>
<ul class="pagination pagination-sm">
<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>
</ul>
</div>
<!-- BS Pager:
What is Pager?
Pager is also a form of pagination (as described in the previous
chapter).
Pager provides previous and next buttons (links).
To create previous/next buttons, add the .pager class to an <ul> element: -->
<div class="container">
<h2>Pager</h2>
<p>The .pager class provides previous and next buttons (links):</p>
<ul class="pager">
<li><a href="#">Previous</a></li>
<li><a href="#">Next</a></li>
</ul>
</div>
<!-- BS List Groups:
Basic List Groups:
The most basic list group is an unordered list with list items:
First item
Second item
Third item
To create a basic list group, use an <ul> element with class .list-group,
and <li> elements with class .list-group-item:
-->
<div class="container">
<h2>Basic List Group</h2>
<ul class="list-group">
<li class="list-group-item">First item</li>
<li class="list-group-item">Second item</li>
<li class="list-group-item">Third item</li>
</ul>
</div>
<!-- List Group With Linked Items:
The items in a list group can also be hyperlinks:
First item
Second item
Third item
To create a list group with linked items, use <div> instead of <ul> and
<a> instead of <li>:
-->
<div class="container">
<h2>List Group With Linked Items</h2>
<div class="list-group">
<a href="#" class="list-group-item active">First item</a>
<a href="#" class="list-group-item">Second item</a>
<a href="#" class="list-group-item">Third item</a>
</div>
</div>
<!-- Disabled Item:
The following list group has a disabled item:
First item
Second item
Third item
To disable an item, add the .disabled class: -->
<div class="list-group">
<a href="#" class="list-group-item disabled">First item</a>
<a href="#" class="list-group-item">Second item</a>
<a href="#" class="list-group-item">Third item</a>
</div>
</div>
<!-- Contextual Classes:
Contextual classes can be used to color list items:
First item
Second item
Third item
Fourth item
The classes for coloring list-items are: .list-group-item-success, listgroup-item-info, list-group-item-warning, and .list-group-item-danger:
-->
<div class="container">
<h2>List Group With Contextual Classes</h2>
<ul class="list-group">
<li class="list-group-item list-group-item-success">First item</li>
<li class="list-group-item list-group-item-info">Second item</li>
<li class="list-group-item list-group-item-warning">Third item</li>
<li class="list-group-item list-group-item-danger">Fourth item</li>
</ul>
<h2>Linked Items With Contextual Classes</h2>
<div class="list-group">
<a href="#" class="list-group-item list-group-item-success">First
item</a>
<a href="#" class="list-group-item list-group-item-info">Second item</a>
<a href="#" class="list-group-item list-group-item-warning">Third
item</a>
<a href="#" class="list-group-item list-group-item-danger">Fourth
item</a>
</div>
</div>
<!-- Custom Content:
You can add nearly any HTML inside a list group item.
Bootstrap provides the classes .list-group-item-heading and .list-groupitem-text which can be used as follows:
-->
<div class="container">
<h2>List Group With Custom Content</h2>
<div class="list-group">
<a href="#" class="list-group-item active">
<h4 class="list-group-item-heading">First List Group Item Heading</h4>
<p class="list-group-item-text">List Group Item Text</p>
</a>
<a href="#" class="list-group-item">
<h4 class="list-group-item-heading">Second List Group Item Heading</h4>
<p class="list-group-item-text">List Group Item Text</p>
</a>
<a href="#" class="list-group-item">
<h4 class="list-group-item-heading">Third List Group Item Heading</h4>
<p class="list-group-item-text">List Group Item Text</p>
</a>
</div>
</div>
<!-- Panels:
A panel in bootstrap is a bordered box with some padding around its
content:
A Basic Panel:
Panels are created with the .panel class, and content inside the panel
has a .panel-body class:
-->
<div class="container">
<h2>Basic Panel</h2>
<div class="panel panel-default">
<div class="panel-body">A Basic Panel</div>
</div>
</div>
<!-- Panel Heading
Panel Heading
Panel Content
The .panel-heading class adds a heading to the panel: -->
<div class="container">
<h2>Panel Heading</h2>
<div class="panel panel-default">
<div class="panel-heading">Panel Heading</div>
<div class="panel-body">Panel Content</div>
</div>
</div>
<!-- Panel Footer
Panel Content
Panel Footer
The .panel-footer class adds a footer to the panel: -->
<div class="container">
<h2>Panel Footer</h2>
<div class="panel panel-default">
<div class="panel-heading">Panel Heading</div>
<div class="panel-body">Panel Content</div>
<div class="panel-footer">Panel Footer</div>
</div>
</div>
<!-- Panel Group:
To group many panels together, wrap a <div> with class .panel-group
around them.
The .panel-group class clears the bottom-margin of each panel: -->
<div class="container">
<h2>Panel Group</h2>
<p>The panel-group class clears the bottom-margin. Try to remove the
class and see what happens.</p>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel Header</div>
<div class="panel-body">Panel Content</div>
</div>
</div>
</div>
<!-- Panels with Contextual Classes:
To color the panel, use contextual classes (.panel-default, .panelprimary, .panel-success, .panel-info, .panel-warning, or .panel-danger): -->
<div class="container">
<h2>Panels with Contextual Classes</h2>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">Panel with panel-default class</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">Panel with panel-primary class</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">Panel with panel-success class</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">Panel with panel-info class</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">Panel with panel-warning class</div>
<div class="panel-body">Panel Content</div>
</div>
<div class="panel panel-danger">
<div class="panel-heading">Panel with panel-danger class</div>
<div class="panel-body">Panel Content</div>
</div>
<!-- Dropdown Accessibility:
To help improve accessibility for people using screen readers, you should
include the following role and aria-* attributes, when creating a
dropdown menu: -->
<div class="container">
<h2>Dropdowns</h2>
<p>The .dropdown class is used to indicate a dropdown menu.</p>
<p>Use the .dropdown-menu class to actually build the dropdown menu.</p>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="menu1"
data-toggle="dropdown">Tutorials
<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li role="presentation"><a role="menuitem" tabindex="-1"
href="#">HTML</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="#">CSS</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1"
href="#">JavaScript</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">About