learn java
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 The Software Craftsman this week in the Agile 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: 15383
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 document.FormName.ElementName.style.visibility = "hidden" when the menu is open.
  • Set the width of the box to a smaller amount and reset it when the menu is hidden: document.FormName.ElementName.style.width = "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
    Have you tried LearnNowOnline? http://www.learnnowonline.com/
    subject: 'select' box interferring with my pulldown menu