-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.html
3244 lines (3184 loc) · 176 KB
/
bootstrap.html
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.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap Cheatsheet</title>
<!-- Bootstrap CDN -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<!-- CSS -->
<link rel="stylesheet" href="assets/style.css">
</head>
<body data-theme="light">
<div class="container">
<!-- Theme Toggle -->
<div class="button float-end"><i class="bi bi-circle-half"></i></div>
<h3 class="title">BOOTSTRAP 4</h3>
<div class="section-list">
<ul>
<li><a href="#container-classes">Container Classes</a></li>
<li><a href="#jumbotron-classes">Jumbotron Classes</a></li>
<li><a href="#heading-classes">Heading Classes</a></li>
<li><a href="#typography-classes">Typography Classes</a></li>
<li><a href="#float-and-clearfix">Float and Clearfix</a></li>
<li><a href="#height-and-width">Height and Width</a></li>
<li><a href="#margin-and-padding">Margin and Padding</a></li>
<li><a href="#vertical-align">Vertical Align</a></li>
<li><a href="#visibility">Visibility</a></li>
<li><a href="#position">Position</a></li>
<li><a href="#display-element">Display Element</a></li>
<li><a href="#color-classes">Color Classes</a></li>
<li><a href="#screenreaders">Screenreaders</a></li>
<li><a href="#responsive-embeds">Responsive Embeds</a></li>
<li><a href="#border">Border</a></li>
<li><a href="#shadow">Shadow</a></li>
<li><a href="#tables-classes">Tables Classes</a></li>
<li><a href="#image-classes">Image Classes</a></li>
<li><a href="#alert-box-classes">Alert Box Classes</a></li>
<li><a href="#button-classes">Button Classes</a></li>
<li><a href="#badges">Badges</a></li>
<li><a href="#progress-bar">Progress Bar</a></li>
<li><a href="#spinners">Spinners</a></li>
<li><a href="#pagination">Pagination</a></li>
<li><a href="#list-groups">List Groups</a></li>
<li><a href="#cards">Cards</a></li>
<li><a href="#dropdown">Dropdown</a></li>
<li><a href="#collapse">Collapse</a></li>
<li><a href="#navs">Navs</a></li>
<li><a href="#navbar">Navbar</a></li>
<li><a href="#carousel">Carousel</a></li>
<li><a href="#modal">Modal</a></li>
<li><a href="#tooltip">Tooltip</a></li>
<li><a href="#popover">Popover</a></li>
<li><a href="#toast">Toast</a></li>
<li><a href="#scrollspy">Scrollspy</a></li>
<li><a href="#media-objects">Media Objects</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#form-inputs">Form Inputs</a></li>
<li><a href="#input-group">Input Group</a></li>
<li><a href="#custom-forms">Custom Forms</a></li>
<li><a href="#flexbox">Flexbox</a></li>
<li><a href="#grid">Grid</a></li>
</ul>
</div>
<div class="sections" id="container-classes">
<h4 class="heading"># Container Classes</h4>
<ul>
<li><code>container</code> : add to <code><div></code> for fixed width container</li>
<li><code>container-fluid</code> : add to <code><div></code> for full width container</li>
<li><code>container-sm|md|lg|xl</code> : add to <code><div></code> for responive containers</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="container"> ... </div>
</code></pre>
</div>
<div class="sections" id="jumbotron-classes">
<h4 class="heading"># Jumbotron Classes</h4>
<ul>
<li><code>jumbotron</code> : add to <code><div></code> for indicate big grey box for calling extra attention</li>
<li><code>jumbotron-fluid</code> : add to <code><div></code> for full-width jumbotron without rounded borders</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="jumbotron">
<h1>Bootstrap Tutorial</h1>
<p>Bootstrap is the most popular HTML, CSS...</p>
</div>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>Bootstrap Tutorial</h1>
<p>Bootstrap is the most popular HTML, CSS...</p>
</div>
</div>
</code></pre>
</div>
<div class="sections" id="heading-classes">
<h4 class="heading"># Heading Classes</h4>
<ul>
<li><code>display-1|2|3|4</code> : define header for element</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><h1 class="display-1">Display 1</h1>
</code></pre>
</div>
<div class="sections" id="typography-classes">
<h4 class="heading"># Typography Classes</h4>
<div>
<h5>Font Style :</h5>
<ul>
<li><code>font-weight-bold</code> : bold text</li>
<li><code>font-weight-bolder</code> : bolder text</li>
<li><code>font-italic</code> : italic text</li>
<li><code>font-weight-light</code> : light text</li>
<li><code>font-weight-lighter</code> : lighter text</li>
<li><code>font-weight-normal</code> : normal text</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="font-weight-bold">Bold text</p>
</code></pre>
</div>
<div>
<h5>Text Alignment :</h5>
<ul>
<li><code>text-left</code> : left aligned text</li>
<li><code>text-sm|md|lg|xl-left</code> : left-aligned text on screen size</li>
<li><code>text-right</code> : right aligned text</li>
<li><code>text-sm|md|lg|xl-right</code> : right aligned text on screens size</li>
<li><code>text-center</code> : center aligned text</li>
<li><code>text-sm|md|lg|xl-center</code> : center aligned text on screens size</li>
<li><code>text-justify</code> : justified text</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="text-right">Right-aligned text</p>
</code></pre>
</div>
<div>
<h5>Text Format & Cases :</h5>
<ul>
<li><code>text-monospace</code> : monospaced text</li>
<li><code>text-lowercase</code> : lowercased text</li>
<li><code>text-uppercase</code> : uppercased text</li>
<li><code>text-capitalize</code> : capitalized text</li>
<li><code>text-break</code> : prevents long text from breaking layout</li>
<li><code>text-nowrap</code> : no wrap text</li>
<li><code>text-reset</code> : resets color of text/link</li>
<li><code>text-decoration-none</code> : removes underline from link</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="text-uppercase">Uppercased text</p>
</code></pre>
</div>
<div>
<h5>Lists Style :</h5>
<ul>
<li><code>list-unstyled</code> : add to <code><ul></code>/<code><ol></code> to remove default list-style & ml on list items (this class only applies to immediate children list items)</li>
<li><code>list-inline</code> : place all list items on single line (used together with .list-inline-item on each <code><li></code> elements)</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><ul class="list-unstyled">
<li>Coffee</li>
<li>Milk</li>
</ul>
<ul class="list-inline">
<li class="list-inline-item">Coffee</li>
<li class="list-inline-item">Tea</li>
</ul>
</code></pre>
</div>
<div>
<h5>Text Format :</h5>
<ul>
<li><code>lead</code> : makes paragraph stand out</li>
<li><code>small</code> : small text than parent</li>
<li><code>initialism</code> : display text inside <code><abbr></code> element in slightly smaller font size</li>
<li><code>pre-scrollable</code> : make <code><pre></code> element scrollable</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="lead">This paragraph stands out</p>
<p>The <abbr title="World Health Organization" class="initialism">WHO</abbr> was founded in 1948</p>
<pre class="pre-scrollable">
Text in pre element is displayed in fixed-width font & it preservea both spaces & line breaks.
</pre>
</code></pre>
</div>
<div>
<h5>Flex & Grid :</h5>
<ul>
<li><code>justify-content</code> : justify content to start (default)</li>
<li><code>justify-content-start|end|center|between|around</code> : justifies inside content to</li>
<li><code>align-content-start|end|center|between|around|stretch</code> : align content to</li>
<li><code>align-items-start|end|center|baseline|stretch</code> : align item to</li>
</ul>
</div>
</div>
<div class="sections" id="float-and-clearfix">
<h4 class="heading"># Float and Clearfix</h4>
<ul>
<li><code>float-left|right</code> : float image to left or right</li>
<li><code>clearfix</code> : clear floats</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="clearfix">
<span class="float-left">Float left</span>
<span class="float-right">Float right</span>
</div>
</code></pre>
<div>
<h5>Responive Floats Class :</h5>
<ul>
<li><code>float-sm|md|lg|xl-left|right</code> : float depends on screen width</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="float-sm-right">Float right on small screens or wider</div>
</code></pre>
</div>
</div>
<div class="sections" id="height-and-width">
<h4 class="heading"># Height and Width</h4>
<ul>
<li><code>w-%</code> : set width to %</li>
<li><code>mw-%</code> : set max-width to %</li>
<li><code>h-%</code> : set height to %</li>
<li><code>mh-%</code> : set max-height to %</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="h-50 w-25 bg-warning">Width 25%, Height 50%</div>
</code></pre>
</div>
<div class="sections" id="margin-and-padding">
<h4 class="heading"># Margin and Padding</h4>
<ul>
<li><code>property-size</code> : set margin/padding</li>
<li><code>property(side)-size</code> : set specific sides margin/padding</li>
<li><code>property(side)-screen-size</code> : set margin/padding according to screen width</li>
<li><code>property-auto</code> : set margin/padding auto</li>
</ul>
<div>
<strong>Note :</strong>
<ol>
<li>property : m (margin) / p (padding)</li>
<li>side : l (left) / r (right) / t (top) / b (bottom) / x (left & right) / y (top & bottom)</li>
<li>size : 0, 1 (0.25rem), 2 (0.5rem), 3 (1rem), 4 (1.5rem), 5 (3rem); n1-n5 (sets negative value)</li>
<li>screen width : xs/sm/md/lg/xl</li>
</ol>
</div>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="pt-4 bg-warning">Padding 1.5rem</div>
<div class="m-5 pb-5 bg-info">Margin 3rem & Bottom Padding 3rem</div>
<div class="mb-sm-5 bg-warning">Margin Bottom 3rem on sm screens</div>
<div class="px-xl-5 bg-primary">Padding on x 5 on xl screens</div>
</code></pre>
<div>
<h6>Center Align Element Using Margin :</h6>
<p>Set left & right margin to auto i.e. <code>mx-auto</code></p>
<pre class="code-box code-box-color"><code><div class="mx-auto bg-warning" style="width:150px">Centered</div>
</code></pre>
</div>
</div>
<div class="sections" id="vertical-align">
<h4 class="heading"># Vertical Align</h4>
<p>Only for inline elements.</p>
<ul>
<li><code>align-baseline</code> : align to line</li>
<li><code>align-top</code> : align above line</li>
<li><code>align-middle</code> : align to middle of line</li>
<li><code>align-bottom</code> : align to bottom of line</li>
<li><code>align-text-top</code> : align text to top of line</li>
<li><code>align-text-bottom</code> : align text to bottom of line</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="align-baseline">baseline</span>
</code></pre>
</div>
<div class="sections" id="visibility">
<h4 class="heading"># Visibility</h4>
<ul>
<li><code>visible</code> : make element visible (visibility:visible)</li>
<li><code>invisible</code> : make element invisible (visibility:hidden)</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="visible">I am visible</div>
</code></pre>
</div>
<div class="sections" id="position">
<h4 class="heading"># Position</h4>
<ul>
<li><code>fixed-top|bottom</code> : fixed to top or bottom</li>
<li><code>sticky-top</code> : sticks to top on scroll</li>
</ul>
<h6>Ex :</h6>
<p>Fixed nav-bar at top -</p>
<pre class="code-box code-box-color"><code><nav class="navbar navbar-expand-sm bg-dark navbar-dark fixed-top">...</nav>
</code></pre>
</div>
<div class="sections" id="display-element">
<h4 class="heading"># Display Element</h4>
<ul>
<li><code>d-block</code> : add to make element block level</li>
<li><code>d-sm|md|lg|xl-block</code> : make block level depends on screen width</li>
<li><code>d-none</code> : set display property none</li>
<li><code>d-sm|md|lg-none</code> : make display none depends on srceen width</li>
<li><code>d-inline</code> : make element inline</li>
<li><code>d-sm|md|lg|xl-inline</code> : make element inline on specific screen width</li>
<li><code>d-inline-block</code> : make element inline block</li>
<li><code>d-sm|md|lg|xl-inline-block</code> : make element inline-block on specific screen size</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="d-block bg-success">d-block</span>
<span class="d-sm-block bg-success">d-sm-block</span>
</code></pre>
<div>
<h5>Display as Table :</h5>
<ul>
<li><code>d-table</code> : add to <code><div></code> to make element display as table</li>
<li><code>d-sm|md|lg|xl-table</code> : add to <code><div></code> make element display as table depends on screen size</li>
<li><code>d-table-cell</code> : add to <code><div></code> inside table make element display as table cell</li>
<li><code>d-sm|md|lg|xl-table-cell</code> : add to <code><div></code> to make element display as table cell depends on screen size</li>
<li><code>d-table-row</code> : add to <code><div></code> inside cell to make element display as table row</li>
<li><code>d-sm|md|lg|xl-table-row</code> : add to <code><div></code> to make element display as table row depends on screen size</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="d-table" style="width:100%">
<div class="d-table-row" style="width:100%">
<div class="d-table-cell">
<h4>Left Cell</h4>
<p>Some text</p>
</div>
<div class="d-table-cell">
<h4>Middle Cell</h4>
<p>Some text</p>
</div>
<div class="d-table-cell">
<h4>Right Cell</h4>
<p>Some text</p>
</div>
</div>
</div>
</code></pre>
</div>
<div>
<h5>Display as Flex :</h5>
<ul>
<li><code>d-flex</code> : create flexbox container & transform direct children into flex items</li>
<li><code>d-md|sm|lg|xl-flex</code> : create flexbox container depends on screen size</li>
<li><code>d-inline-flex</code> : create inline flexbox container</li>
<li><code>d-sm|md|lg|xl-inline-flex</code> : create inline flexbox container depends on screen size</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="d-flex p-3 bg-secondary text-white">
<div class="p-2 bg-info">Flex item 1</div>
<div class="p-2 bg-warning">Flex item 2</div>
<div class="p-2 bg-primary">Flex item 3</div>
</div>
</code></pre>
</div>
</div>
<div class="sections" id="color-classes">
<h4 class="heading"># Color Classes</h4>
<div>
<h5>Text Color Classes :</h5>
<ul>
<li><code>text-primary</code> : blue</li>
<li><code>text-secondary</code> : silver grey</li>
<li><code>text-success</code> : green</li>
<li><code>text-info</code> : cyan</li>
<li><code>text-warning</code> : yellow</li>
<li><code>text-danger</code> : red</li>
<li><code>text-dark</code> : dark grey</li>
<li><code>text-light</code> : light grey</li>
<li><code>text-body</code> : black (default color)</li>
<li><code>text-white</code> : white</li>
<li><code>text-muted</code> : grey</li>
<li><code>text-class-opacity</code> : text-dark-50 (50% opacity text)</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="text-primary">This text is important</p>
<a href="#" class="text-success">Success link</a>
<p class="text-black-50">Black text with 50% opacity on white background</p>
</code></pre>
</div>
<div>
<h5>Background Color Classes :</h5>
<ul>
<li><code>bg-primary</code> : blue</li>
<li><code>bg-secondary</code> : grey</li>
<li><code>bg-success</code> : green</li>
<li><code>bg-info</code> : cyan</li>
<li><code>bg-warning</code> : yellow</li>
<li><code>bg-danger</code> : red</li>
<li><code>bg-dark</code> : dark grey</li>
<li><code>bg-light</code> : light grey</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><p class="bg-primary text-white">This text is important</p>
</code></pre>
</div>
</div>
<div class="sections" id="screenreaders">
<h4 class="heading"># Screenreaders</h4>
<ul>
<li><code>sr-only</code> : to hide element on all devices, except screen readers</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="sr-only">I will be hidden on all screens except for screen readers.</span>
</code></pre>
</div>
<div class="sections" id="responsive-embeds">
<h4 class="heading"># Responsive Embeds</h4>
<ul>
<li><code>embed-responsive-aspectRatio</code> : add to parent element of video/iframe (div/span)</li>
<li><code>embed-responsive-item</code> : add to <code><video>/<iframe></code></li>
</ul>
<h6>Ex :</h6>
<p>Frame will be open is ratio 21:9 on screen -</p>
<pre class="code-box code-box-color"><code><div class="embed-responsive embed-responsive-21by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
</code></pre>
</div>
<div class="sections" id="border">
<h4 class="heading"># Border</h4>
<ul>
<li><code>border</code> : add default border to element</li>
<li><code>border-0</code> : set border width to 0</li>
<li><code>border-top|bottom|left|right-0</code> : set specific border to 0</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="border"></span>
<span class="border border-0"></span>
<span class="border border-top-0"></span>
</code></pre>
<div>
<h5>Contextual Border Color Classes :</h5>
<ul>
<li><code>border-primary</code> : blue</li>
<li><code>border-secondary</code> : grey</li>
<li><code>border-success</code> : green</li>
<li><code>border-info</code> : cyan</li>
<li><code>birder-warning</code> : yellow</li>
<li><code>border-danger</code> : red</li>
<li><code>border-dark</code> : dark grey</li>
<li><code>border-light</code> : light grey</li>
<li><code>border-white</code> : white</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="border border-primary"></span>
</code></pre>
</div>
<div>
<h5>Border Radius Classes :</h5>
<ul>
<li><code>rounded</code> : rounded border</li>
<li><code>rounded-sm</code> : rounded border on sm, lg & xl screens</li>
<li><code>rounded-lg</code> : rounded border on lg and xl screens</li>
<li><code>rounded-left|right|top|bottom</code> : border to specific side</li>
<li><code>rounded-circle</code> : border of 50% radius</li>
<li><code>rounded-0</code> : no rounded border</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="rounded-lg"></span>
</code></pre>
</div>
</div>
<div class="sections" id="shadow">
<h4 class="heading"># Shadow</h4>
<ul>
<li><code>shadow</code> : add default shadow to element</li>
<li><code>shadow-none</code> : no shadow</li>
<li><code>shadow-sm|lg</code> : add shadow on sm & lg shadow</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="shadow-none p-4 mb-4 bg-light">No shadow</div>
<div class="shadow-sm p-4 mb-4 bg-white">Small shadow</div>
</code></pre>
</div>
<div class="sections" id="tables-classes">
<h4 class="heading"># Tables Classes</h4>
<ul>
<li><code>table</code> : add to <code><table></code> for basic table style</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><table class="table">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</tbody>
</table>
</code></pre>
<div>
<h5>Table Style Classes :</h5>
<ul>
<li><code>table-striped</code> : add zebra-stripes to rows</li>
<li><code>table-bordered</code> : add borders on all sides of table and cells</li>
<li><code>table-hover</code> : add hover effect (grey background color) on table rows</li>
<li><code>table-dark</code> : add dark background to table</li>
<li><code>table-borderless</code> : removes borders from table</li>
<li><code>table-sm</code> : make table smaller by cutting cell padding in half</li>
</ul>
<p>Add in <code><table></code>.</p>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><table class="table table-striped">
<thead class="thead-dark">
<tr>
<th>header</th>
</tr>
</thead>
<tbody>
<tr>
<td>text 1</td>
</tr>
<tr>
<td>text 2</td>
</tr>
</tbody>
</table>
</code></pre>
</div>
<div>
<h5>Responsive Table :</h5>
<ul>
<li><code>table-responsive</code> : add scrollbar to table when needed</li>
<li><code>table-responsive-sm|md|lg|xl</code> : add scrollbar to table when needed depends on screen width</li>
</ul>
<p>Add in parent <code><div></code> element of table.</p>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="table-responsive">
<table class="table table-bordered"> ... </table>
</div>
</code></pre>
</div>
<div>
<h5>Table Header Color :</h5>
<ul>
<li><code>thead-dark</code> : add dark background to table header</li>
<li><code>thead-light</code> : add grey background to table header</li>
</ul>
<p>Add in table header <code><thead></code>.</p>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><table class="table table-striped table-sm">
<thead class="thead-dark">
<tr>
<th>header</th>
</tr>
</thead>
<tbody>
<tr>
<td>text 1</td>
</tr>
<tr>
<td>text 2</td>
</tr>
</tbody>
</table>
</code></pre>
</div>
<div>
<h5>Contextual Color Classes :</h5>
<ul>
<li><code>table-primary</code> : blue</li>
<li><code>table-success</code> : green</li>
<li><code>table-info</code> : cyan</li>
<li><code>table-warning</code> : yellow</li>
<li><code>table-danger</code> : red</li>
<li><code>table-active</code> : grey</li>
<li><code>table-secondary</code> : grey</li>
<li><code>table-light</code> : light grey</li>
<li><code>table-dark</code> : dark grey</li>
</ul>
<p>For row/col.</p>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><table class="table table-striped">
<thead>
<tr class="table-primary">
<th>header</th>
</tr>
</thead>
<tbody>
<tr class="table-light text-dark">
<td>text 1</td>
</tr>
</tbody>
</table>
</code></pre>
</div>
</div>
<div class="sections" id="image-classes">
<h4 class="heading"># Image Classes</h4>
<ul>
<li><code>rounded</code> : add rounded corners to image</li>
<li><code>rounded-circle</code> : shape image to circle</li>
<li><code>img-thumbnail</code> : shape image to thumbnail (bordered)</li>
<li><code>float-left</code> : float image to left</li>
<li><code>float-right</code> : float image to right</li>
<li><code>img-fluid</code> : image scale to parent element</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><img src="cinqueterre.jpg" class="rounded" alt="Cinque Terre">
<img src="paris.jpg" class="float-left">
</code></pre>
<div>
<h6>Float Image To Center (Center Aligned Image) -</h6>
<pre class="code-box code-box-color"><code><img src="paris.jpg" class="mx-auto d-block">
</code></pre>
</div>
</div>
<div class="sections" id="alert-box-classes">
<h4 class="heading"># Alert Box Classes</h4>
<ul>
<li><code>alert</code> : default alert</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="alert">
<strong>Alert!</strong> This is alert-box
</div>
</code></pre>
<div>
<h5>Contextual Alert Classes :</h5>
<ul>
<li><code>alert-success</code></li>
<li><code>alert-info</code></li>
<li><code>alert-warning</code></li>
<li><code>alert-danger</code></li>
<li><code>alert-primary</code></li>
<li><code>alert-secondary</code></li>
<li><code>alert-light</code></li>
<li><code>alert-dark</code></li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="alert alert-success">
<strong>Success!</strong> Indicates a successful or positive action.
</div>
</code></pre>
</div>
<div>
<h5>Alert Links Class :</h5>
<ul>
<li><code>alert-link</code> : add to links <code><a></code> inside alert box to create matching colored links</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="alert alert-success">
<strong>Success!</strong> You should <a href="#" class="alert-link">read this message</a>.
</div>
</code></pre>
</div>
<div>
<h5>Animated Alerts :</h5>
<ul>
<li>add <code>.fade</code> and <code>.show</code> class to alert box</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="alert alert-success alert-dismissible fade show">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Success!</strong> This alert box could indicate a successful or positive action.
</div>
</code></pre>
</div>
<div>
<h5>Close Button Class :</h5>
<ul>
<li><code>alert-dismissible</code> : add to create dismussible alert box</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>Success!</strong> Indicates a successful or positive action.
</div>
</code></pre>
</div>
</div>
<div class="sections" id="button-classes">
<h4 class="heading"># Button Classes</h4>
<ul>
<li><code>btn</code> : add to <code><button>/<input>/<a></code> for basic button style</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button type="button" class="btn">Basic</button>
</code></pre>
<div>
<h5>Button Classes :</h5>
<ul>
<li><code>btn-block</code> : make button block-level that spans full width</li>
<li><code>active</code> : active button</li>
<li><code>disable</code> : disabled button</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button type="button" class="btn btn-primary btn-block">Full-Width Button</button>
<button type="button" class="btn btn-primary active">Active Primary</button>
<a href="#" class="btn btn-primary disabled">Disabled Link</a>
</code></pre>
</div>
<div>
<h5>Contextual Button Colors :</h5>
<ul>
<li><code>btn-primary</code> : blue</li>
<li><code>btn-secondary</code> : grey</li>
<li><code>btn-success</code> : green</li>
<li><code>btn-info</code> : cyan</li>
<li><code>btn-warning</code> : yellow</li>
<li><code>btn-danger</code> : red</li>
<li><code>btn-light</code> : light grey</li>
<li><code>btn-dark </code>: dark grey</li>
<li><code>btn-link</code> : no color</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button type="button" class="btn btn-warning">Warning</button>
</code></pre>
</div>
<div>
<h5>Button Outline Classes :</h5>
<ul>
<li><code>btn-outline-primary</code> : blue</li>
<li><code>btn-outline-secondary</code> : grey</li>
<li><code>btn-outline-success</code> : green</li>
<li><code>btn-outline-info</code> : cyan</li>
<li><code>btn-outline-warning</code> : yellow</li>
<li><code>btn-outline-danger</code> : red</li>
<li><code>btn-outline-light</code> : light grey</li>
<li><code>btn-outline-dark</code> : dark grey</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button type="button" class="btn btn-outline-primary">Primary</button>
</code></pre>
</div>
<div>
<h5>Spinner Buttons :</h5>
<ul>
<li><code>spinner-border</code> : spinner button</li>
<li><code>spinner-border-sm</code> : small size spinner button</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button class="btn btn-primary">
<span class="spinner-border spinner-border-sm"></span>
</button>
</code></pre>
</div>
<div>
<h5>Button Size Classes :</h5>
<ul>
<li><code>btn-sm</code> : small size button</li>
<li><code>btn-lg</code> : large size button</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><button type="button" class="btn btn-primary btn-lg">Large</button>
</code></pre>
</div>
<div>
<h5>Button Groups Classes :</h5>
<ul>
<li><code>btn-group</code> : add to parent <code><div></code> of <code><button></code> for horizontal group buttons</li>
<li><code>btn-group-vertical</code> : add to parent <code><div></code> of <code><button></code> for vertical group buttons</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="btn-group">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
</div>
<div class="btn-group-vertical">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
</div>
</code></pre>
</div>
<div>
<h5>Button Group Sizing Classes :</h5>
<ul>
<li><code>btn-group-sm</code> : small button</li>
<li><code>btn-group-lg</code> : large button</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="btn-group btn-group-lg">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Sony</button>
</div>
</code></pre>
</div>
<div>
<h6>Button Group With Dropdown List -</h6>
<pre class="code-box code-box-color"><code><div class="btn-group">
<button type="button" class="btn btn-primary">Apple</button>
<button type="button" class="btn btn-primary">Samsung</button>
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
Sony
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Tablet</a>
<a class="dropdown-item" href="#">Smartphone</a>
</div>
</div>
</div></code></pre>
</div>
<div>
<h5>Split Button Dropdown :</h5>
<ul>
<li><code>dropdown-toggle-split</code> : add to button for split</li>
</ul>
<pre class="code-box code-box-color"><code><div class="btn-group">
<button type="button" class="btn btn-primary">Sony</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown">
<span class="caret"></span>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Tablet</a>
<a class="dropdown-item" href="#">Smartphone</a>
</div>
</div></code></pre>
</div>
</div>
<div class="sections" id="badges">
<h4 class="heading"># Badges</h4>
<ul>
<li><code>badge</code> : add badge to <code><span></code></li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="badge">Badge</span>
</code></pre>
<div>
<h5>Pill Badges :</h5>
<ul>
<li><code>badge-pill</code> : to make badges more round</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="badge badge-pill badge-primary">Primary</span>
</code></pre>
</div>
<div>
<h5>Contextual Color Badges :</h5>
<ul>
<li><code>badge-primary</code> : blue</li>
<li><code>badge-secondary</code> : grey</li>
<li><code>badge-success</code> : green</li>
<li><code>badge-info</code> : cyan</li>
<li><code>badge-warning</code> : yellow</li>
<li><code>badge-danger</code> : red</li>
<li><code>badge-light</code> : light grey</li>
<li><code>badge-dark</code> : dark grey</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><span class="badge badge-primary">Primary</span>
</code></pre>
</div>
</div>
<div class="sections" id="progress-bar">
<h4 class="heading"># Progress Bar</h4>
<ul>
<li><code>progress</code> : add progress to parent <code><div></code></li>
<li><code>progress-bar</code> : add progress-bar inside of parent progress for progress status</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="progress">
<div class="progress-bar" style="width:70%"> 70% </div>
</div>
</code></pre>
<div>
<h5>Progress Bar Style Class :</h5>
<ul>
<li><code>progress-bar-striped</code> : add stripes to progress bar</li>
<li><code>progress-bar-animated</code> : for animating progress bar</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="progress">
<div class="progress-bar progress-bar-striped" style="width:40%"></div>
</div>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width:40%"></div>
</div>
</code></pre>
</div>
<div>
<h5>Multiple Progress Bar :</h5>
<p>Use contextual color classes for bg & text color.</p>
<pre class="code-box code-box-color"><code><div class="progress">
<div class="progress-bar bg-success" style="width:40%">
Free Space
</div>
<div class="progress-bar bg-warning" style="width:10%">
Warning
</div>
<div class="progress-bar bg-danger" style="width:20%">
Danger
</div>
</div>
</code></pre>
</div>
</div>
<div class="sections" id="spinners">
<h4 class="heading"># Spinners</h4>
<ul>
<li><code>spinner-border</code> : add to <code><div>/<span></code> for spinner of spinning border</li>
</ul>
<h6>Ex :</h6>
<p>Use contextual color classes for color.</p>
<pre class="code-box code-box-color"><code><div class="spinner-border text-primary"></div>
</code></pre>
<div>
<h5>Growing Spinner :</h5>
<ul>
<li><code>spinner-grow</code> : add to <code><div>/<span></code> for growing spinner</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="spinner-grow text-muted"></div>
</code></pre>
</div>
<div>
<h5>Spinner Size Classes :</h5>
<ul>
<li><code>spinner-border-sm|lg</code> : spinner size</li>
<li><code>spinner-grow-sm|lg</code> : spinner size</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><div class="spinner-border spinner-border-sm"></div>
<div class="spinner-grow spinner-grow-sm"></div>
</code></pre>
</div>
</div>
<div class="sections" id="pagination">
<h4 class="heading"># Pagination</h4>
<ul>
<li><code>pagination</code> : add class to <code><ul></code></li>
<li><code>page-item</code> : add to each <code><li></code> inside <code><ul></code></li>
<li><code>page-link</code> : add to each link <code><a></code> inside of <code><li></code></li>
</ul>
<div>
<h5>Page Status Class :</h5>
<ul>
<li><code>active</code> : add to <code><li></code> for highlight current page</li>
<li><code>disabled</code> : add to <code><li></code> for disable page click</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><ul class="pagination">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item active"><a class="page-link" href="#">2</a></li>
<li class="page-item disabled"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</code></pre>
</div>
<div>
<h5>Pagination Size :</h5>
<ul>
<li><code>pagination-sm|lg</code> : small & large pagination</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><ul class="pagination pagination-lg">
<li class="page-item"><a class="page-link" href="#">Previous</a></li>
<li class="page-item"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">Next</a></li>
</ul>
</code></pre>
</div>
<div>
<h5>Pagination Alignment Classes :</h5>
<ul>
<li><code>justify-content-center</code> : center aligned</li>
<li><code>justify-content-end</code> : right aligned</li>
</ul>
<h6>Ex :</h6>
<pre class="code-box code-box-color"><code><ul class="pagination justify-content-end" style="margin:20px 0">