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

Offsetting the grid


Another thing you will likely need to do at some point is offset your columns. This is also really easy to do in Foundation. By making sure that your columns add up to 12 for a certain screen size, you can still add offsets to that screen size. So, let's try it out in the large grid:

<div class="row">
  <div class="large-2 columns">2 Columns</div>
  <div class="large-8 large-offset-2 columns">8 Columns, Offset by 2 Columns</div>
</div>

Here is what the rendered code will look like on the screen:

As you can see, you have two columns, then you have a gap, an offset of two columns, and then you have another eight columns. Offsets are useful if you want to indent a section or put a space between sections, and they are a great way to start getting creative with the grid.