W3C home > Mailing lists > Public > www-style@w3.org > August 1998

Re: Style sheet and Netscape

From: David Perrell <davidp@earthlink.net>
Date: Mon, 3 Aug 1998 09:24:41 -0700
Message-ID: <000e01bdbefb$3871e920$15a8a8c0@dper>
To: <www-style@w3.org>, <www-html@w3.org>

Joel Jancovic wrote:

>I define the style before the body section :
><style type="text/css">
>body { color: blue }
>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 }

CSS declarations trump HTML declarations. If Navigator 4.x still displays
the text in gray then Navigator is wrong.

David Perrell
Received on Monday, 3 August 1998 12:24:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:48 UTC