[css-d] Personalize predefined colors
Hi all, I have looking for by Google and I dont get anything There are any way of create in my CSS a list of predefined colors, some like: rojo {color:#FF;} from more lated i can used it with: border-color: rojo; Yes, color red exists!! is only a example :) Regards __ 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/
Re: [css-d] Personalize predefined colors
Alberto Garcia Quesada wrote: Hi all, I have looking for by Google and I dont get anything There are any way of create in my CSS a list of predefined colors, some like: rojo {color:#FF;} from more lated i can used it with: border-color: rojo; Yes, color red exists!! is only a example :) Regards 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. In any case, the real CSS code read by the user would have to read #FF [or rgb(255,0,0)]. Regards, Barney __ 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/
Re: [css-d] Personalize predefined colors
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:#FF;} 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/
Re: [css-d] Personalize predefined colors
Right -- for an example of a programmatic approach, see our wiki page on the subject: http://css-discuss.incutio.com/?page=CssConstants Zoe thank you very much __ 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/