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

Off-canvas navigation


We will now cover how to make an off-canvas menu; this type of menu has normally just been used on mobile phones, but over the last year, there have been some sites that have used this type of menu on a tablet and desktop/laptop as well. An off-canvas menu is a menu that slides the content and menu from any side of the screen.

So let's try adding the following code right after the opening body tag:

<div class="off-canvas-wrap" data-offcanvas>
    <div class="inner-wrap">
    <nav class="tab-bar">
      <section class="left-small">
      <a class="left-off-canvas-toggle menu-icon" ><span></span></a>
      </section>

      <section class="middle tab-bar-section">
      <h1 class="title">Learning Zurb Foundation</h1>
      </section>
    </nav>
    <aside class="left-off-canvas-menu">
      <ul class="off-canvas-list">
      <li><label>Left Off-canvas</label&gt...