Book HomeCascading Style Sheets: The Definitive GuideSearch this book Saturday 25th of June 2016 09:29:27 PM

Copyright © 2000 O'Reilly & Associates, Inc. All rights reserved.

Printed in the United States of America.

Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.

Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. The association between the image of a koala and the topic of HTML and XHTML is a trademark of O'Reilly & Associates, Inc.

While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained

Of course, since we're dealing in shades of gray, all three RGBnumbers are the same in each statement. If any one of them wasdifferent from the others, then a color would start to emerge. If,for example, rgb(50%,50%,50%) were modified to bergb(50%,50%,60%), the result would be a mediumgray with just a hint of blue.

The equivalents for the various rainbow primaries, plus a few others,are presented in Table 3-1.


Library Navigation Links

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

if the declaration text-transform: uppercase; had been used instead, as shown in Figure 5-30. This is obviously not an ideal solution, but it is permitted.

H1 {font-variant: small-caps;}
Figure 5-30

Figure 5-30. Legal, if not optimal, rendering of small caps


Of the browsers which even recognize font-variant: small-caps (Explorer 4 and 5, and Opera 3.5), onlybest declaration would be:

H1 {color: maroon;}

Simple, straightforward, and difficult to forget. It doesn'tget much better than that. Here are a few more examples:

H1 {color: gray;}H2 {color: silver;}H3 {color: black;}

Of course, you've probably seen (and maybe even used) color