Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Grid Basic

Bootstrap 5 Grid System

Bootstrap's grid system is built with flexbox and allows up to 12 columns across the page.

If you do not want to use all 12 columns individually, you can group the columns together to create wider columns.

Grid Classes:

  • .col- (extra small devices)
  • .col-sm- (small devices)
  • .col-md- (medium devices)
  • .col-lg- (large devices)
  • .col-xl- (xlarge devices)
  • .col-xxl- (xxlarge devices)

Try It Yourself

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

Source Code
Result
Topics