[thelist] Tip Time

James & Beth Aylard aylard at 2xtreme.net
Fri Nov 2 23:28:31 CST 2001


Marc,
> Shouldn't this be
> color: #000000; and
> border-color: #FF9900; respectively?
>
> Can't recall exact circumstances, but I think I've seen 
> certain instances 
> where omitting the # sign caused browsers to choke.

	You are correct. The hash or pound sign (#) must precede hex
color values according to the CSS 2 recommendation [1]. IE 6 in
standards-compliance mode, for instance, will ignore hex color values
that lack the hash sign [2].

James Aylard

1. http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color
2.
http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp?
frame=true#cssenhancements_topic7





More information about the thelist mailing list