Bootstrap 5 Basic
Bootstrap 5 Flexbox
In Bootstrap 5, the grid offset classes allow you to create space to the left of a column. This is helpful for centering columns, creating layouts with spacing, or just moving columns to a specific position in the row.
Try it yourself
Here, the offset changes based on the screen size:
md
), it offsets by 2 columns.lg
), it offsets by 4 columns.Try it yourself