Note: Our system is based on the Bootstrap toolkit. The contents of this page are a simplified version of Bootstrap's extensive documentation.
Learn how to modify columns with a handful of options for alignment, ordering, and offsetting thanks to our flexbox grid system. Plus, see how to use column classes to manage widths of non-grid elements.
If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
Column One
(.col-12 .col-sm-9)
Column Two
(.col-12 .col-sm-4)
Column Three
(.col-12 .col-sm-6)
<div class="container">
<div class="row">
<div class="col-12 col-sm-9">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-6">
<p>Text</p>
</div>
</div>
</div>
You can offset grid columns in two ways: our responsive .offset-
grid classes and our margin utilities. Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable.
Move columns to the right using .offset-sm-*
classes. These classes increase the left margin of a column by * columns. For example, .offset-sm-2
moves .col-sm-4
over two columns.
Column One
(.col-12 .col-sm-6)
Column Two
(.col-12 .col-sm-4 .offset-sm-2)
<div class="container">
<div class="row">
<div class="col-12 col-sm-6">
<p>Text</p>
</div>
<div class="col-12 col-sm-4 offset-sm-2">
<p>Text</p>
</div>
</div>
</div>
Use .order-
classes for controlling the visual order of your content. These classes are responsive, so you can set the order
by breakpoint (e.g., .order-1.order-lg-3
). Includes support for 1
through 5
across all six grid tiers.
Column One
(.col-12 .col-sm-4 .order-1 .order-lg-3)
Column Two
(.col-12 .col-sm-4 .order-2 .order-lg-2)
Column Three
(.col-12 .col-sm-4 .order-3 .order-lg-1)
<div class="container">
<div class="row">
<div class="col-12 col-sm-4 order-1 order-lg-3">
<p>Text</p>
</div>
<div class="col-12 col-sm-4 order-2 order-lg-2">
<p>Text</p>
</div>
<div class="col-12 col-sm-4 order-3 order-lg-1">
<p>Text</p>
</div>
</div>
</div>
Use flexbox alignment utilities to vertically align columns.
Column One
Column Two
Column Three
<div class="container">
<div class="row align-items-start">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
Column Three
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
Column Three
<div class="container">
<div class="row align-items-end">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
Column Three
<div class="container">
<div class="row">
<div class="col-12 col-sm-4 align-self-start">
<p>Text</p>
</div>
<div class="col-12 col-sm-4 align-self-center">
<p>Text</p>
</div>
<div class="col-12 col-sm-4 align-self-end">
<p>Text</p>
</div>
</div>
</div>
Use flexbox alignment utilities to horizontally align columns.
Column One
Column Two
<div class="container">
<div class="row justify-content-start">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
<div class="container">
<div class="row justify-content-end">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
<div class="container">
<div class="row justify-content-around">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
<div class="container">
<div class="row justify-content-between">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>
Column One
Column Two
<div class="container">
<div class="row justify-content-evenly">
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
<div class="col-12 col-sm-4">
<p>Text</p>
</div>
</div>
</div>