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

Panels


Panels are basically elements with a background and a border. By default, panels give you a gray background and a dark gray border. So, let's give them a shot. On or around line 191, add the following:

<div class="panel">
      <p>
        This is some default panel content.
      </p>
    </div>

You will see that the panel takes up the entire 12 columns, so let's change this and make it take up only 6 columns and add a second panel that takes up the other 6 columns. So, let's change our code to:

<div class="small-12 large-6 columns">
    
<div class="panel">
    <p>
      This is some default panel content.
    </p>  
   </div>
      
</div>
      
<div class="small-12 large-6 columns">
    
 <div class="panel">
    <p>
      This is some default panel content.
    </p>  
    </div>
      
</div>

You will notice that now as we nested the 6 columns inside the 12 columns, you get two panels...