Re: css entities

----- Original Message -----
From: "Joe Hewitt" <joe@joehewitt.com>
To: <www-style@w3.org>
Sent: Monday, April 03, 2000 5:15 AM
Subject: css entities


> Wouldn't it be nice if there were a mechanism built into CSS where one
could
> use "entities", like in XML?
>
> This would be helpful when building large stylesheets that have
repetitive
> information.  For instance, if you used a certain color many times in
many
> different rule sets, it would be useful to give it a name, like
"mycolor",
> so you could just say "color: &mycolor;" instead of having to use the
> literal color value every timie..

You can use something like:

h1, p.special, table tr + td.important { color: maroon; background:
white; }

-- 
Regards,
Karl Ove Hufthammer

Received on Monday, 3 April 2000 05:02:43 UTC