css variables

Mike Garfias mike at garfias.org
Wed Feb 7 21:42:59 MST 2007


Craig -

Why not use template for your css?

	medblue = #<% medblue %>

Then when you call the template funtion just make sure the medblue  
var in stuff into it is set to "466AD2".

See: http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/ for more info  
(i'm pretty sure you know how to use template, just putting it in  
here so others can take a look)

Mike

On Feb 7, 2007, at 5:27 PM, Craig White 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 <craig at tobyhouse.com>
>
> ---------------------------------------------------
> 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