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

Re: Style sheet and Netscape

From: Jan Roland Eriksson <d.tek.jre@ebox.tninet.se>
Date: Mon, 03 Aug 1998 22:23:19 GMT
To: Joel Jancovic <joj@altique.com>
Cc: www-style@w3.org
Message-ID: <35c8305e.22436131@pop.tninet.se>
On Mon, 03 Aug 1998 17:27:06 +0200, Joel Jancovic <joj@altique.com>
wrote:

> I define the style before the body section :

> <style type="text/css">
> <!--
> body	{ color: blue }
> //-->
> </style>

Ok, but not quite right...

> <style>
> <!--
> body	{ color: blue }
> //-->
> </style>

Same thing really...

===

First of all, you may want to get your syntax for CSS right.
This is not a case of including Javascript into your doc.
Try this instead...

  <style type="text/css">
    <!-- body { color: blue } -->
  </style>

Secondly, even if it's "allowed" for browsers to treat attributed markup
in their own way, I would say that the preffered action to take is to
treat attributed markup as "styling on the lowes possible level" so that
any style rule in a style-sheet is allowed to override markup and
attributes in HTML wherever there is a "clash" between them.

In your example, the properties set in the BODY rule shall be inherited
all the way into all parts of the document, and with a higher priority,
thus _overriding_ any FONT markup found in the doc.

So in effect, MSIE4 is doing the right thing here.

-- 
Jan Roland Eriksson <rex@css.nu>
Received on Monday, 3 August 1998 18:28:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:55 GMT