vi
Contents
Contents at a Glance .................................................................................................. iv
Contents ..................................................................................................................... vi
About the Authors .................................................................................................... xiv
About the Technical Reviewer .................................................................................. xv
Acknowledgments ................................................................................................... xvi
Introduction ............................................................................................................. xvi
Audience ......................................................................................................................... xvi
Innovations .................................................................................................................... xvii
Conventions ..................................................................................................................... xx
Using This Book ............................................................................................................. xxii
How This Book Is Structured ........................................................................................ xxiii
Downloading the Code ...................................................................................................xxiv
Using the Code ............................................................................................................... xxv
Contacting the Authors .................................................................................................. xxv
Chapter 1: Design Patterns: Making CSS Easy! .......................................................... 1
Design Patterns—Structured Recipes ............................................................................... 2
Using Design Patterns........................................................................................................ 2
Using Style Sheets ............................................................................................................. 7
CSS Syntax ........................................................................................................................ 8
Using Cascade Order ....................................................................................................... 14
Simplifying the Cascade .................................................................................................. 17
CSS and HTML Links ........................................................................................................ 18
Common CSS Properties .................................................................................................. 19
CSS Properties and Values: Common .............................................................................. 20
CSS Properties and Values: Content ................................................................................ 21
CSS Properties and Values: Layout .................................................................................. 22
CSS Properties and Values: Specialized .......................................................................... 23