Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes HTML, CSS and JavaScript and the fly likes Menu Appears behind combo box in IE6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Menu Appears behind combo box in IE6.0" Watch "Menu Appears behind combo box in IE6.0" New topic

Menu Appears behind combo box in IE6.0

Bunty Paul

Joined: Jun 26, 2006
Posts: 28

I am having a web page with a top menu. When i click on the top menu it shows all the sub menu behind the combo box. I face this problem only on IE 6.0 but works fine in fire fox. I even tried using the z-index but even that doesn't work. Can anybody help me in this.

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
The problemis talked about a lot over the net. The select eleemt is a windowed element. Two fixes is o change your layout or use an iframe behind the menu.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63857

Note that this is an IE-only problem.

Another fix I've seen used is to hide all select elements when a floating element (menu, modal dialog, etc) is displayed, and reveal them again when it is dismissed.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Menu Appears behind combo box in IE6.0
It's not a secret anymore!