3 replies [Last post]
macamba
macamba's picture
Offline
Regular
Arnhem
Last seen: 12 years 29 weeks ago
Arnhem
Timezone: GMT+1
Joined: 2007-03-22
Posts: 45
Points: 0

Hi,

The menu the website I develop has some quirks in Internet Explorer 7 (IE7). One of them is one that happens only occasionally. You can see what I mean in the attached image, or life at http://nvfb.hermod.nl. It is when the browser looses focus, while a menu is open, and gets the focus back, the menu is not closed.

What do I need to do to solve this particular problem?

The Javascript code I use for the menu is:

AttachmentSize
quirky_ie7.JPG42 KB
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 31 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

I think this is probably

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

macamba
macamba's picture
Offline
Regular
Arnhem
Last seen: 12 years 29 weeks ago
Arnhem
Timezone: GMT+1
Joined: 2007-03-22
Posts: 45
Points: 0

Thanks for your reply. I

Thanks for your reply.

The website states

http://www.builtfromsource.com/2006/10/23/a-fix-for-suckerfish-dropdowns-in-ie-7/ wrote:

Luckily, the fix for this is pretty simple. Assuming your unordered list menu ID is “menu”, you just need to add the following code to your stylesheet:

#menu li:hover, #menu li.hover {
position: static;
}

My code looks like

#mainlevelmainnav li:hover ul ul,
#mainlevelmainnav li:hover ul ul ul,
#mainlevelmainnav li.sfhover ul ul,
#mainlevelmainnav li.sfhover ul ul ul{
	left: -999em;
}

Would that mean I add position: static; to this code?

#mainlevelmainnav li:hover ul ul,
#mainlevelmainnav li:hover ul ul ul,
#mainlevelmainnav li.sfhover ul ul,
#mainlevelmainnav li.sfhover ul ul ul{
	left: -999em;
        position: static;
}

Macamba

macamba
macamba's picture
Offline
Regular
Arnhem
Last seen: 12 years 29 weeks ago
Arnhem
Timezone: GMT+1
Joined: 2007-03-22
Posts: 45
Points: 0

No, this, an a variation,

No, this, an a variation, breaks my menu. So I need to find another way to add position: static; to my CSS.