Joel Jancovic wrote: >I define the style before the body section : > ><style type="text/css"> ><!-- >body { color: blue } >//--> ></style> >... >And in the body section I define the text (for compatibility with Netscape >3) : > ><font color="gray">My text here</font> > >netscape 4,X displays the text in gray. and IE in blue.. Which navigator is >right ? I believe IE ignores FONT when the same property has been defined in a stylesheet, which is _optional_ UA behavior. To be safe, style FONT, e.g.: <style type="text/css"> <!-- body, font { color: blue } //--> </style> CSS declarations trump HTML declarations. If Navigator 4.x still displays the text in gray then Navigator is wrong. David PerrellReceived on Monday, 3 August 1998 12:24:20 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:59:03 GMT