This method was inspired by the Foundation grid, from Zurb. It is made slightly more dynamic, but will require Sass 3.2 to become truly configureable.

#### Examples

Take this page for example - we've set up this page by containing this section in columns-8, and the sidebar in four. When the screen is larger than iPad resolution you'll see them laid out normally - smaller than that and columns become 100% width objects for mobile devices.

Below you can see how the rows and columns come together. All columns are inside a row and for this we've colored the rows and columns for visibility. You can also see how nesting works - this example is inside an eight column container, but below we have all 12 columns to use. You can nest them down quite a ways before the percentage widths become absurdly small.

.columns-4
.columns-4
.columns-4
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-1
.columns-3
.columns-6
.columns-3
.columns-2
.columns-8
.columns-2
.columns-1
.columns-11
.columns-2
.columns-10
.columns-3
.columns-9
.columns-4
.columns-8
.columns-5
.columns-7
.columns-6
.columns-6
.columns-7
.columns-5
.columns-8
columns-4
.columns-9
.columns-3
.columns-10
.columns-2
.columns-11
.columns-1
.columns-12
.columns-1
.columns-11
.columns-1
.columns-10.offset-by-one
.columns-1
.columns-9.offset-by-two
.columns-1
.columns-8.offset-by.three
.columns-7.offset-by-five
.columns-6.offset-by-six
.columns-5.offset-by-six
columns-4.offset-by-eight

#### Centered Columns

Centered columns are placed in the middle of the row. This does not center their content, but centers the grid element itself. This is a convenient way to make sure a block is centered, even if you change the number of columns it contains. Note: for this to work, there cannot be any other column blocks in the row.

.columns-1.centered
.columns-2.centered
.columns-3.centered
columns-4.centered
.columns-5.centered
.columns-6.centered
.columns-7.centered
.columns-8.centered
.columns-9.centered
.columns-10.centered
.columns-11.centered
.columns-12.centered

#### Source Ordering

Sometimes within the grid you want the order of your markup to not necessarily be the same as the order items are flowed into the grid. Using these source ordering classes you can shift columns around on desktops and tablets. On phones the grid will still be linearized into the order of the markup.

.columns-2
.columns-10 (last)
.columns-3
.columns-9 (last)
columns-4
.columns-8 (last)
.five
.columns-7 (last)
.columns-6
.columns-6 (last)
.columns-7
.columns-5 (last)
.columns-8
columns-4 (last)
.columns-9
.columns-3 (last)
.columns-10
.two (last)

#### Offsets

Offsets allow you to create additional space between columns in a row. The offsets run from offset-by-one all the way up to offset-by-eleven. Like the rest of the grid they're nestable.

#### Mobile Grid

The grid has two modes of adapting for small displays like phones. The first requires no work at all — the grid will linearize on a small device so your columns stack vertically. This is useful to quickly adapt a desktop layout to a simple scrolling mobile layout. The other option is to use some simple classes to implement a four-column phone grid.

##### Four Column Mobile Grid

When you're creating your layout you can optionally attach classes that take your existing grid elements and attach them to a four column phone grid.

.columns-3.phone-1
.columns-9.phone-3
.columns-6
.columns-6
.columns-10.phone-3
.columns-2.phone-1

##### Two-up

- Two-up element
- Two-up element
- Two-up element
- Two-up element
- Two-up element

##### Three-up

- Three-up element
- Three-up element
- Three-up element
- Three-up element
- Three-up element

##### Four-up (Mobile)

- Four-up element
- Four-up element
- Four-up element
- Four-up element
- Four-up element
- Four-up element

##### Five-up

- Five-up element
- Five-up element
- Five-up element
- Five-up element
- Five-up element
- Five-up element
- Five-up element

##### Mobile Source Ordering

You can use the same push and pull style classes on the 4 column phone grid. The syntax includes .pull-one-phone, .pull-two-phone, .pull-three-phone, as well as .push-one-phone, .push-two-phone, .push-three.phone.

#### Other Layout Options

Be sure to check out the Layout docs to see how you can turn various grid elements on and off, as well as use 2/3/4/5-up block grids for gallery style layouts.