W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: IDs, Classes : could CSS usefully use a third (abstract) concept ?

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Sat, 12 Mar 2005 16:34:53 +0100
To: www-style@w3.org
Message-ID: <opsni6wfc4ofh7fl@crissov.heim4.tu-clausthal.de>

*Laurens Holst* <lholst@students.cs.uu.nl>:
> I really don't see the big use in defines.
> h1, #nav, .date {
>     background-color: #AAF;
>     color: white;
> }

Indeed, you don't. It's when the same value applies to different  
properties for different selectors that variables could be useful, e.g.  
'color', 'background-color' and 'border-color', or (perhaps in combination  
with something like 'calc()') 'margin', 'padding', 'border-width',  
'top'/'right'/'bottom'/'left', 'width' and 'height', or 'height',  
'font-size' and 'line-height' etc.

Anyhow, it's now too late to introduce them, they would do more harm than  
Received on Saturday, 12 March 2005 15:35:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC