Cover image for Cascading style sheets : the definitive guide
Cascading style sheets : the definitive guide
Meyer, Eric A.
Personal Author:
Second edition.
Publication Information:
Sebastopol, Calif. : O'Reilly, [2004]

Physical Description:
xviii, 507 pages : illustrations ; 24 cm
General Note:
"Covers CSS2 and CSS2.1"--Cover.

"Visual presentation for the Web"--Cover.
CSS and documents -- Selectors -- Structure and the cascade -- Values and units -- Fonts -- Text properties -- Basic Visual formatting -- Padding, borders, and margins -- Colors and backgrounds -- Floating and positioning -- Table layout -- Lists and generated content -- User interface styles -- Non-screen media -- Property reference -- Selector, pseudo-class, and pseudo-element reference -- Sample HTML 4 style sheet.
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.76.H94 M47 2004 Adult Non-Fiction Central Closed Stacks

On Order



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.

Author Notes

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.

Reviews 1

Library Journal Review

Although O'Reilly books are not the best place to learn how to use a technology, they are excellent for polishing its finer points. Ethernet and Internet protocols are difficult by nature, but cascading style sheets and MP3s are much more accessible to beginners. All of these books are recommended for university and large public libraries; Cascading Style Sheets and MP3 will also serve well smaller public libraries. (c) Copyright 2010. Library Journals LLC, a wholly owned subsidiary of Media Source, Inc. No redistribution permitted.

Table of Contents

Forewordp. xi
Prefacep. xiii
1. CSS and Documentsp. 1
The Web's Fall from Gracep. 1
CSS to the Rescuep. 3
Elementsp. 8
Bringing CSS and XHTML Togetherp. 11
2. Selectorsp. 23
Basic Rulesp. 23
Groupingp. 27
Class and ID Selectorsp. 32
Attribute Selectorsp. 38
Using Document Structurep. 43
Pseudo-Classes and Pseudo-Elementsp. 50
3. Structure and the Cascadep. 60
Specificityp. 60
Inheritancep. 66
The Cascadep. 69
4. Values and Unitsp. 75
Numbersp. 75
Percentagesp. 75
Colorp. 76
Length Unitsp. 81
URLsp. 88
CSS2 Unitsp. 90
5. Fontsp. 92
Font Familiesp. 93
Font Weightsp. 98
Font Sizep. 104
Styles and Variantsp. 112
Stretching and Adjusting Fontsp. 115
The font Propertyp. 117
Font Matchingp. 122
6. Text Propertiesp. 126
Indentation and Horizontal Alignmentp. 126
Vertical Alignmentp. 131
Word Spacing and Letter Spacingp. 140
Text Transformationp. 143
Text Decorationp. 145
Text Shadowsp. 149
7. Basic Visual Formattingp. 155
Basic Boxesp. 155
Block-Level Elementsp. 158
Inline Elementsp. 176
Altering Element Displayp. 195
8. Padding, Borders, and Marginsp. 203
Basic Element Boxesp. 203
Marginsp. 207
Bordersp. 219
Paddingp. 233
9. Colors and Backgroundsp. 240
Colorsp. 240
Foreground Colorsp. 241
Backgroundsp. 247
10. Floating and Positioningp. 276
Floatingp. 276
Positioningp. 294
11. Table Layoutp. 331
Table Formattingp. 331
Table Cell Bordersp. 343
Table Sizingp. 351
12. Lists and Generated Contentp. 361
Listsp. 361
Generated Contentp. 369
13. User Interface Stylesp. 385
System Fonts and Colorsp. 385
Cursorsp. 390
Outlinesp. 394
14. Non-Screen Mediap. 401
Designating Medium-Specific Style Sheetsp. 401
Paged Mediap. 403
Aural Stylesp. 419
A. Property Referencep. 437
B. Selector, Pseudo-Class, and Pseudo-Element Referencep. 478
C. Sample HTML 4 Style Sheetp. 485
Indexp. 489