Synopses & Reviews
Simply put, Cascading Style Sheets (CSS) is a way to separate a document's structure from its presentation. The benefits of this can be quite profound: CSS allows a much richer document appearance than HTML; CSS saves time--you can create or change the appearance of an entire document in just one place; and its compact file size makes web pages load quickly. Eric Meyer, a member of the CSS&FP Working Group and an internationally known expert on HTML and CSS, tackles the subject with passion and delivers a comprehensive and thorough update to his groundbreaking book.All readers will benefit from both the depth and breadth of his experience and his clear and honest style. Cascading Style Sheets: The Definitive Guide, 2nd Edition is a thorough review of all aspects of CSS2.1 and a comprehensive guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user interface, paged media, and more. It explores in detail each individual CSS property and how it interacts with other properties, and shows how to avoid common mistakes in interpretation.If you're ready to take the next step with your HTML coding and incorporate CSS or are already a CSS code warrior, you'll find Cascading Style Sheets: The Definitive Guide, 2nd Edition is the book you've been craving.
Targeting veteran Web authors, this is the first major title to cover Cascading Style Sheets (CSS) in a way that both acknowledges and describes current browser support, instead of simply describing the way things work in theory.
'Cascading Style Sheets: The Definitive Guide', 2nd edition is a thorough review of all aspects of CSS2.1 and a comprehensive guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user interface, paged media, and more.
Targeting veteran Web authors, this is the first major title to cover Casca
About the Author
Eric is the author of the critically acclaimed online tutorial Introduction 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
Dedication; Foreword; Preface; Conventions Used in This Book; Property Conventions; How to Contact Us; Acknowledgments; Chapter 1: CSS and Documents; 1.1 The Web's Fall from Grace; 1.2 CSS to the Rescue; 1.3 Elements; 1.4 Bringing CSS and XHTML Together; 1.5 Summary; Chapter 2: Selectors; 2.1 Basic Rules; 2.2 Grouping; 2.3 Class and ID Selectors; 2.4 Attribute Selectors; 2.5 Using Document Structure; 2.6 Pseudo-Classes and Pseudo-Elements; 2.7 Summary; Chapter 3: Structure and the Cascade; 3.1 Specificity; 3.2 Inheritance; 3.3 The Cascade; 3.4 Summary; Chapter 4: Values and Units; 4.1 Numbers; 4.2 Percentages; 4.3 Color; 4.4 Length Units; 4.5 URLs; 4.6 CSS2 Units; 4.7 Summary; Chapter 5: Fonts; 5.1 Font Families; 5.2 Font Weights; 5.3 Font Size; 5.4 Styles and Variants; 5.5 Stretching and Adjusting Fonts; 5.6 The font Property; 5.7 Font Matching; 5.8 Summary; Chapter 6: Text Properties; 6.1 Indentation and Horizontal Alignment; 6.2 Vertical Alignment; 6.3 Word Spacing and Letter Spacing; 6.4 Text Transformation; 6.5 Text Decoration; 6.6 Text Shadows; 6.7 Summary; Chapter 7: Basic Visual Formatting; 7.1 Basic Boxes; 7.2 Block-Level Elements; 7.3 Inline Elements; 7.4 Altering Element Display; 7.5 Summary; Chapter 8: Padding, Borders, and Margins; 8.1 Basic Element Boxes; 8.2 Margins; 8.3 Borders; 8.4 Padding; 8.5 Summary; Chapter 9: Colors and Backgrounds; 9.1 Colors; 9.2 Foreground Colors; 9.3 Backgrounds; 9.4 Summary; Chapter 10: Floating and Positioning; 10.1 Floating; 10.2 Positioning; 10.3 Summary; Chapter 11: Table Layout; 11.1 Table Formatting; 11.2 Table Cell Borders; 11.3 Table Sizing; 11.4 Summary; Chapter 12: Lists and Generated Content; 12.1 Lists; 12.2 Generated Content; 12.3 Summary; Chapter 13: User Interface Styles; 13.1 System Fonts and Colors; 13.2 Cursors; 13.3 Outlines; 13.4 Summary; Chapter 14: Non-Screen Media; 14.1 Designating Medium-Specific Style Sheets; 14.2 Paged Media; 14.3 Aural Styles; 14.4 Summary; Property Reference; Visual Media; Tables; Paged Media; Dropped from CSS2.1; Visual Styles; Paged Media; Aural Styles; Selector, Pseudo-Class, and Pseudo-Element Reference; Selectors; Pseudo-Classes and Pseudo-Elements; Sample HTML 4 Style Sheet; Colophon;