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, and dozens of predefined classes.
Breaking it down, here’s how the grid system comes together:
min-width
media queries, meaning they affect that breakpoint and all those above it (e.g., .col-sm-4
applies to sm
, md
, lg
, and xl
). This means you can control container and column sizing and behavior by each breakpoint..container
for a responsive pixel width or .container-fluid
for width: 100% across all viewports and devices.padding
(called a gutter) for controlling the space between them. This padding
is then counteracted on the rows with negative margins to ensure the content in your columns is visually aligned down the left side.col-4
spans four). width
s are set in percentages so you always have the same relative sizing.Grayshift’s grid system can adapt across all five default breakpoints, and any breakpoints you customize. The five default grid tiers are as follow:
xs: 0;
sm: 576px;
md: 768px;
lg: 992px;
xl: 1200px;
Grayshift’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth explanation for how the grid system comes together.
One of three columns
One of three columns
One of three columns
<div class="container">
<div class="row">
<div class="col-md">
One of three columns
</div>
<div class="col-md">
One of three columns
</div>
<div class="col-md">
One of three columns
</div>
</div>
</div>