---
layout: page
title: Layout
---
Primer's layout includes basic page containers and a single-tiered, fraction-based grid system. That sounds more complicated than it really is though—it's just containers, rows, and columns.
You can find all the below styles in `_layout.scss`.
## Contents
* Will be replaced with the ToC, excluding the "Contents" header
{:toc}
## Container
Center your page's contents with a `.container`.
{% highlight html %}
{% endhighlight %}
The container applies `width: 980px;` and uses horizontal `margin`s to center it.
## Grid
The grid is pretty standard—you create rows with `.columns` and individual columns with a column class and fraction class. Here's how it works:
- Add a `.container` to encapsulate everything and provide ample horizontal gutter space.
- Create your outer row to clear the floated columns with ``.
- Add your columns with individual `
`s.
- Add your fractional width classes to set the width of the columns (e.g., `.one-fourth`).
In practice, your columns will look like the example below.
{% example html %}
.one-fourth
.three-fourths
{% endexample %}