Book Image

Responsive Web Design with jQuery

By : Gilberto Crespo
Book Image

Responsive Web Design with jQuery

By: Gilberto Crespo

Overview of this book

<p>Owing to the different types of devices that offer Internet browsing today, responsive web designing has become a booming area. The heightened use of CSS3 and JavaScript libraries such as jQuery has led to shorter responsive web design times. You can now create a responsive website swiftly that works richly in any device a user might possess.</p> <p>"Responsive Web Design with jQuery" is a practical book focused on saving your development time using the useful jQuery plugins made by the frontend community. Follow the chapters, and learn to design and augment a responsive web design with HTML5 and CSS3. The book presents a practical know how of these new technologies and techniques that are set to be the future of frontend web development.</p> <p>This book helps you implement the concept of responsive web design in clear, gradual, and consistent steps, demonstrating each solution, and driving you to practice it and avoid common mistakes.</p> <p>You will learn how to build a responsive website; right from its structure, conception, and adapting it to screen device width. We will also take a look at different types of menu navigation and how to convert text, images, and tables so as as to display them graciously on different devices. Features such as the carousel slider and form elements will also be covered, including the testing phase and the measures to create correct fallbacks for old browsers.</p> <p>With "Responsive Web Design with jQuery", you will learn to create responsive websites quickly by using CSS3 and the incredible jQuery plugins. You will also learn to save your time by tailoring solutions created and tested by the community.</p>
Table of Contents (19 chapters)
Responsive Web Design with jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Exercise 2b – using Foundation4 Grid to structure our website


After seeing the use of some Responsive Grid Systems (starting from a simpler solution and going for a more complete solution), let's structure our code using the Foundation4 Grid, creating the response quickly, and without writing one line of CSS code to do that. Also, remember to configure the viewport in the <head> tag.

Using the Foundation4 Grid, perform the following recommended steps:

  1. Start coding the HTML script.

  2. Identify the rows in the structure and add a row class to the existent element or to a new div tag.

  3. Measure how many columns each main element will fill and set this value in the classes.

Let's see how it is done in the following HTML:

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="utf-8" />
 <meta name="viewport" content="width=device-width" />
 <title>Responsive Web Design using jQuery & CSS3</title>
 <link rel="stylesheet" href="css/foundation.css" /...