Applying your spatial system rules to the gutters will help drive home a consistent rhythm in your designs.
Gutter size in mobile grid layouts.
You ll notice the grid above has been pushed to the right because it s now 99 99 wide plus the grid gaps.
When columns are defined using values they ll use exactly those values and add any grid gap on top.
The first is to be used when the elements that you want to distance one from each other don t use col or offset classes that specify a width and the latter is to be used when they do have col or offset classes specifying a width.
There are two main types of gutters depending on your use case.
The standard bootstrap grid is a 12 column layout with a 15px margin on each side of the column.
Gutters are the space between the columns.
Resulting in a 30px gutter between columns plus 15px to the left and right of the grid.
One final improvement can be made to our simple grid and it will solve the width problem we just mentioned.
What do i do if i have content such as images or text that goes across two pages.
Generally speaking 0 5 inches for your gutter margin is recommended for most books.
On mobile at a breakpoint of 360 dp this layout grid uses 16dp gutters.
You can also explicitly set the gutter size for a particular grid row by adding the gutter size.
Code for small screens first and larger devices will inherit those styles.
When choosing a 12 column grid the gutters between the columns shouldn t be too large since due to the small width of the columns and the large gutters between them the columns will begin to visually break up.
If you like me are a fan of the 8pt grid i recommend that you choose the size of the gutters proportional to the 8pt module.
A common example is the 12 column grid because it allows you to divide the given area into half thirds fourths sixths.
The space between columns is referred to as the gutter size.
Some systems increase the gutter width as you increase in device width but it s also okay to keep it fixed.
Use the grid layout mixin to create your own block grid.
We re going to introduce the fr or fraction unit.
By default the mixin takes 3 parameters.
Wider gutters are more appropriate for larger screens as they create more whitespace between columns.
On tablet at a breakpoint of 600 dp this layout grid uses 24dp gutters.