Selectors, Specificity, and the Cascade: Applying CSS3 to Documents

Selectors, Specificity, and the Cascade: Applying CSS3 to Documents

by Eric A. Meyer
Selectors, Specificity, and the Cascade: Applying CSS3 to Documents

Selectors, Specificity, and the Cascade: Applying CSS3 to Documents

by Eric A. Meyer

eBook

$7.99  $8.99 Save 11% Current price is $7.99, Original price is $8.99. You Save 11%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

Exactly how does the "cascade" in Cascading Style Sheets work? This concise guide demonstrates the power and simplicity of CSS selectors for applying style rules to different web page elements. You’ll learn how your page’s presentation depends on a multitude of style rules and the complex ways they function—and sometimes collide—within the document’s structure.

This guide is a chapter from the upcoming fourth edition of CSS: The Definitive Guide. When you purchase either the print or the ebook edition of Selectors, Specificity, and the Cascade, you’ll receive a significant discount on the entire Definitive Guide when it’s released. Why wait when you can learn how to use selectors and other key CSS 3 features right away?

  • Learn how to create CSS rules that apply to a large number of similar elements
  • Group rules to make style sheets smaller and download times faster
  • Understand how elements inherit styles from their parents
  • Discover how reader and browser preferences affect your page presentation
  • Examine specificity—the method browsers use to choose between two conflicting style rules
  • Get a handle on how specificity and inheritance combine to form the cascade
  • Get details on all of the CSS3 selectors

Product Details

ISBN-13: 9781449358358
Publisher: O'Reilly Media, Incorporated
Publication date: 09/28/2012
Sold by: Barnes & Noble
Format: eBook
Pages: 86
File size: 5 MB

About the Author

Eric A. Meyer is the author of the critically acclaimed online tutorialIntroduction to HTML, as well as some other semi-popular Web pages. He is a member of the CSS&FP Working Group and the author of Cascading Style Sheets: The Definitive Guide.

Table of Contents

Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Chapter 1: Selectors; 1.1 Basic Style Rules; 1.2 Grouping; 1.3 Class and ID Selectors; 1.4 Attribute Selectors; 1.5 Using Document Structure; 1.6 Pseudo-Class Selectors; 1.7 Pseudo-Element Selectors; 1.8 Summary; Chapter 2: Specificity and the Cascade; 2.1 Specificity; 2.2 Inheritance; 2.3 The Cascade; 2.4 Summary;
From the B&N Reads Blog

Customer Reviews