Hover state is not working in IE6

Hi,

Please have a look at this page, HTML code and CSS is given below and the images are attached. The menu is working fine in all browsers except IE6.

I used the background image on hover state.

Please help me how can I make everything work in IE6 too?

HTML code:
<div id=“wrapper”>
<div id=“top-bg”></div>
<div id=“middle-bg”>
<div id=“logo”></div>
<div id=“navigation”>
<ul>
<li><a href=“#”><span>Link 1</span></a></li>
<li><a href=“#”><span>Link 2</span></a></li>
<li><a href=“#”><span>Link 3</span></a></li>
<li><a href=“#”><span>Link 4</span></a></li>
<li><a href=“#”><span>Link 5</span></a></li>
</ul><br style=“clear: left” />
</div>
<div id=“main-img”></div>
<div id=“img-btn1”></div>
<div id=“img-btn2”></div>
</div>
<div id=“bottom-bg”></div>
</div>

CSS:
body {
background: #e1dfd8;
margin: 0;
padding: 0;
}

#wrapper {
margin: 12px auto;
padding: 0;
width: 859px;
}

#navigation{
margin: 0;
padding: 0;
}

#navigation ul{
margin: 0;
float: left;
padding: 0;
font: bold 15px Arial;
background: #c00000 url(…/images/a.gif) repeat-x;
width: 859px;
}

#navigation ul li{
display: inline;
}

#navigation ul li a{
float: left;
color: white;
font-weight: bold;
padding: 5px 30px 0px 25px;
text-decoration: none;
line-height: 30px;
}

#navigation ul li a:visited{
color: white;
}

#navigation ul li a:hover, #navigation ul li a#selected{
color: lightyellow;
background: url(…/images/b.gif)repeat-x;
height: 30px;
}

#navigation a span {
display:block;}

#navigation a:hover span {
background: url(…/images/pointer.gif) bottom no-repeat;
}

Thanks in advance.

Hi, IE will ignore the background if there isn’t a space between the ) and the next word

background: url(../images/b.gif)repeat-x;

Add a space b etween ) and repeat-x. It should look like…

background: url(../images/b.gif) repeat-x;

thanks a lot Ryan.

Who knew…!

ONly 10% of people still clinging on to IE6 but now MS are pulling support for it we can expect that figure to start to go down quite fast. Good riddance to the bane of my life.

You’re welcome.

It’s not just IE6. IE7/8 will also ignore it :slight_smile: