This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: 'select' box interferring with my pulldown menu
     
    Similar Threads
    JPopupmenu not working w/ JComboBox metal L&F
    Combo over pull-down menu
    Menu Question
    Problem of Combo box overlapping the menus.
    Problem of Combo Boxes overlapping menus in html