Jump to content

li:hover IE problem


EGONick

Recommended Posts

I've been using this technique for a while and I didn't realise that it doesn't work in IE7 or possibly any IE.

 

#navigation li .left {
width: 10px;
height: 36px;
float: left;
}

#navigation li:hover .left {
background: url('./images/template/navigation_active_left.png') no-repeat;
width: 10px;
height: 36px;
float: left;
}

#navigation li .bg {
float: left;
height: 21px;
padding: 15px 0 0 0;
}

#navigation li:hover .bg {
background: url('./images/template/navigation_active_background.png');
color: #6b6b6a;
}

#navigation .right {
float: left;
width: 10px;
height: 36px;
}

#navigation li:hover .right {
background: url('./images/template/navigation_active_right.png') no-repeat;
}

 

This is my script which works fine in all other browsers, it simply allows me to have links of any width but still allow hover changes.

I've checked for fixes for the IE problem and found a fix but it doesn't seem to work and isn't direct at this sort of problem.

 

Thanks, Nick.

Link to comment
https://forums.phpfreaks.com/topic/107538-lihover-ie-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.