To adjust the gutter width, follow this example (demonstrating a 3% gutter)
.alt-grid .row {margin-left:-1.5%;margin-right:-1.5%;}
.alt-grid [class*="col-"] {padding-left:1.5%;padding-right:1.5%}
HTML
<body class="alt-grid">
By applying the [class*="col-"]
and .row
classes, all specified elements will be affected.
In the provided example, the alt-grid class is assigned to the body or a container encompassing the .row > .col-*-*
. Alternatively, it can also be added directly to the .row
itself...
<div class="row alt-grid">...</div>
CSS
.alt-grid.row {margin-left:-1.5%;margin-right:-1.5%;}
.alt-grid [class*="col-"] {padding-left:1.5%;padding-right:1.5%}
The width of the .container can also be modified:
<div class="container">...</div>
.alt-grid .container { /* assumes that the .alt-grid is on the body or html tag*/
width:100%;
max-width:1600px;
}
If you include padding on the left and right of your adjusted .container
, it should match the negative value of the .row
margin – in this instance, at least 1.5% padding on each side. In this example, the default 15px padding does not cause interference. Inadequate padding relative to the negative row margin may result in visible horizontal bars.