Book Image

Responsive Web Design by Example : Beginner's Guide

By : Thoriq Firdaus
Book Image

Responsive Web Design by Example : Beginner's Guide

By: Thoriq Firdaus

Overview of this book

<p>Responsive web design is an explosive area of growth in modern web development due to the huge volume of different device sizes and resolutions that are now commercially available. You can now create your very own responsive website quickly and efficiently, allowing you to showcase your content in a format that will work on any device with an Internet browser.<br /><br />By following our detailed step-by-step instructions in this structured reference guide, you will learn how you can build engaging responsive websites. With coverage of Bootstrap, Skeleton, and Zurb Foundation you'll learn about three of the most powerful responsive frameworks available today.<br /><br />Leading you through by practical example, you'll find that this essential reference develops your understanding by actually helping you create beautiful websites step by step in front of your very eyes. After going over the basics, you'll be able to choose between creating your own responsive portfolio page with Skeleton, building a stunning product page with Bootstrap, or setting up your own professional business website with Zurb Foundation. Ultimately you'll learn how to decide which framework is right for you, and how you can deploy and customize it to your exact specifications!</p>
Table of Contents (14 chapters)
Responsive Web Design by Example Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – sprite images


In the following steps, we will turn these icons into sprite images with a free CSS Sprite Generator Tool (http://spritegen.website-performance.org/):

  1. Given the icons proper names, such as twitter.png and twitter-hover.png, as shown in the following screenshot:

    This naming convention also applies to other icons. You don't have to limit yourself to our example; you can provide more than three icons. After all the images are prepared, add these icons to a ZIP file.

  2. Go to the CSS Generator Tool website (http://spritegen.website-performance.org/).

  3. Upload the ZIP file that we created in Step 2.

  4. Under the Sprite Output Options section, enter 10 in the Horizontal Offset and Vertical Offset fields to set them to 10 px:

  5. Then, click on the Create Sprite Image & CSS button, as shown in the following screenshot:

    This will generate the sprite image as well as the CSS rule to display it.

  6. Download the image and save it under the images folder in our working directory.

  7. Copy the...