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

Branching Out

There are many other ways to style a form like the one we worked with in this project. Here are a few suggestions:

  1. The h1 element was intentionally left unstyled in the print style sheet. Try giving it one set of styles that helps it blend in both screen and print media and then try styling it very differently for each medium. In print, for example, it could be centered and have a noticeable bottom margin with no border or be given its own top and bottom borders to add some visual pizzazz.

  2. Indicate the required fields by setting the labels in reverse text—that is, white text on a dark background. You could even ...

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