RE: [PHP-WIN] CSS Question

From: Date: Thu, 15 Aug 2002 19:10:40 +0000
Subject: RE: [PHP-WIN] CSS Question
Groups: php.windows 
Request: Send a blank email to php-windows+get-15279@lists.php.net to get a copy of this message
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 : rcollins@norta.com <mailto:rcollins@norta.com> -----Original Message----- From: Scott Carr [mailto:scarr@progbits.com] 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

« previous php.windows (#15279) next »