Flex-box Grid

Use our powerful mobile-first flexbox grid to build layouts of all shapes and sizes thanks to a twelve-column system, five default responsive tiers, Sass variables and mixin, and dozens of predefined classes.

How it Works

Breaking it down, here’s how the grid system comes together:

Be aware of the limitations and bugs around flexbox, like the inability to use some HTML elements as flex containers.

Example :

here is an example of a grid layout for auto equal columns using container as wrapper and row to contain, pad, layouts auto adaptive three columns across all breakpoints,

<!-- Container -->
<div class="container">
    <!-- Row -->
    <div class="row">
        <!-- Column -->
        <div class="col">Column</div>
        <!-- Column -->
        <div class="col">Column</div>
        <!-- Column -->
        <div class="col">Column</div>
        <!-- // Column -->
    </div>
    <!-- // Row -->
</div>
<!-- // Container -->

Grid options

the grid system can adapt across all five default breakpoints, and any breakpoints you customize. The five default grid tiers are as mentioned and explained in the Responsive section,

As noted above, each of these breakpoints has its container, unique class prefix, and modifiers. Here’s how the grid changes across these breakpoints :

Feature xSmall Small Medium Large xLarge
Breakpoint > 0 > 576 > 768 > 1200 > 1366
Class Prefix col-* col-sm-* col-md-* col-lg-* col-xl-*
# of columns 12 Columns —– —– —– —–
Gutter width 1.875rem —– —– —– —–
Custom gutters Supported —– —– —– —–
Nestable Supported —– —– —– —–
Column ordering Supported —– —– —– —–

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

Auto-layout columns

Utilize breakpoints-specific column classes for easy column sizing without an explicit numbered class like .col-sm-6 For example, here are two grid layouts that apply to every device and viewport, from xs to xl. Add any number of unit-less classes for each breakpoint you need and every column will be the same width.