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

Re: FONT vs CSS

From: Chris Lilley <chris@w3.org>
Date: Tue, 08 Sep 1998 22:27:05 +0200
Message-ID: <35F59318.542D1AE9@w3.org>
To: "Smith, Brooke" <Brooke.Smith@Butterworths.com.au>
CC: "'Chris Wilson'" <cwilso@MICROSOFT.com>, "'www-style'" <www-style@w3.org>
Smith, Brooke wrote:

> <STYLE>
> P {color:blue}
> EM {color:green}
> </STYLE>
> <P>This is a paragraph <EM><FONT color="red">with emphasised
> text</FONT></EM>.</P>

> In this example the FONT has greater weight and so 'wins'.  [...] HOWEVER, I
> thought
> 
> FONT {text-decoration:none}
> 
> could be used to prevent FONT having any play at all.  

No, it would stop it blinking or being underlined.

What you want - assuming you want valid CSS2, with the minor issue of
actual implementation left aside for the moment ;-(  is

font { font-family: inherit; color: inherit }


--
Chris
Received on Thursday, 10 September 1998 02:12:46 GMT

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