Book HomeCascading Style Sheets: The Definitive GuideSearch this book Friday 19th of January 2018 12:52:08 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:

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:

6.1.1. Foreground Colors

The easiest way to set the foreground color of an element is with the property color.


This property accepts as a value any valid color, as discussed in Chapter 3, "Units and Values", such as #FFCC00 or

Library Navigation Links

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

7.7.1. Types of Lists

This part will probably seem very familiar to those of you who have been fiddling with lists in HTML. In order to change the type of counter or bullet used for a list's items, you would use the list-style-type.


an image will be a certain number of pixels high and wide.

However, a replaced element with an intrinsic height can cause a linebox to become taller than normal. This does notchange the value of line-height for anyelement in the line, including the image itself.Instead, the line box is simply made tall enough to accommodate thereplaced element, plus any box properties. Inother words, the entirety of the replaced element -- content,margins, borders, and padding -- is used to define thedefault value of normal is the same as setting a value of zero (0), as shown in Figure 4-46:

P.base {word-spacing: normal;}
P.norm {word-spacing: 0;}
Figure 4-46

Figure 4-46. Two ways to achieve ordinary word spacing

Therefore, if we supply a positive length value, then the space between words will increase, as demonstrated in Figure 4-47:

P {word-spacing: 0.2em;}HR ) or images. However, early versions of
Explorer did inherit colors onto HR elements,
while they didn't allow the colors to inherit onto form elements.
This is more of a problem with inheritance than it is with color, but
unfortunately the problem is still there. In fact, even today it's
possible to find browsers that have predefined colors for things like
tables, which prevent BODY colors from inheriting
into table cells:

BODY {color: red;}