I'm using the background-position method of changing an image when I hover over it. This is working fine for me in FF, Chrome, and Safari, but not in IE8. The background image is a .png that contains alpha transparency. I've run my code through the W3C validator and it is valid, so I shouldn't be hitting compatibility mode.
Here's the relevant snippet of html code:
<div id="main-nav">
<div id="texas">
<a href="texas.html"><span>texas</span></a>
<h2>texas</h2>
</div>
<div id="washington">
<a href="washington.html"><span>washington</span></a>
<h2>washington</h2>
</div>
</div>
And the relevant css:
#main-nav {
width: 844px;
height: 400px;
margin: 40px auto;
position: relative;
}
#texas, #washington {
position: absolute;
height: 500px;
width: 196px;
}
#texas a {
background-image: url("pics/texas.png");
}
#washington a {
background-image: url("pics/washington.png");
}
#texas a, #washington a {
height: 400px;
width: 196px;
display: block;
}
#texas a:hover, #washington a:hover {
background-position: 196 0;
}
Help?