Re: CSS Question
| From: | lallous | Date: | Fri, 16 Aug 2002 10:19:54 +0000 |
| Subject: | Re: CSS Question | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15296@lists.php.net to get a copy of this message | ||
Since you're also posting in PHP forums you can make use of such language!
;)
<?
$css_color = '#112233';
?>
<style>
.style1 { color:<?=$css_color?>; height:100px}
.style2 { color:<?=$css_color?>; height:100px}
</style>
etc...
Elias
"Scott Carr" <scarr@progbits.com> wrote in message
news:1029437929.3d5bf9e9f1b42@progbits.com...
> 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/