Barney Carroll wrote: > Alberto Garcia Quesada wrote: > >> There are any way of create in my CSS a list of predefined colors, some >> like: >> rojo {color:#FF0000;} >> >> from more lated i can used it with: >> >> border-color: rojo; >> > > Alberto, > > You cannot define terms in CSS. What you're asking for would be very > useful but is outside of the scope of pure CSS - you would need to use > an application (www.stylespread.com - very simple and powerful tool to > manage CSS) that makes these associations for you, or some kind of > clever javascript to parse your CSS code and translate all your colours > back into hex numbers. >
Right -- for an example of a programmatic approach, see our wiki page on the subject: http://css-discuss.incutio.com/?page=CssConstants Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/