Book HomeCascading Style Sheets: The Definitive GuideSearch this book Tuesday 07th of July 2015 08:44:10 AM

0.3. How to Contact Us

We have tested and verified the information in this book to the best of our ability, but you may find that features have changed (or even that we have made mistakes!). Please let us know about any errors you find, as well as your suggestions for future editions, by writing to:

Figure 11-4

Figure 11-4. The greening of the navigational bar

No doubt you already know how this will work. We create anotherdivision, this one classed as main and enclosingeverything in the main part of the page that isn't thenavigation bar. Then we declare:

.main {margin-left: 1.5em;}

It seems like a reasonable amount of space, so we go with it. Wecheck the result in Figure 11-5, which is based

O'Reilly & Associates, Inc.

1005 Gravenstein Highway North

Sebastopol, CA 95472

(800) 998-9938 (in the U.S. or Canada)

(707) 829-0515 (international/local)

(707) 829-0104 (fax)

You can also send us messages electronically. To be put on the mailing list or request a catalog, send email to:

To ask technical questions or comment on the book, send email to:

We have a web site for the book, where we'll list examples, errata, and any plans for future editions. You can access this page at:

For more information about this book and others, see the O'Reilly web site:

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

exactly as you specified. Basically, there isn't an easy way to circumvent this problem, although two possible approaches are detailed in Chapter 11, "CSS in Action".

Figure 7-27

Figure 7-27. Overlapping text in Explorer

It gets worse, unfortunately. If you apply margins to inline elements, as was discussed previously, you'll get results from Navigator 4.x like those shown in Figure 7-28.

Figure 7-28

Figure 7-28. Margins, inline elements, and Navigator 4.x

subsequent CSS, and either will have the result depicted in
Figure 6-3:

<BODY TEXT="black" LINK="#808080" ALINK="silver" VLINK="#333333">BODY {color: black;}     /* replacement CSS */A:link {color: #808080;}A:active {color: silver;}A:visited {color: #333333;}
Figure 6-3

Figure 6-3. Replacing BODY attributes with CSS

While this may seem like a lot of extra typing, consider that usingthe old method of BODY attributes, you could only oblique face by computing a slanted version of the upright font. In fact, this is what most often happens in a digital world, where it's fairly easy to slant a font using a simple computation.

Furthermore, you may find that in some operating systems, a given font that has been declared to be italic may switch from being italic to oblique depending on the actual size of the font. The display of Times on a Macintosh, for example, is as shown in Figure 5-27, and the only difference there is a single point in size.



[ <length> | <percentage> ]{1,4}