Chapter 9. CSS Basics
In Chapter 8, we began creating a hybrid, transitional, standards-compliant site. In Chapter 10, we’ll finish the job with Cascading Style Sheets (CSS). But a few basics must be covered first. That’s this chapter’s job. In this chapter, we’ll move swiftly through the rudiments of CSS grammar, cover a few not-so-basic ideas, and end by describing a CSS design method different from the one used by most designers and taught in most books. Even if you’re familiar with CSS, you might want to stick around.
CSS Overview
The W3C rather crisply defines CSS as “a simple mechanism for adding style (for example, fonts, colors, spacing) to web documents” (www.w3.org/Style/CSS). A few details omitted from that summary are worth noting:
Get Designing With Web Standards, 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.