Book Image

Learning Zurb Foundation

By : Kevin Horek
Book Image

Learning Zurb Foundation

By: Kevin Horek

Overview of this book

<p>Responsive web design is the next big thing in web design right now. It allows you to control and adapt to the user experience across a variety of devices, screens, and resolutions. Foundation is one of the most well-known responsive frameworks available, and allows you to speed up the prototyping, designing, and theming of your web project; as well as allowing you to create your own custom themes to suit your needs. It makes your life easier by giving you a grid, elements, and JavaScript functions that are responsive and easily customized to work with any web or mobile project that arises.</p> <p>This book starts off with teaching you the basics, and gradually moves on to cover the most advanced parts of this amazing framework. You will learn how to use Foundation to prototype, design, and theme your projects as well as discover how to use the framework with any programming language or content management system.</p>
Table of Contents (17 chapters)
Learning Zurb Foundation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Nesting the grid


One of the other powerful things you can do with the grid is nest the grid inside itself as many times as you like. For example, if you want to use all the 12 columns for the header and footer of your project, but you also want the middle content area to have a sidebar and a content area, you set the middle row to have 4 columns and 8 columns. This is fine because they add up to 12, but inside the 8 columns, you want to have an introductory paragraph that takes up the entire width. Under this paragraph, you want to have two columns of content. You would create another row with another with two columns of 6 divs. Here is how the code will look for the middle content area:

<div class="row">
  <div class="large-4 columns">Sidebar</div>
    <div class="large-8 columns">
    <p>Paragraph of content</p>
    <div class="row">
    <div class="large-6 columns">6 Columns</div>
    <div class="large-6 columns">6 Columns&lt...