CSS Quick Syntax Reference

Book description

The CSS Quick Syntax Reference is a condensed syntax reference to the Cascading Style Sheets specification and style sheet language. It presents the essentials of CSS in a well-organized format that can be used as a handy reference.

You won't find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a CSS reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any CSS programmer or Web developer.

In the CSS Quick Syntax Reference, you will find:

  • A concise reference to CSS
  • Short, simple, and focused code examples for presentation semantics
  • A well laid out table of contents and a comprehensive index allowing easy review
  • Table of contents

    1. Cover
    2. Title
    3. Copyright
    4. Contents at a Glance
    5. Contents
    6. About the Author
    7. About the Technical Reviewer
    8. Introduction
    9. Chapter 1 : Using CSS
      1. Internal style sheet
      2. Inline style
      3. External style sheet
      4. Testing environment
      5. View source
      6. Comments
      7. Whitespace
    10. Chapter 2 : Grouping
      1. Ungrouped rules
      2. Grouped selectors
      3. Grouped declarations
      4. Grouped selectors and declarations
    11. Chapter 3 : Class and id selectors
      1. Class selector
        1. Class example
      2. Id selector
        1. Id example
      3. Class and id guidelines
    12. Chapter 4 : Attribute selectors
      1. Attribute selector
      2. Attribute value selector
      3. Language attribute selector
      4. Delimited value selector
      5. Value substring selector
      6. Value start selector
      7. Value end selector
    13. Chapter 5 : Pseudo selectors
      1. Pseudo-elements
        1. first-letter and first-line
        2. before and after
      2. Pseudo-classes
        1. Dynamic pseudo-classes
      3. Structural pseudo-classes
        1. first-child
        2. last-child
        3. only-child
        4. only-of-type
        5. first-of-type
        6. last-of-type
        7. nth-child
        8. nth-of-type
        9. nth-last-of-type
        10. nth-last-child
        11. empty
        12. root
      4. User interface pseudo-classes
        1. enabled and disabled
        2. checked
        3. valid and invalid
        4. required and optional
      5. Other pseudo-classes
        1. target
        2. lang
        3. not
    14. Chapter 6 : Relationship selectors
      1. HTML hierarchy
      2. Inheritance
      3. Adjacent selector
      4. Descendent selector
      5. Direct child selector
      6. General sibling selector
    15. Chapter 7 : Specificity
      1. Selector specificity
      2. Cascade
      3. Designer styles
      4. Specificity guidelines
    16. Chapter 8 : Colors
      1. Named notation
      2. Hexadecimal notation
      3. Short hexadecimal notation
      4. RGB notation
      5. RGBA notation
      6. HSL notation
      7. HSLA notation
    17. Chapter 9 : Units
      1. Absolute units
      2. Typographical units
      3. Relative units
      4. Font-relative units
      5. Viewport units
      6. Unit values
    18. Chapter 10 : CSS Properties
      1. Generic keywords
      2. Quirks mode
      3. Vendor prefixes
      4. Progressive enhancement
    19. Chapter 11 : Text
      1. color
      2. text-transform
      3. text-decoration
      4. text-indent
      5. text-align
      6. direction
      7. text-shadow
      8. box-shadow
    20. Chapter 12 : Spacing
      1. line-height
      2. word-spacing and letter-spacing
      3. white-space
    21. Chapter 13 : Font
      1. font-family
      2. font-size
      3. font-style
      4. font-variant
      5. font-weight
      6. font
      7. Custom fonts
    22. Chapter 14 : Background
      1. background-color
      2. background-image
      3. background-repeat
      4. background-attachment
      5. background-position
      6. background-size
      7. background-clip
      8. background-origin
      9. background
      10. Multiple backgrounds
    23. Chapter 15 : Gradients
      1. Linear gradients
      2. Radial gradients
      3. Repeating gradients
    24. Chapter 16 : Box model
      1. Inline and block
      2. Span and div
    25. Chapter 17 : Border
      1. border-style
      2. border-width
      3. border-color
      4. border
      5. border-radius
    26. Chapter 18 : Outline
      1. outline-style
      2. outline-width
      3. outline-color
      4. outline
      5. outline-offset
    27. Chapter 19 : Margin and padding
      1. Padding
      2. Margin
    28. Chapter 20 : Dimension
      1. width and height
      2. min-width and min-height
      3. max-width and max-height
      4. box-sizing
    29. Chapter 21 : Positioning
      1. position
        1. static
        2. relative
        3. absolute
        4. fixed
      2. overflow
      3. clip
      4. z-index
      5. vertical-align
      6. Centering
    30. Chapter 22 : Classification
      1. display
      2. visibility
      3. opacity
      4. float
      5. clear
      6. cursor
    31. Chapter 23 : List
      1. list-style-type
      2. list-style-image
      3. list-style-position
      4. list-style
      5. Counters
      6. Nesting counters
    32. Chapter 24 : Table
      1. border-spacing
      2. border-collapse
      3. caption-side
      4. empty-cells
      5. table-layout
    33. Chapter 25 : Media
      1. Media types
      2. Media queries
      3. Logical operators
      4. Testing media queries
      5. Responsive design guidelines
    34. Chapter 26 : Best practices
      1. Reusable code
      2. Global modifiers
      3. Style sheet structure
      4. Naming conventions
      5. Normalization
      6. Debugging
      7. Validation
      8. Single style sheet
      9. Minification
      10. Cross-browser testing
    35. Index

    Product information

    • Title: CSS Quick Syntax Reference
    • Author(s):
    • Release date: September 2014
    • Publisher(s): Apress
    • ISBN: 9781430264910