Bootstrap – Gutters


Bootstrap – Gutters



”;



This chapter will discuss about Bootstrap gutters. Gutter provides padding between your columns. Gutters are used to responsively space and align content.


How it works

  • Gutters are generated by horizontal padding, and are spaces between the column content. Align the content using padding-right and padding-left on each column.

  • Gutters begin at a width of 1.5 rem (24px), hence allows us to align grid to the scale of padding and margin spacers.

  • Adjust gutters with breakpoint-specific classes to change horizontal, vertical, and all other gutters.


Horizontal gutters

.gx-* classes manage the widths of horizontal gutters, and if larger gutters are used, the parent .container or .container-fluid may require adjustment to prevent overflow. This can be done using a padding utility, such as .px-4 as demonstarted in below example.