Jonathan N. Little wrote:
[color=blue]
> When doing a final check on my stylesheets the CSS Validator flag lines
> like this one as an error:
> ADDRESS A { color: gold; }
>
> Error is:
> # Line: 31 Context : ADDRESS A
>
> Invalid number : colorgold is not a color value : gold[/color]
Correct. Check again; gold is not a valid color value.
[color=blue]
>
> Strangely if I change the style sheet to:
> ADDRESS A { color: #FFD700; }[/color]
Not strangely, #ffd700 is a valid color.
[color=blue]
>
> There is not error but gold==#FFD700, it is a valid color mnemonic, also
> all the 'color: gold' entries where flagged but not when in a border
> definition like:
> .boxed { border: thin solid gold; }[/color]
If that did not generate an error, you got unlucky in it not being
pointed out. Gold is NOT a valid color value.
[color=blue]
>
> nor with other colors like:
> H1 { color: white; }?[/color]
Of course it worked. White is one of the 16 valid color name/values.
[color=blue]
>
> I guess I can use #FFD700, but gold would be easier to recognize...
>[/color]
Perhaps a comment in your CSS file? You're stuck with #ffd700 since
gold is not valid.
--
Stan McCann "Uncle Pirate"
http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
'94 1500 Vulcan (now wrecked) :(
http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein