File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes 'select' box interferring with my pulldown menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " Watch " New topic

'select' box interferring with my pulldown menu

Harsha Vardhan Madiraju

Joined: Dec 19, 2003
Posts: 24
I've coded a pulldown menu that becomes visible when cursor is over a certain link, but the 'select'/combo box which is below that link is overlapping on some part of my pull down menu.
How to hide that part of combo box/select box (not entire select box!) which is overlapping with my pull down menu??
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Welcome to the ranch,
This question has been asked many times at the Ranch and this is te solutions that we always say...
The select element is the top dog with layers for some strange browser war reason, it should act like the other elements, but it does not. But these are things that we do
  • Hide the select element by setting the = "hidden" when the menu is open.
  • Set the width of the box to a smaller amount and reset it when the menu is hidden: = "10px"
  • Move the select element to another part of the page so this will not happen.

  • Hope this helps you find a solution to your little problem
    I agree. Here's the link:
    subject: 'select' box interferring with my pulldown menu
    It's not a secret anymore!