You can always build the entire CSS file with PHP and use standard PHP
varaibles where necessary
> I know this is not the specific list for this, but I figured there'd be a
couple
> CSS gurus here.
>
> Is there a way to create CONTSTANTS or variables in css?
>
> I have 2 colors that I need t
I can state quite comfortable that neither CSS Level 1 nor CSS Level 2
support constants, variables, or anything along those lines. They are
strict data files. There is some talk on the lists about adding such
support, but not much hope.
Looks like you're stuck typing :1,$s/x/green/g in Vim
If I understand correctly you could just make you style sheet a php file
(ie. style.css.php) then enter code like
## start file style.css.php
BODY {BACKGROUND: echo $color_a; ?>; COLOR: echo $color_b; ?>;}
A:link {COLOR: echo $color_b; ?>; FONT-FAMILY: Arial; TEXT-DECORATION:
none;}
A: