February 2, 2007

CSS and Color Variables

Just a quickie to note the BarelyFitz.com page detailing a method of using variables for color in a stylesheet.

This would be in place of adding the same color to multiple tags, ids and classes. Clever.

I'd thought in the past that the capability for this *type* of specification would be fantastic — specify colors once in the stylesheet (with their associated variables), and then use the variables throughout the rest of the stylesheet wherever you want them.

Again: clever.

Have your say ...

If this is your first comment, it will be held for moderation (but comments are appreciated). Otherwise, just be courteous, don't drop links unless highly pertinent — and no substituting keywords for your name. Posters must be 16 or older. We use Akismet, so if you don't see your non-spam comment posted, contact me.


Manage your subscriptions

Archives
© 2004-2012 DianeV Web Design Studio in Austin, Texas. All Rights Reserved.
37 queries. 0.169 seconds.