The following approach will explain clearly.
Bootstrap 2 3 2 no gutter.
Gutter space has width 30px 15px on each side of a column.
With bootstrap 2 the old reset block has been dropped in favor of normalize css a project by nicolas gallagher and jonathan neal that also powers the html5 boilerplate.
In the example below we use three col elements which gets a width of 33 33 each.
No gutters the gutters between columns in our predefined grid classes can be removed with no gutters.
In bootstrap 4 there are 12 columns in the grid system each column has a small space in between that space is known as gutter space.
With bootstrap 2 we added optional mobile friendly styles for key aspects of the framework.
This removes the negative margins from row and the horizontal padding from all immediate children columns.
I came up with a handy no gutters class which has some pretty basic css that you apply to your row tag holding your columns.
Recently i had a need to have a default grid in bootstrap but also on the homepage i needed to have 4 boxes that butted right up against each other.
Here s the source code for creating these styles.
In fact bootstrap is mobile first.
A 12 column responsive grid dozens of components javascript plugins typography form controls and even a web based customizer to make bootstrap your own.
While we use much of normalize within our reset less we have removed some elements specifically for bootstrap.
Bootstrap was made to not only look and behave great in the latest desktop browsers as well as ie7 but in tablet and smartphone browsers via responsive css as well.
Now here s our code for the no gutters class.
To remove gutter space for a specific div first we must know what is gutter space.
Normally you would just assign visible xs visible sm visible md and visible lg to hide or show certain elements at different device widths.
This removes the negative margins from row and the horizontal padding from all immediate children columns.
Instead of adding on optional mobile styles they re baked right into the core.
The gutters between columns in our predefined grid classes can be removed with no gutters.
Regular bootstrap version below with kittens.
With bootstrap 3 2 being released they updated the way responsive utility classes work.
With bootstrap 3 we ve rewritten the project to be mobile friendly from the start.