Chapter Nine. CSS Basics

In Chapter 8, “XHTML by Example: A Hybrid Layout (Part I),” we began creating a hybrid, transitional, standards-compliant site. In Chapter 10, “CSS in Action: A Hybrid Layout (Part II),” 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 that is 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) ...

Get Designing With Web Standards 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.