
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
Author

Eric A. Meyer has been working with the Web since late 1993 and is an internationally recognized expert on the subjects of HTML and Cascading Style Sheets (CSS). He is the principal consultant for Complex Spiral Consulting and lives in Cleveland, Ohio, which is a much nicer city than you've been led to believe. A graduate of and former Webmaster for Case Western Reserve University and an alumnus of the same fraternity chapter to which Donald Knuth once belonged, Eric coordinated the authoring and creation of the W3C's CSS Test Suite and has recently been acting as List Chaperone of the highly active css-discuss mailing list. Author of "Eric Meyer on CSS" (New Riders), "Cascading Style Sheets: The Definitive Guide" (O'Reilly & Associates), "CSS2.0 Programmer's Reference" (Osborne/McGraw-Hill), and the fairly well-known CSS Browser Compatibility Charts, Eric speaks at a variety of conferences on the subject of standards, CSS use, and Web design. For nine years, he was the host of "Your Father's Oldsmobile," a weekly Big Band-era radio show heard on WRUW 91.1-FM in Cleveland. When not otherwise busy, Eric is usually bothering his wife Kat in some fashion.