This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " Watch " New topic
Author

'select' box interferring with my pulldown menu

Harsha Vardhan Madiraju
Greenhorn

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
    Eric
     
     
    subject: 'select' box interferring with my pulldown menu