The problem in your code is you have used the blue class right in the divs with col class.
No gutter bootstrap 4.
You can copy our examples and paste them into your project.
Bootstrap 4 grid examples.
Bootstrap css class no gutters with source code and live preview.
Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
The following image shows the highlighted gutter space and space between columns on bootstrap 4 12 column grid system.
Columns create gutters gaps between column.
Use 230 ready made bootstrap components from the multipurpose library.
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.
By default bootstrap 4 has class no gutters to remove gutter spaces of any specific div.
You can even modify gutter width by reducing 15px width of gutter space between each columns.
You should leave that div with only the col class.
Bootstrap how to remove the gutter between columns 4 answers closed 2 years ago.
Regular bootstrap version below with kittens.
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.
Bootstrap 3 and 4 both already have 30px gutters between columns.
No gutters class in bootstrap.
Welcome all we will see one of the useful classes in bootstrap4 for the grid system.
All breakpoints extra small small medium large and extra large.
Now here s our code for the no gutters class.
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.
Add the no gutters class to the row container to remove gutters extra space.
I m using bootstrap 4 in an angular project and i have noticed that the framework automatically put some left margin when using the col class.
You need to do this the other way.