Gaps and Gutters

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

How it Works

Responsive Classes

the gutters utilities also support responsive classes which can apply the gutters at specific breakpoints you can learn the responsive classes and breakpoint patterns from the table below.

Feature xSmall Small Medium Large xLarge
Breakpoint > 0 > 576 > 768 > 1200 > 1366
Class Prefix gp-* gp-sm-* gp-md-* gp-lg-* gp-xl-*
Horizontal prefix gpx-* gpx-sm-* gpx-md-* gpx-lg-* gpx-xl-*
Vertical prefix gpy-* gpy-sm-* gpy-md-* gpy-lg-* gpy-xl-*
Element Grid Row —— —— —— ——

Note : ( —— ) refer to the same value as the column before.

Horizontal gutters

.gpx-* classes can be used to control the horizontal gutter widths. The .container or .container-fluid a 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: .pdx-*: with the same value of the .gpx-*.

<!-- Container -->
<div class="container">
    <!-- Row -->
    <div class="row">
        <!-- Column -->
        <div class="col-6">
            <div class="content-box">Default Gutter</div>
        </div>
        <!-- Column -->
        <div class="col-6">
            <div class="content-box">Default Gutter</div>
        </div>
        <!-- // Column -->
    </div>
    <!-- // Row -->
</div>
<!-- // Container -->

Vertical gutters

.gpy-* classes can be used to control the vertical gutter widths. Like the horizontal gutters, the vertical gutters use margin-bottom to make space between columns vertically with the default page flow,

and it can cause some overflow below the .row at the end of a page, If this occurs, you can add a class name .gpy-fix to the .row with a wrapper around .row with the .overflow-hidden class name.

<!-- Container -->
<div class="container overflow-hidden">
    <!-- Row -->
    <div class="row gpy-30 gpy-fix">
        <!-- Column -->
        <div class="col-6">
            <div class="content-box">.gpy-30</div>
        </div>
        <!-- Column -->
        <div class="col-6">
            <div class="content-box">.gpy-30</div>
        </div>
        <!-- // Column -->
    </div>
    <!-- // Row -->
</div>
<!-- // Container -->

Horizontal & Vertical

.gp-* classes can be used to control the horizontal gutter widths, for the following example we use a smaller gutter width, so there won’t be a need to add the .overflow-hidden wrapper class.