Preface

While we eagerly wait for the days to come where a single piece of code works across all browsers. Cross-browser strategies have arisen to meet these challenges in the meantime. You may already be familiar with some of these strategies; for example, detecting the browser version and manufacturer, and serving different pieces accordingly. More recently a new technique has emerged known as feature detection, targeting the look and feel of features as opposed to specific browsers. For example, creating a look for an element such as a div element for browsers that support and do not support box-shadow. We'll dive into this and much more in the chapters that follow.

What this book covers

Chapter 1, Getting Started with Modernizr, describes the concepts of feature detection compared to more traditional User Agent sniffing.

Chapter 2, Installing Modernizr, installs the library and establishes a basic HTML template.

Chapter 3, Using Modernizr the Right Way, covers multiple methods of feature detection and implements designs and functionalities around them.

Chapter 4, Customizing to Your Unique Needs, builds a custom-tailored version of the Modernizr library as well as exploring a few of the extras that come with it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset