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

To make the process as smooth as possible, we’ll create the screen styles first and then switch over to create the print styles. This will enable us to arrive at a look we like and then create print styles that echo it as much as is feasible.

Label Styles

The simplest style to accomplish is to right-align and boldface the input labels, so let’s start there (see Figure 7.2).

<title>Register to Win!</title>
<style type="text/css" media="screen">
td.lbl {font-weight: bold; text-align: right;}
</style>
</head>
Figure 7.2. Styling the labels makes the form a little more professional.

Why Start with screen ...

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