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
<?php
        $color_a = "#FFFFFF";
        $color_b = "#000000";
        $color_c = "#CC0000";
?>
<STYLE>
BODY {BACKGROUND: <? echo $color_a; ?>; COLOR: <? echo $color_b; ?>;}
A:link {COLOR: <? echo $color_b; ?>; FONT-FAMILY: Arial; TEXT-DECORATION:
none;}
A:visited {COLOR: <? echo $color_b; ?>; FONT-FAMILY: Arial; TEXT-DECORATION:
none;}
A:active {COLOR: <? echo $color_b; ?>; FONT-FAMILY: Arial; TEXT-DECORATION:
none;}
A:hover {COLOR: <? echo $color_c; ?>; TEXT-DECORATION: none;}
.ul {COLOR: <? echo $color_b; ?>; FONT-FAMILY: Arial; TEXT-DECORATION:
underline;}
.text {COLOR: <? echo $color_b; ?>; FONT-SIZE: 18px; FONT-FAMILY: Arial;}
</STYLE>
## stop file style.css.php

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Fax: (504) 248-3866
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


-----Original Message-----
From: Scott Carr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 1:59 PM
To: PHP Windows
Subject: [PHP-WIN] CSS Question


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 to use in about 20 places, and it would be
benificial to use a constant.  

Thanks for any help.
-- 
Scott Carr
OpenOffice.org
Documentation Maintainer
http://documentation.openoffice.org/





-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to