Re: css variables

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Garfias
Date:  
To: Main PLUG discussion list
Subject: Re: css variables
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 <>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss