Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'select' box interferring with my pulldown menu

 
Harsha Vardhan Madiraju
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic