RE: Font definition

What about every other value? Wouldn't it be great to be able to declare "variables" at the top of a stylesheet and reference them where needed. Color schemes are the example that spring to mind.


-----Original Message-----
From: David Woolley [mailto:david@djwhome.demon.co.uk]
Sent: 29 May 2003 07:57
To: www-style@w3.org
Subject: Re: Font definition



> I only worry because many of my stylesheets have many repeated elements in 
> long stylesheets, that are basically just three or four different 
> collections of fonts (and often, properties) scattered through many disparte 
> elements.

The way that CSS handles this is to have one invocation of the font and
multiple selectors on the left hand side of the rule.   I.E. you assign
elements to properties, not so much properties to elements.

However, I would have reservations about a page that used more than two
font-faces, or otherwise used large numbers of different attribute
combinations.

Received on Thursday, 29 May 2003 07:40:28 UTC