While bootstrap uses em s or rem s for defining most sizes px s are used for grid breakpoints and container widths.
Bootstrap gutter width change.
The change is not reflected and the gutter spacing remains the same.
In this article we ll look at how to reorder columns and add gutters with bootstrap 5.
The bootstrap 4 grid system has five classes col extra small devices screen width less than 576px col sm small devices screen width equal to or greater than 576px col md medium devices screen width equal to or greater than 768px col lg large devices screen width equal to or greater than 992px col xl xlarge devices screen width equal to or greater than 1200px.
For the variable to reduce the spacing grid gutter width.
See how aspects of the bootstrap grid system work across multiple devices with a handy table.
This is because the viewport width is in pixels and does not change with the font size.
The mdb scss file imports the core bootstrap scss files during recompile but yet the change is not reflected.
To change the gutters in a given row pair a negative margin utility on the row and matching padding utilities on the cols.
Bootstrap 5 is in alpha when this is written and it s subject to change.
Here s an example of customizing the bootstrap grid at the large lg breakpoint.