I just finished my first web site, and background-images on some anchors (but not all) are missing in IE8 (I have not checked older versions of IE). Everything is fine in Chrome, Firefox, and Safari.
Check it out at jimkuipers dot com. Code excerpts are at the bottom of the post.
Above the blue-striped image should be four image-replaced anchors. The anchors themselves are there, and the cursor changes to a hand, and clicking leads to the right pages–it’s only the images that don’t show up.
The anchors at the bottom were written the same way, but they work fine in IE8. I have checked every thread that seemed relevant, and tried implementing the recommended fixes, but with no success. Thanks in advance for any assistance.
<body>
<div class="container">
<div class="logo">
<a href="index.html">JIM KUIPERS</a>
</div>
<ul class="big_nav">
<li id="nav_arch"><a href="architecture.html">ARCHITECTURE</a></li>
<li id="nav_design"><a href="design.html">DESIGN</a></li>
<li id="nav_photo"><a href="photography.html">PHOTOGRAPHY</a></li>
</ul>
<div id="blue_waves">
<img src="images/blue waves.gif" width="1000px" height="600px" alt="blue waves"/>
</div>
<ul class="small_nav">
<li id="nav_about"><a href="about.html">ABOUT</a></li>
<li id="nav_contact"><a href="contact.html">CONTACT</a></li>
</ul>
<p id="copyright">© 2010 JIM KUIPERS</p>
</div>
</body>
.logo a {
float: left;
width: 475px;
height: 50px;
background: url(images/logo.jpg) no-repeat;
margin: 0;
padding: 0;
text-indent: -9999px;
}
.logo a:hover {
background-position: 0 -50px;
}
...
.big_nav {
float: right;
width: 525px;
height: 25.5px;
background: url(images/home_menu.jpg) no-repeat;
margin-top: 24.5px;
padding: 0;
}
.big_nav li {
position: absolute;
}
.big_nav li a {
position: absolute;
top: 0;
margin: 0;
padding: 0;
display: block;
height: 25.5px;
background: url(images/home_menu.jpg) no-repeat;
text-indent: -9999px;
overflow: hidden;
font-size: 1%;
}
li#nav_arch a {
left: 0;
width: 210px;
background-position: 0 0;
}
li#nav_design a {
left: 210px;
width: 105px;
background-position: -210px 0;
}
li#nav_photo a {
left: 315px;
width: 210px;
background-position: -315px 0;
}
li#nav_arch a:hover {
background-position: 0 -25.5px;
}
li#nav_design a:hover {
background-position: -210px -25.5px;
}
li#nav_photo a:hover {
background-position: -315px -25.5px;
}