Navigator 4 to use CSS at all, you have to go to the preferencesdialog and check the boxes for both style sheets and JavaScript. IfJavaScript is disabled, Navigator will not apply styles. Why? In theearly days of style sheets, there were a number of proposals forstyling. One of these was JavaScript Style Sheets ( JSSS), aninteresting hybrid of early CSS and JavaScript. It probablywon't surprise you to learn that JSSS was promoted by Netscape.Although JSSS was never adopted, Navigator 4's rendering engineuses it, and so CSS doesn't work without JavaScript.

Tuesday 31st of May 2016 02:06:04 AM

by Eric A. Meyer
ISBN 1-56592-622-6
First edition, published May 2000.
(See the
catalog page for this book.)

Search the text of Cascading Style Sheets: The Definitive Guide.

Table of Contents

Copyright Page
Chapter 1: HTML and CSS
Chapter 2: Selectors and Structure
Chapter 3: Units and Values
Chapter 4: Text Properties
Chapter 5: Fonts
Chapter 6: Colors and Backgrounds
Chapter 7: Boxes and Borders
Chapter 8: Visual Formatting
Chapter 9: Positioning
Chapter 10: CSS2: A Look Ahead
Chapter 11: CSS in Action
Appendix A: CSS Resources
Appendix B: HTML 2.0 Style Sheet
Appendix C: CSS1 Properties
Appendix D: CSS Support Chart
Library Navigation Links

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

12px , and for the BIG element,it's 36px . These may seem excessive, butthey're in keeping with the overall page design. Of course, ifyou don't want your BIG text to generate toomuch extra leading, just use these rules instead:

P {font-size: 12px; line-height: 1.5;}SMALL {font-size: 66%;}BIG {font-size: 200%; line-height: 1em;}


Figure 6-9

Figure 6-9. Different colors for different elements

Thanks to the inheritability of color, it's theoretically possible to set all of the ordinary text in a document to be a color such as red by declaring BODY {color: red;}. This should cause all text which is not otherwise styled (such as anchors, which have their own color styles) to be red. This should not affect elements such as horizontal rules ( 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.