Classes
Classes
Classes
COLORS AND BG
TABLEs
IMAGES
AlERTS
.alert ==
BUTTONS
button classes can be used on <a>,<button>,<input>
.btn-lg|sm === defines button size
.btn-block === block level BUTTONS
.btn-group-sm|lg === to create button group
.btn-group-vertical == to align button group vertically
spinner buttons
BADGES
use badges on span
.badge === to create badge (badge scale to match the size of the parent element)
used with .rounded-pill for round corners
PROGRESS BAR
use on div inside div
use width style on child element
.progress == to crete container for progress BAR
.progress-bar == added on child element of progress class
.progress-bar-striped == add stripes to progress bar
.progress-bar-animated == animate progress bar
PAGINATION
LIST GROUPS
CARDS
DROPDOWN MENUS
.dropdown-divider == used to separate links inside the dropdown menu with horizotal
border
eg <li><hr class="dropdown-divider"></hr></li>
COLLAPSIBLE
use attribute
NAVBARS
to create a collapsable navbar use button with class .navbar-toggler with attribute
data-bs-toggle="collapse" data-bs-target = "#collapsibleNavbar"
CAROUSEL/SLIDESHOW
USED WITH JS
MODAL
styled alert
Tooltips
small pop-up when user hovers over a element
<button type="button" class="btn btn-primary" data-bs-toggle="tooltip"
title="Hooray!">Hover over me!</button>
POPOVERS
similar to tooltips but contains more content
TOAST
notification
SCROLLSPY
automatically update links in a navigation bar based on scroll
add following to body tag
data-bs-spy="scroll" data-bs-target=".navbar" data-bs-offset="50"
OFFCANVAS
side navigation bar
UTILITY CLASSES
.border === adds border
.border-top
.border-bottom
.border-end
.border-start
.border-1 == border width
.border-primary == color
.rounded == round border
.rounded-5 == more rounded border
.float-start == float left
.float-end
.h-25|50|75|100 == height
.mh-100|auto
.shadow-small|lg|none
aligning vertically
.align-baseline == aligns at bottom
.align-top == aligns at top
.align-middle ==
.align-bottom
.align-text-top
.align-text-bottom
.visible
.invisible
FLEXBOX
used on container
.align-content-start == vertically top
.align-content-end == vertically bottom
.align-content-center == center
.align-content-around == space around
.align-content-strech == items are filled in containier
used on flex-item
.align-self-start ==
.align-self-end ==
.align-self-center ==
.align-self-baseline ==
.align-self-stretch ==