Page

Table of Contents

Gutters

Gutters are the padding between your columns, used to responsively space and align content in the grid system.

How it Works
  • Gutters are the gaps between column content, created by horizontal padding.
  • By adding the class .g to a .row a row becomes flexbox enabled and can use the gutter utility classes. The .g class is then paired with either .g-* to control gutters in all directions, .gx-* to control horizontal gutters, and .gy-* to control vertical gutters.
  • Gutters can be responsively adjusted. Use breakpoint-specific gutter classes to modify horizontal gutters, vertical gutters, and all gutters.
Two Important Notes
  1. Using .g-* or .gx-* classes can overflow the parent container. (See Horizontal Gutters)
  2. Adding .g to a .row, requires child columns to include a .col-xs-* class.
Class Size
.g .g-0 / .gx-0 / .gy-0 0
.g .g-1 / .gx-1 / .gy-1 4px
.g .g-2 / .gx-2 / .gy-2 8px
.g .g-3 / .gx-3 / .gy-3 20px
.g .g-4 / .gx-4 / .gy-4 40px
.g .g-5 / .gx-5 / .gy-5 64px
.g .g-6 / .gx-6 / .gy-6 80px

Horizontal Gutters

.gx-* classes can be used to control the horizontal gutter widths. The .container or .container-fluid parent may need to be adjusted if larger gutters are used too to avoid unwanted overflow, using a matching padding utility. For example, in the following example we’ve increased the padding with .px-4:

Custom column padding
Custom column padding

An alternative solution is to add a wrapper around the .row with the .overflow-hidden class:

Custom column padding
Custom column padding

Vertical Gutters

.gy-* classes can be used to control the vertical gutter widths within a row when columns wrap to new lines. Like the horizontal gutters, the vertical gutters can cause some overflow below the .row at the end of a page. If this occurs, you add a wrapper around .row with the .overflow-hidden class:

Custom column padding
Custom column padding
Custom column padding
Custom column padding

Responsive Classes

Class
.g-* .g-sm-* .g-md-* .g-lg-* Horizontal Padding
.gx-* .gx-sm-* .gx-md-* .gx-lg-* Horizontal Padding
.gy-* .gy-sm-* .gy-md-* .gy-lg-* Vertical Padding

Page Classes

Page Sections

Page sections are large, padded sections that are added to a section of content with a shared background.

<!-- Page Section -->
<div class="page-section"></div>

<!-- Page Section: Centered. Matches Homepage behavior -->
<div class="page-section-centered"></div>

Block Spacing Classes

Use the following classes to add additional spacing to blocks on a page by using the block "Advanced Settings" section and CSS Class input.