I'm working on a vertical menu and having difficulty making it work across most browsers. Right now, it works in Mozilla, but in IE (and Opera) I get a bizarre offset and a lagging effect, where it doesn't react well to mousing-over.
I can imagine that this is a positioning problem...when I remove position="relative"; from the submenus, it operates fine...but I want the main menu to be positioned flexibly on the page. Any advice would be appreciated.
Thanks!
David
IE relative positioning, submenu bug
-
- Beginner
- Posts: 8
- Joined: Fri May 13, 2005 3:11 pm
IE relative positioning, submenu bug
Last edited by safetybear on Fri May 13, 2005 8:14 pm, edited 1 time in total.
-
- Beginner
- Posts: 8
- Joined: Fri May 13, 2005 3:11 pm
Nevermind. I fixed it.
So, the two vertical nav bars were in a DIV, which had a border applied to it. For SOME reason (I don't know why), the 20px height of the border was affecting the submenu position on IE and Opera only. Mozilla and Mac worked great. Took out the border style and it works like a charm. Go figure.
David
David
Re: IE relative positioning, submenu bug
Just a little note:safetybear wrote:...when I remove position="relative"; from the submenus, it operates fine...
When you use relative positioning, you only specify position="relative"; in the main menu, not in the submenus. You normally won't need to set position in the submenus; they will take their position automatically from the position of the parent menu item.
Cheers,
Kevin