O'Reilly logo

Eric Meyer on CSS: Mastering the Language of Web Design by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Styling the Document

Because we don’t have a lot in the way of specific guidance, we’re mostly going to have to make things up as we go. It’s a good thing we have a lot of practice in that arena. We’ll start out by setting some basic background and color styles, fiddling with the margins on the various sections of the document, and seeing where the results lead us.

Separation Anxiety

We’re going for a purple-colored page as decided earlier, but it would be good to keep black text on a light background. That calls for giving the “wrappers” a lighter variant of the document’s background color.

First we need to remove the medium-gray borders that were used in Figure 10.1 to help us understand the page’s structure. To get a wine-colored background, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required