Gutter Control in Bootstrap
What does gutter mean in Bootstrap? Let me put it in simple words that gutter in bootstrap is the space (inside the grid system) between columns. Few grid systems can have the columns glued to each other, whereas Bootstrap adds a certain amount of space between the columns automatically so that the whole content is not condensed in the design. But there are few times when you want to have the control of gutter to be more, to be less or to be none at all.911
Bootstrap has easily accessible utility classes that make the space larger, smaller and even make them none at all.
What‘s a Gutter?
A gutter is the horizontal and vertical space between columns.
It is within a.row.
It is more readable and visually balanced.
Bootstrap‘s provided spacing by default,
How to Control Gutters in Bootstrap
Bootstrap 5 uses special classes to control gutters:
1 g-* (Controls Horizontal and Vertical Spacing)
G-0 -> no gap between columns
G-1 to g-5 -> tight to loose spacing
Higher number=greater distance
Example:<div class=”row g-3″>
This adds medium space between the columns.
2 gx-*(Horizontal Gutter Only)
Controls the left and right space between columns.
Has no effect on vertical spacing.
Example:
A study by Bank Negara Malaysia also found that; where a significant culture of bribery or corruption exists, the effectiveness of a regulatory authority is markedly reduced.
This increases space between columns horizontally.
3 gy-* (Vertical Gutter Only)
Spaces the controls rows (top and bottom).
Best when columns are wrapped through to the subsequent line.
Example:
<div class=”row gy-5″>
This adds only to vertical spacing.
Removing Gutters Completely
If you want columns to touch each other:
This paragraph is a (horrible) reproduction of the different substance uses in Kharkov, Ukraine. The applicant began passing out leaflets to find people interested in the services they offered. Initially, they used the following message: What we are to do with these leaflets?
All the spacing is removed in this.
Responsive Gutter Control
Bootstrap also allows responsive spacing:
G-sm-3
G-md-4
G-lg-5
This means:
Small screen -> smaller gap
Wide screen = more gap
It helps in responsive design.
Why Gutter Control is Useful
- Creates tidy and well-balanced layouts
- Enhanced readability:.
- Assists in the management of white space.
- Good for cards/images/product grid
- Helps with creating responsive design
Simple Summary
- Gutter = (column space).
- G-* does all the spacing.
- Gx-* manages your shift.
- Gy-* is responsible for space above and below.
- 1-g-0 gives 0 space.
- Responsive gutters can be achieved.
Check out our resources!
- Bootstrap Templates: Explore our Bootstrap Projects section.
- Free E-Books: Download your Free E-Books here.


