Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Utilities

Bootstrap 5 Utilities

Bootstrap includes dozens of utility classes for showing, hiding, aligning, spacing, and more.

Spacing

  • m - margin
  • p - padding
  • Sides: t (top), b (bottom), s (start/left), e (end/right), x (left/right), y (top/bottom)
  • Sizes: 0 to 5, and auto

Text

  • .text-center, .text-end
  • .fw-bold, .fst-italic

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics