Re: css variables

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: Main PLUG discussion list
Subject: Re: css variables
On Wed, 2007-02-07 at 19:45 -0700, Judd Pickell wrote:
> I am not aware of anything in the CSS specification that actually
> allows that, generally for doing that kind of stuff you would pull the
> css in through javascript, or use the js DOM to mod the information on
> the fly.
>
> On 2/7/07, 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?

----
That's a bit drastic and much harder to find down the road (thinking
ahead to the point where someone other than me will be maintaining
this).

Thanks

Craig

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