The default Bootstrap grid system utilizes 12 columns with each span having 30px
gutter as below. Gutters are the white space between columns. Gutter width seems to be between 20px
- 30px
. Let's assume it's 30px
here.
I want to remove the gutter space for a specific div
, so that there will be no gutter space in the row. Each span will be next to each other with no gutter.
The problem is if I remove the margin 30px
(gutter) it leaves 360px
(12 * 30px
) at the end of the row.
Given that I want to remove gutter space for a specific div
only. Let's assume that it's for div
s which are in the main_content
div
.
div#main_content div{
/*
no gutter for the divs in main_content
*/
}
How can I remove the gutter for a specific div
without loosing Bootstrap responsiveness and not leaving space at the end of the row?
row-no-gutters
in v3.4.0. See getbootstrap.com/docs/3.4/css/#grid-remove-gutters. In this situation, only add that class to the specific row(s) you do not want to have a gutter. See also #21255389 (possible duplicate) – Marozik