VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/bootstrap-5-gutters/

⇱ Bootstrap 5 Gutters - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Bootstrap 5 Gutters

Last Updated : 23 Jul, 2025

Bootstrap 5 Gutters are used to give padding between columns,  responsively space, and align content to the grid system.

How gutters works?

  • Using the .padding-right and .padding-left classes, we can add padding to the right and left of each column. Gutters, which are produced by horizontal padding, are spaces between the content of columns.
  • Gutters begin at a width of 1.5 rem (24 px).

Bootstrap 5 Gutters:

  • Horizontal gutters: Horizontal gutter is used for horizontal padding between columns, responsively space, and aligning content to the grid system.
  • Vertical gutters: Vertical gutter is used for vertical padding between columns.
  • Horizontal & vertical Gutters: In bootstrap 5, horizontal & vertical gutters are used to give horizontal & vertical padding between columns.
  • Row columns gutters: This gutter is used to create responsive space in our grid.
  • No gutters: No gutters remove margin and padding from rows and columns.

Example 1: Let us see an example of vertical width by using the .gy-* class.

Output:

👁 Image
Bootstrap 5 Gutters

Example 2: Let us see an example of horizontal width by using the .gx-* class.

Output:

👁 Bootstrap 5 Gutters
Bootstrap 5 Gutters

Reference: https://getbootstrap.com/docs/5.0/layout/gutters/

Comment

Explore