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
> use "entities", like in XML?
> This would be helpful when building large stylesheets that have
> information.  For instance, if you used a certain color many times in
> different rule sets, it would be useful to give it a name, like
> 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; }

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:53 UTC