You are previewing CSS Pocket Reference, 3rd Edition.
O'Reilly logo
CSS Pocket Reference, 3rd Edition

Book Description

They say that good things come in small packages, and it's certainly true for this edition of CSS Pocket Reference. Completely revised and updated to reflect the latest Cascading Style Sheet specifications in CSS 2.1, this indispensable little book covers the most essential information that web designers and developers need to implement CSS effectively across all browsers. Inside, you'll find:

  • A short introduction to the key concepts of CSS

  • A complete alphabetical reference to all CSS 2.1 selectors and properties

  • A chart displaying detailed information about CSS support for every style element and its cross-browser compatibility

This reference neatly condenses the details of its top-selling companion volume, Cascading Style Sheets: The Definitive Guide into one easy-to-use cheat-sheet that delivers all the CSS details you need to complete the task at hand. Whenever you're stuck and need an answer quickly -- or if you just want to be sure you're applying CSS correctly -- this edition of the CSS Pocket Reference is the book you'll want by your keyboard or, conveniently, in your back pocket.

Table of Contents

  1. CSS Pocket Reference, 3rd Edition
  2. 1. CSS Pocket Reference
    1. Conventions Used in This Book
    2. SafariĀ® Books Online
    3. Adding Styles to HTML and XHTML
      1. Inline Styles
      2. Embedded Style Sheets
      3. External Style Sheets
        1. @import directive
        2. link element
        3. xml-stylesheet processing instruction
    4. Rule Structure
    5. Style Precedence
      1. Specificity Calculations
      2. Inheritance
      3. The Cascade
    6. Element Classification
      1. Nonreplaced Elements
      2. Replaced Elements
    7. Element Display Roles
      1. Block-Level
      2. Inline-Level Elements
    8. Basic Visual Layout
      1. Block-Level Layout
      2. Inline Layout
    9. Floating Rules
    10. Positioning Rules
      1. Types of Positioning
      2. The Containing Block
      3. Layout of Absolutely Positioned Elements
        1. Horizontal layout of nonreplaced absolutely positioned elements
        2. Vertical layout of nonreplaced absolutely positioned elements
        3. Horizontal layout of replaced absolutely positioned elements
        4. Vertical layout of replaced absolutely positioned elements
    11. Table Layout
      1. Table Arrangement Rules
      2. Fixed Table Layout
      3. Automatic Table Layout
      4. Collapsing Cell Borders
        1. Collapsing borders
      5. Vertical Alignment Within Cells
    12. Values
      1. Keywords
      2. Color Values
      3. Number Values
      4. Percentage Values
      5. Length Values
        1. Absolute length units
        2. Relative length units
      6. URIs
      7. Aural-Specific Values
    13. Selectors
    14. Pseudo-Classes and Pseudo-Elements
    15. Property Reference
      1. Visual Media
        1. background
        2. background-attachment
        3. background-color
        4. background-image
        5. background-position
        6. background-repeat
        7. border
        8. border-bottom
        9. border-bottom-color
        10. border-bottom-style
        11. border-bottom-width
        12. border-color
        13. border-left
        14. border-left-color
        15. border-left-style
        16. border-left-width
        17. border-right
        18. border-right-color
        19. border-right-style
        20. border-right-width
        21. border-style
        22. border-top
        23. border-top-color
        24. border-top-style
        25. border-top-width
        26. border-width
        27. bottom
        28. clear
        29. clip
        30. color
        31. content
        32. counter-increment
        33. counter-reset
        34. cursor
        35. direction
        36. display
        37. float
        38. font
        39. font-family
        40. font-size
        41. font-style
        42. font-variant
        43. font-weight
        44. height
        45. left
        46. letter-spacing
        47. line-height
        48. list-style
        49. list-style-image
        50. list-style-position
        51. list-style-type
        52. margin
        53. margin-bottom
        54. margin-left
        55. margin-right
        56. margin-top
        57. max-height
        58. max-width
        59. min-height
        60. min-width
        61. outline
        62. outline-color
        63. outline-style
        64. outline-width
        65. overflow
        66. padding
        67. padding-bottom
        68. padding-left
        69. padding-right
        70. padding-top
        71. position
        72. quotes
        73. right
        74. text-align
        75. text-decoration
        76. text-indent
        77. text-transform
        78. top
        79. unicode-bidi
        80. vertical-align
        81. visibility
        82. white-space
        83. width
        84. word-spacing
        85. z-index
    16. Tables
    17. Paged Media
    18. Dropped from CSS2.1
    19. Visual Styles
    20. Paged Media
    21. Aural Styles
  3. Index
  4. About the Author
  5. Copyright