O'Reilly logo

Getting Started with Zurb Foundation 4 by Andrew D. Patterson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Block grids

Block grids are a special type of grid structure that you can use when you want to space content items evenly across the space you are working in.

You can have up to twelve items. This is independent of the number of cells you choose as the basis for your grid, if you do a custom download of Foundation. You will have at most twelve items even if you download a custom installation of Foundation.

Block grids use HTML lists with a special block-grid-n class. It is generally used within a content area of your page. The following is a simple example:

<ul class="small-block-grid-5">
  <li> <!-- content 1 --> </li>
  <li> <!-- content 2 --> </li>
  <li> <!-- content 3 --> </li>
  <li> <!-- content 4 --> </li>
  <li> <!-- content 5 --> </li>
</ul>

This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required