Bootstrap 4 Flashcards
(108 cards)
col-, col-sm-, col-md-, col-lg-, col-xl-
grid sizes for bootstrap 4
.display-1
.display-2
.display-3
.display-4
Larger font-size and lighter font-weight to make headers stand out
<small></small>
Creates a lighter, secondary text in any heading
.text-muted .text-primary .text-success .text-info .text-warning .text-danger .text-secondary .text-white .text-dark .text-body .text-light
Contextual based text classes
.bg-primary .bg-success .bg-info .bg-warning .bg-danger .bg-secondary .bg-dark .bg-light
Background color classes for text. You’ll want to use these in conjunction with .text-* classes.
.table .table-striped .table-bordered .table-hover .table-dark .table-borderless
Classes that can be combined for the most part which creates tables with specific styling according to their names.
.table-primary .table-success .table-danger .table-info .table-warning .table-active .table-secondary .table-light .table-dark
Table classes that set the background of the and tags.
.thead-dark
.thead-light
Styling that makes the table header light or dark
.table-sm
Makes a regular table condensed with a small amount of padding
.table-responsive .table-responsive-sm .table-responsive-md .table-responsive-lg .table-responsive-xl
Creates a scrollable table when the window is below a certain threshold
.rounded
.rounded-circle
.img-thumbnail
.img-fluid (responsive)
Changes the shape of an image according to its description
.jumbotron
.jumbotron-fluid
A large space from which to display important information. Requires the use of a <div> element and be inside a .container or .container-fluid classed div</div>
.alert .alert-success .alert .alert-info .alert .alert-warning .alert .alert-danger .alert .alert-primary .alert .alert-secondary .alert .alert-light .alert .alert-dark
Used to display alerts with contextual background colors. These can be dismissed with Xs on the right hand side.
Must be created within a DIV tag.
alert-link
Added to an alert text to change the color to one that accents the alert contextual background colors
.alert-dismissible
.close
data-dismiss=”alert”
.fade
.show
Used to create an alert that is closable using a × X symbol. Fade and Show are added classes to make the alert fade out when dismissed.
<div>
×
</div>
.btn .btn-* classes can be used on 3 elements
<a></a>
</a>
.btn .btn .btn-primary (blue) .btn .btn-secondary (grey) .btn .btn-success (green) .btn .btn-info (teal) .btn .btn-warning (gold) .btn .btn-danger (red) .btn .btn-dark (black) .btn .btn-light (white) .btn .btn-link (white)
Used for styling bootstrap 4 buttons
.btn .btn-outline-primary .btn .btn-outline-secondary .btn .btn-outline-success .btn .btn-outline-info .btn .btn-outline-warning .btn .btn-outline-danger .btn .btn-outline-dark .btn .btn-outline-light text-dark
Used to style buttons where the borders and text are contextual colors instead of the background
.btn .btn-lg
.btn .btn-sm
Makes button sizes small or large based on description
.btn-block
Makes a button that stretches to fill the containers width
.btn-group (parent div)
.btn .btn-*
.btn-group-lg
.btn-grou-sm
Creates a group of link buttons with styling. -lg and -sm make the buttons smaller or larger.
.badge .badge-primary .badge .badge-secondary .badge .badge-success .badge .badge-danger .badge .badge-warning .badge .badge-info .badge .badge-light .badge .badge-dark
Used with the SPAN tag, creates a “badge” which has a dark background , light text, and rounded button like appearance.
.badge .badge-pill .badge-success
.badge-ill makes the badges “pill shaped” by changing the border radius on the default badge styling.
.progress
.progress-bar .progress-bar-striped
.progress-bar-animated
.bg-*
Creates a progress bar DIV
Parent DIV .progress
Child DIV .progress-bar
requires styling with a width attribute