No. There is no variable support in CSS, and there never will be. CSS is like HTML, it's a descriptive structure, not prescriptive (think book versus printer). XSL *is* prescriptive, and would be ideal for your use, except the browser support (in all browsers) for XSL is entirely non-existent (only XSLT is supported, and poorly at that), so you can't actually use it. The best way to accomplish what you're looking to do is have multiple rules for each relevant style (they're additive) and group the "constant" portions at the top of the CSS. Example: Note how the colors are at the top, with the remaining details someplace later. This works, but it's not as clean as it could be. For the best results, using some server-side code to generate the CSS on the fly, filling in constants as needed is probably best. ==Joseph++ 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? > --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss