Reputation: 7906
Hi i have code like.
div.secondHeader
{
position: relative;
z-index:0;
width: 988px;
height: 90px;
background-color: grey;
/*background-image : url('images/logo_bg.gif'); */
}
the background color does not show up in IE 7 . While it works in IE8 . any problem with the code
Upvotes: 1
Views: 703
Reputation: 1543
The best way is to overcome this problem is to use hex code for the colors.
Upvotes: 1
Reputation: 59111
As pinusnegra commented, try "gray"
http://www.nutt.net/2005/10/14/grey-vs-gray-it-matters-to-internet-explorer/
If you're in a situation like this in the future, you could double-check the Web Colors table. It seems grey
isn't in the HTML 4.01 specification, but gray
is.
Upvotes: 4
Reputation: 17834
Better yet, use hex color! #BBB, #CCC, #DDD, etc. When you use a shortcut like "gray", you are at the mercy of what the browser thinks "gray" should look like.
Upvotes: 2