Chapter 5. Cascading Style Sheets

Topics in This Chapter

  • Defining style sheet rules

  • Associating style rules with an HTML document

  • Determining which elements support style rules

  • Understanding the precedence rules of conflicting styles

  • Controlling font characteristics

  • Applying color and image characteristics

  • Formatting text with styles

  • Controlling the bounding box around HTML elements

  • Adding image and floating text properties

  • Improving lists through styles

  • Using size units and color properties

  • Adding multiple layers to a document

Cascading style sheets are a powerful and flexible way of specifying formatting information for Web pages. They let you define the font, size, background and foreground color, background image, margin, and other characteristics for ...

Get Core Web Programming, Second Edition 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.