.BACKGROUND_1{
background-color: #FF0000;
}
.FONT_1{
color: #FF0000;
}
I want to do something like this:
define-color: MyColor=#FF0000
.BACKGROUND_1{
background-color: MyColor;
}
.FONT_1{
color: MyColor;
}
Is it possible? Thanks in advance!
> Hi all, I'm wondering if there's a way to give a specific name to a color.
> An example, instead of this:
>
> define-color: MyColor=#FF0000
> .BACKGROUND_1{
> background-color: MyColor;
No. Not in CSS1 or 2. The only names that are valid for <color> are
transparent, one of the colour 16 names (aqua, black, blue, fuchsia, gray,
green, lime, maroon, navy, olive, purple, red, silver, teal, white, and
yellow), a specific color number, or one of the system colours.
Hans
"viza" <m...@work.not> schreef in bericht
news:D1ds8.5328$M71.1...@news6-win.server.ntlworld.com...
"Hans Gommers" <hans.g...@ksdnet.nl> wrote in message news:u8zzoIv3BHA.1732@tkmsftngp02...
Font color
.FONT_1{
color:expression(MyColor2);
}
Hans
Small point, no big deal, but it's helpful to many if you post in plain
text - perhaps a link to the page with a demo on it instead?
--
Cheers
PeterMcC
>issunbooshi <ur...@orbi.it> wrote in message eAhz9f63BHA.2260@tkmsftngp02...
> Hi all, I'm wondering if there's a way to give a specific name to a
> color.
In IE, you can use any of these named colors:
http://msdn.microsoft.com/workshop/author/dhtml/reference/colors/colors.asp
good luck!
-ivan.