Undoing this negative left margin set a gutter of 30 px on both sides of the grid.
Custom gutter bootstrap.
The container or container fluid parent may need to be adjusted too to avoid unwanted overflow using again matching padding utility.
For grids that are the same from the smallest of devices to the largest use the col and col classes.
I will start with the easier less robust method using css and then explain the more advanced method using sass.
Here s an example of customizing the bootstrap grid at the large lg breakpoint.
Every column get a width of 940 12.
Quickly design and customize responsive mobile first sites with bootstrap the world s most popular front end open source toolkit featuring sass variables and mixins responsive grid system extensive prebuilt components and powerful javascript plugins.
Change the bootstrap grid layout such as breakpoints or gutter widths.
Just check the grid system block on the customize page.
Extend bootstrap classes with new custom classes ie.
Customize bootstrap s components less variables and jquery plugins to get your very own version.
Bootstrap s grid includes five tiers of predefined classes for building complex responsive layouts.
Btn custom whatever the reason is there are 2 ways to customize bootstrap.
This gutter is build with 15px padding of the column 15 px resting grid space.
Customize the size of your columns on extra small small medium large or extra large devices however you see fit.
To change the gutters in a given row pair a negative margin utility on the row and matching padding utilities on the cols.
The bootstrap grid allows 12 columns with 30 px wide gutters by default but these numbers can be adjusted.
The grid columns field allows to set a different number of columns and the grid gutter width field lets you change the gutter width.
On a big screen it might look better with the content organized in three columns but on a small screen it would be better if the content items were stacked on top of each other.
Requires ie9 or latest safari chrome or firefox.
In bootstrap 3 the gutter is defined as 30px 15px on each side of a column.