What is a Gutter?
A gutter is the space between columns. By default each column has padding on the left and right, which creates a gap between neighbors, so that content does not touch.
Gutter Classes
Add these classes to the .row, not to the columns.
| Class | Controls |
|---|---|
g-* | Both horizontal and vertical gutters |
gx-* | Horizontal gutters only |
gy-* | Vertical gutters only |
Replace the star with a number from 0 to 5. The bigger the number, the bigger the gap.
| Number | Gutter Size |
|---|---|
| 0 | No gutter |
| 1 | 0.25rem (4px) |
| 2 | 0.5rem (8px) |
| 3 | 1rem (16px), the default |
| 4 | 1.5rem (24px) |
| 5 | 3rem (48px) |
Remove the Gutters
This is useful when you want images or colored blocks to touch each other, like a photo gallery or a split-screen hero.
Bigger Gutters
Horizontal and Vertical Separately
Large horizontal gap between A and B, and a small vertical gap between the first row and the second row.
Why Vertical Gutters Matter
When columns wrap onto a new line (on phones for example), gy-* or g-* adds space between the stacked columns. Without it, your cards would touch each other when stacked.
Responsive Gutters
Small gaps on phones and bigger gaps from the medium size up.
Common Mistakes
- Adding
g-3to a column instead of the row - Using
m-3orp-3on columns to create a gap, which breaks the grid. Use gutters instead - Forgetting that
g-0also removes the vertical gap
Conclusion
Gutters give your grid breathing room. Always apply them to the row and choose a value between 0 and 5.

