W3C home > Mailing lists > Public > www-style@w3.org > April 2000

Re: css entities

From: Karl Ove Hufthammer <huftis@bigfoot.com>
Date: Mon, 3 Apr 2000 10:59:28 +0200
Message-ID: <006a01bf9d4b$4b7aa4a0$d0369fc3@huftis>
To: "Joe Hewitt" <joe@joehewitt.com>, <www-style@w3.org>
----- 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 GMT

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