Advertisement

Google Ad Slot: content-top

Bootstrap 5 Grid offset

~1 min read · Bootstrap
On this page

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. 

Example
Responsive Column
Responsive Column
Responsive Column
Try it yourself

Responsive Offset:

Here, the offset changes based on the screen size:

  • On medium screens (md), it offsets by 2 columns.
  • On large screens (lg), it offsets by 4 columns.
Example
Responsive Column
Responsive Column
Responsive Column
Try it yourself