W3C home > Mailing lists > Public > www-style@w3.org > October 2002

Re: Proposal: inheritance of styles -in the stylesheet itself-

From: David Woolley <david@djwhome.demon.co.uk>
Date: Sun, 13 Oct 2002 09:23:41 +0100 (BST)
Message-Id: <200210130823.g9D8Nfn00401@djwhome.demon.co.uk>
To: www-style@w3.org

> 	<H1 CLASS="headline text">Here's the headline</H1>
> 	<P CLASS="standout text">Here's a standout paragraph.</P>
> 	<P CLASS="detail text">Here's a detail text paragraph.</P>

There's a problem with backwards compatibility with broken implementations
here.  Authors are unlikely to do this whilst there are GUI browsers
in the field that don't understand multiiple classes.

I'd also suggest that this was a very good example of an appropriate use
of DIV:

      <DIV CLASS="text">
 	<H1 CLASS="headline">Here's the headline</H1>
 	<P CLASS="standout">Here's a standout paragraph.</P>
 	<P CLASS="detail">Here's a detail text paragraph.</P>
      </DIV>

And I would argue that this is better structure, even if there weren't
tbe broken browser issue.
Received on Sunday, 13 October 2002 05:37:00 GMT

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