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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.