css variables

Craig White craigwhite at azapple.com
Wed Feb 7 21:27:38 MST 2007


This is ruby and I am actually trying to keep things contained because I
am duplicating the css files for each different Class and it would make
my life simpler if I could simply assign the colors at the top of each
css file.

Thanks

Craig

On Wed, 2007-02-07 at 16:46 -0800, keith smith wrote:
> you could make multiple CSS definitions and write class="<?php echo
> $variable ?>" in your html code.
> 
>  
> 
> Craig White <craig at tobyhouse.com> wrote:
>         I can't find anything in w3.org specifications on stylesheets
>         that
>         suggests that I can do this but is it possible to have a
>         'variable' that
>         I could substitute within a single stylesheet?
>         
>         What I am looking for is to define a color - say medblue =
>         #466AD2
>         
>         and then use &medblue; or whatever to refer to it in various
>         classes/id's
>         
>         Possible?
>         
>         -- 
>         Craig White 
>         
>         ---------------------------------------------------
>         PLUG-discuss mailing list -
>         PLUG-discuss at lists.plug.phoenix.az.us
>         To subscribe, unsubscribe, or to change you mail settings:
>         http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> 
> 
> 
> Keith Smith 
> A link from my website to yours
> Submit Your Metro Phoenix Website
> 
> 
> ______________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight
> and hotel bargains.
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



More information about the PLUG-discuss mailing list