Submenu appears halfway down the page in IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ja
Advanced
Advanced
Posts: 10
Joined: Mon Jun 23, 2003 5:56 pm

Submenu appears halfway down the page in IE

Post by ja »

Hi

I've just noticed that the simple horizontal menu with drop-down submenus that's working fine in FireFox under Linux is presenting the submenus halfway down the page in IE6 under XP. I've looked through menu_data.js and searched this forum and can't see where the settings for that are .. or maybe it's a bug .. fairly unlikely, it's a really simple menu.

Any clues anyone?

J
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

We need to see the page. Without that we really can't figure out what's doing it.

Ruth
ja
Advanced
Advanced
Posts: 10
Joined: Mon Jun 23, 2003 5:56 pm

Back in a mo

Post by ja »

OK, I'll be out of action for a few days, but I'll be back with a link.

J
ja
Advanced
Advanced
Posts: 10
Joined: Mon Jun 23, 2003 5:56 pm

Link

Post by ja »

Gosh, can't believe it's taken me that long.

Anyway, here's the link with the problem http://www.thewordfactory.co.uk/

Cheers
J
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

I see this in your css:

th, td {
vertical-align: top;
text-align: left;
}


Try to manipulate these to see of they make a difference. The menu is essentially a <table> so any generic styleing of <td> tags or <table> tags will affect the menu. Try to assign those a class or temporarily remove them and see what happens. Thre's no margin or padding in the above style, but it's worth a shot.

This may also be affecting the menu:

div.mainVertical {
position: absolute;
left: 0;
top: 140px;
width: 100%;
}

Since the menu is in a DIV, it may be inheriting the top margin.

Viken K.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi Please see this page: http://milonic.com/tablemenu.php

the same principle applies to both DIVS and TABLES in that if you embed the whole lot inside a HTML object it may affect the sub menus positioning due to inheritance.
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Andy,

<sigh> I *knew* that, too! Shame on me for not noticing that detail. I didn't even notice that he had the entire script loaded in the DIV.

I was right about the inheritance though :>)

Viken K.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

I didn't even notice that he had the entire script loaded in the DIV.
It's something that causes us the most number of problems, I'm looking at a way of fixing it but nothing I do seems to work good enough.

I have a cunning plan though, watch this space :D
Post Reply