Grid
We are using a standard 12 column grid system. The grid helps you layout your page in an ordered, easy fashion.
Introduction
Take a look at this section to quickly understand how the grid works!
<div class="row">
<div class="col s1">1</div>
<div class="col s1">2</div>
<div class="col s1">3</div>
<div class="col s1">4</div>
<div class="col s1">5</div>
<div class="col s1">6</div>
<div class="col s1">7</div>
<div class="col s1">8</div>
<div class="col s1">9</div>
<div class="col s1">10</div>
<div class="col s1">11</div>
<div class="col s1">12</div>
</div>
Columns live inside Rows
Remember when you are creating your layout that all columns must be contained inside a row and that you must add the col class to your inner divs to make them into columns
<div class="row">
<div class="col s12">This div is 12-columns wide</div>
<div class="col s6">This div is 6-columns wide</div>
<div class="col s6">This div is 6-columns wide</div>
</div>
Offsets
To offset, simply add offset-s2 to the class where s signifies the screen class-prefix (s = small, m = medium, l = large) and the number after is the number of
columns you want to offset by.
<div class="row">
<div class="col s12"><span class="flow-text">This div is 12-columns wide on all screen sizes</span></div>
<div class="col s6 offset-s6"><span class="flow-text">6-columns (offset-by-6)</span></div>
</div>
Push and Pull
You can easily change the order of your columns with push and pull. Simply add push-s2 or pull-s2 to the class where s signifies
the screen class-prefix (s = small, m = medium, l = large) and the number after is the number of columns you want to push or pull by.
<div class="row">
<div class="col s7 push-s5"><span class="flow-text">This div is 7-columns wide on pushed to the right by 5-columns.</span></div>
<div class="col s5 pull-s7"><span class="flow-text">5-columns wide pulled to the left by 7-columns.</span></div>
</div>
Creating Responsive Layouts
Above we showed you how to layout elements using our grid system. Now we'll show you how to design your layouts so that they look great on all screen sizes.
Screen Sizes
| Mobile Devices <= 600px |
Tablet Devices <= 992px |
Desktop Devices > 992px |
|
|---|---|---|---|
| Class Prefix | .s |
.m |
.l |
| Container Width | 85% | 85% | 70% |
| Number of Columns | 12 | 12 | 12 |
Examples
<div class="row">
<div class="grid-example col s12"><span class="flow-text">I am always full-width (col s12)</span></div>
<div class="grid-example col s12 m6"><span class="flow-text">I am full-width on mobile (col s12 m6)</span></div>
</div>
<div class="row">
<div class="col s12"><p>s12</p></div>
</div>
<div class="row">
<div class="col s12"><p>s12</p></div>
<div class="col s12 m4 l2"><p>s12 m4</p></div>
<div class="col s12 m4 l8"><p>s12 m4</p></div>
<div class="col s12 m4 l2"><p>s12 m4</p></div>
</div>
<div class="row">
<div class="col s12 m6 l3"><p>s12 m6 l3</p></div>
<div class="col s12 m6 l3"><p>s12 m6 l3</p></div>
<div class="col s12 m6 l3"><p>s12 m6 l3</p></div>
<div class="col s12 m6 l3"><p>s12 m6 l3</p></div>
</div>