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 to mess around with the markup, we’ll get right to laying out the document itself. As is typical for our projects, we’ll work our way down through the document, establishing the overarching styles first and then drilling down to the details. Where better to start than with the document’s body?

Styling the Body

The text of the document indicates a very dynamic image, so we’ll use reddish tones to reinforce that idea. We don’t want to go into bright reds, though, because those can be very hard on the eyes when displayed on a computer monitor. We’ll settle on deep, rich reds and reddish tans for the design.

<head>
<title>Pretentious Web Studios</title>
<style type="text/css" media="all">
body {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