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 ...

First-time comments will be held for moderation (but comments are appreciated). Otherwise, just be courteous. If your name is a bunch of keywords, your comment will be deleted. Don't post links unless highly pertinent. Posters must be 16 or older.

Manage your subscriptions

© 2004-2018 DianeV Web Design Studio. All Rights Reserved.
27 queries. 0.213 seconds.