On Sun, 8 Jul 2007 08:04:21 +1000, Greg Hauptmann wrote:
> Hi,
>
> Is there a way in CSS to create custom variables for my colors, i.e. so I 
> just set my
> color in one place and use my custom variables everywhere else through the 
> CSS?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Only if you use server-side scripting to generate the CSS.
No way with CSS alone, methinks.

FWIW - I add the color hex codes and a description as comments near
the top of my style sheet. This makes it easy to find / replace values
using a text editor. (Assuming that's the reason for your question.)

Cordially,
David
--

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to