View Full Version : Style sheet in Netscape 4.5

12-31-2002, 05:09 PM
<style type="text/css">
body{ font-family: sans-serif; font-size:12; color:#000000}
A:link {text-decoration:none; font-family:sans-serif;color:#FF2B2B}
A:visited {color: #FF804 ; text-decoration: none;}
A:hover {color: #fA0A050 ; text-decoration: underline} -->
I'm using this style sheet on my website - I know the "hover" is not supported by Netscape, but the page renders in a serif font. Can some one give me the correct syntax to make it render in sans-serif in NS as well as in IE?
It's not an outside style sheet - it's inside the < head > tag of my pages.
TIA for any help.

12-31-2002, 06:09 PM
You need to specify px, pt, em (or whatever you decide) in the measurement:

Otherwise, the styling attribute for that element is ignored in Netscape 4.
Also watch your colors... You should have six characters after the #.

12-31-2002, 06:18 PM
Originally posted by PauletteB
You should have six characters after the #.

Or 3.
is the same as
where r,g, b and are all in between 0 and f

01-01-2003, 02:34 PM
For more valid CSS:

<style type="text/css">
body {font:normal 12px sans-serif;color:#000000;background-color:#FFFFF8;}
A {text-decoration:none;font-family:sans-serif;color:#FF2B2B;background-color:#F8F8FF;}
A:visited {color:#FF8040;}
A:hover {color:#FA0A05;text-decoration:underline;}

NN4.x is very strict on how you write properties. Even whitespace in wrong place may fumble the whole sheet. NN4.x also doesn't support underscore (_) in name of classes/ids.

01-02-2003, 07:12 PM
Thanks all - I knew it was something really simple - just couldn't put my finger on it.
Thanks for pointing out the missing number in the color value.
Guess everything will look a whole lot better later today.
To all: Happy Coding in 2003!