CSS: The Definitive Guide, 3/e (Paperback)

Eric A. Meyer

  • 出版商: O'Reilly
  • 出版日期: 2006-11-17
  • 售價: $1,480
  • 貴賓價: 9.5$1,406
  • 語言: 英文
  • 頁數: 538
  • 裝訂: Paperback
  • ISBN: 0596527330
  • ISBN-13: 9780596527334
  • 相關分類: CSS
  • 相關翻譯: CSS 權威指南, 3/e (簡中版)
  • 已過版





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 and also 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.

CSS: The Definitive Guide, 3rd Edition, provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, lists and generated content, table layout, user interface, paged media, and more. Author Eric Meyer tackles the subject with passion, exploring in detail each individual CSS property and how it interacts with other properties. You'll not only learn how to avoid common mistakes in interpretation, you also will benefit from the depth and breadth of his experience and his clear and honest style. This is the complete sourcebook on CSS.


Table of Contents


1. CSS and Documents

     The Web's Fall from Grace

     CSS to the Rescue


     Bringing CSS and XHTML Together

2. Selectors

     Basic Rules


     Class and ID Selectors

     Attribute Selectors

     Using Document Structure

     Pseudo-Classes and Pseudo-Elements

3. Structure and the Cascade



     The Cascade

4. Values and Units




     Length Units


     CSS2 Units

5. Fonts

     Font Families

     Font Weights

     Font Size

     Styles and Variants

     Stretching and Adjusting Fonts

     The font Property

     Font Matching

6. Text Properties

     Indentation and Horizontal Alignment

     Vertical Alignment

     Word Spacing and Letter Spacing

     Text Transformation

     Text Decoration

     Text Shadows

7. Basic Visual Formatting

     Basic Boxes

     Block-Level Elements

     Inline Elements

     Altering Element Display

8. Padding, Borders, and Margins

     Basic Element Boxes




9. Colors and Backgrounds


     Foreground Colors


10. Floating and Positioning



11. Table Layout

     Table Formatting

     Table Cell Borders

     Table Sizing

12. Lists and Generated Content


     Generated Content

13. User Interface Styles

     System Fonts and Colors



14. Non-Screen Media

     Designating Medium-Specific Style Sheets

     Paged Media

     Aural Styles

A. Property Reference

B. Selector, Pseudo-Class, and Pseudo-Element Reference

C. Sample HTML 4 Style Sheet