Chapter 3. Digging Below The Surface

This chapter completes our look at the "mechanics" of CSS: the background you need to have to work with the technology. It covers six major topics:

  • Quick review of the three methods for assigning CSS properties to HTML documents

  • Use of shorthand properties to group values for a related set of properties in a single statement

  • Workings of the inheritance mechanism in style sheets

  • Structure of a style, including variations on the use of selectors for determining with great precision exactly what is affected by a style

  • Units and values that can appear in styles to express sizes, locations, and other properties, and how they are used

  • CSS comments, which can be used to place human-readable notes in your CSS code

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.