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

Preface

The Web no longer concerns only desktop or notebook devices. Web technology has now spread to various devices ranging from large desktop monitors to tablets, Smartphones, smart TVs, and outdoor displays. It has also increased the functionality and interfaces of sites and the way we interact with them.

Making a website responsive is not an option anymore. Hence, this is the time to hone our developing skills using grid system frameworks and providing a differentiated and enriched user experience.

In this book, we achieve all this using CSS3 and jQuery, which offer great integration options between devices, OSs, and different browser versions. Another advantage of using jQuery is the speed of development achieved by using plugins maintained by the collaborative community. We do not need to reinvent something that is already done! Furthermore, improvements are always welcome and your collaboration to the community will help everybody.

What this book covers

Chapter 1, Exploring Responsive Web Design, begins by explaining the concept of responsiveness created by generating wireframes for websites and adapting it to different screens. The chapter goes on to explain the mobile-first concept.

Chapter 2, Designing Responsive Layouts/Grids, helps you make flexible website structures and then focuses on explaining the usage of responsive grid systems and how it improves agility during development.

Chapter 3, Building Responsive Navigation Menu, has several analyzes and step-by-step implementations for each navigation menu pattern; this helps in the choice of the right option for each situation.

Chapter 4, Designing Responsive Text, explains the conversion of text to relative units and then their customization for beautiful and responsive heading titles.

Chapter 5, Preparing Images and Videos, explains handling high-resolution images in different formats. It then goes on to explain the art of direction importance when viewing images on Smartphones.

Chapter 6, Building Responsive Image Sliders, explains four different image-slider plugins and their implementation and shows useful touch libraries complementing the interaction.

Chapter 7, Designing Responsive Tables, delves into managing the different approaches for creating responsive tables, solving the difficulties faced while adjusting width for different screen sizes.

Chapter 8, Implementing Responsive Forms, discusses the highlights of form element features that improve the user experience by filling the form in on mobile devices and a good, responsive form framework.

Chapter 9, Testing the Responsiveness, discusses ways to perform responsive testing across various browsers and device platforms so as to prevent unexpected behaviors.

Chapter 10, Ensuring Browser Support, explains fallback and why it is deemed important. It then goes on to explain how to detect each browser feature that does / might not work for that browser and provides the correct support for these errors.

Chapter 11, Useful Responsive Plugins, shows different plugins for website structure, menu navigation, and so on, complementing the solutions already seen in other chapters.

Chapter 12, Improving Website Performance, explains major ways to analyze website performance using online tools and recommends tips to get better results.

What you need for this book

All the knowledge acquired by you after reading this book will be better assimilated if you already have an idea of the website you want to convert into a responsive one, because it can be made during the chapter exercises.

The list of software you will need is Apache HTTP Server, Adobe Photoshop CS5 or earlier, some code editor such as Sublime Text 2, and Internet browsers, such as Firefox and Chrome. Also, for testing the examples and exercises, it will be good for you to have mobile devices such as Smartphones or tablets.

Who this book is for

Responsive Web Design with jQuery and CSS3 is aimed at web designers who are interested in building device-agnostic websites. Some exposure to jQuery, CSS3, and HTML5 will be beneficial.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The HTML5 specification includes new structural elements, such as header, nav, article, and footer."

A block of code is set as follows:

.orientation_landscape .div-example {
  border: 2px solid red;
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

<svg width="96" height="96">
  <image xlink:href="svg.svg" src="svg.png" width="96" height="96" />
</svg>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "clicking the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.