« Back

Foundation Grid Testing


The Grid

Create powerful multi-device layouts quickly and easily with the 12-column, nestable Foundation 3 grid. If you're familiar with grid systems, you'll feel right at home.


Examples

These are examples of different ways to use the Foundation Grid. Foundation 3 uses border-box so that borders and padding do not effect the overall width.

Nesting

The grid allows for nesting down as far as you'd like, though at a certain point it will get absurd. You can use this nesting to create quite complex layouts, as well as some other tricks like form layouts or visual elements.

.four.columns
.four.columns
.four.columns
.three.columns
.six.columns
.three.columns
.two.columns
.eight.columns
.two.columns
.one
.eleven.columns
.two.columns
.ten.columns
.three.columns
.nine.columns
.four.columns
.eight.columns
.five.columns
.seven.columns
.six.columns
.six.columns
.seven.columns
.five.columns
.eight.columns
.four.columns
.nine.columns
.three.columns
.ten.columns
.two.columns
.eleven.columns
.one
.twelve.columns


Offsets

Offsets allow you to create additional space between columns in a row. Like the rest of the grid, they're nestable.

.one
.eleven.columns
.one
.ten.columns.offset-by-one
.one
.nine.columns.offset-by-two
.one
.eight.columns.offset-by-three
.seven.columns.offset-by-five
.six.columns.offset-by-six
.five.columns.offset-by-seven
.four.columns.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.

.one.columns.centered
.two.columns.centered
.three.columns.centered
.four.columns.centered
.five.columns.centered
.six.columns.centered
.seven.columns.centered
.eight.columns.centered
.nine.columns.centered
.ten.columns.centered
.eleven.columns.centered
.twelve.columns.centered


Source Ordering

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.

.two.columns
.ten.columns (last)
.three.columns
.nine.columns (last)
.four.columns
.eight.columns (last)
.five.columns
.seven.columns (last)
.six.columns
.six.columns (last)
.seven.columns
.five.columns (last)
.eight.columns
.four.columns (last)
.nine.columns
.three.columns (last)
.ten.columns
.two (last)


Mobile Grid

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

Mobile Source Ordering

The syntax includes .pull-one-mobile, .pull-two-mobile, .pull-three-mobile, .push-one-mobile, .push-two-mobile, .push-three-mobile.

.three.mobile-one.columns
.nine.mobile-three.columns
.six.mobile-two.columns
.six.mobile-two.columns
.nine.mobile-three.columns
.three.mobile-one.columns
.six.mobile-two.columns
.six.mobile-two.columns
.nine.mobile-three.columns
.three.mobile-one.columns


Block Grids

Block grids are ul with .two-up, .three-up, .four-up and .five-up styles. These are ideal for blocked-in content generated by an application, as they do not require rows or even numbers of elements to display correctly.

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