Solved

Select Box Form Element Bug in Navigation Div Menu

Posted on 2011-03-14
4
199 Views
Last Modified: 2012-06-21
I'm using a div menu (MegaMenu) that when you hover over the anchor tag CSS tells the underlying div to change its left attribute to 0px thus showing the menu. (Its -9999px by default which pushes it off page)

I wanted to include a drop down select box within the menu for a search system we've implemented. The form/select boxes work fine in all browsers except IE. In IE when you click on the select drop down box and begin to scroll down the list the div assumes you're no longer hovering over it, but rather the select box. The whole menu then disappears.

I need the form drop down box to behave like its part of that menu in IE7-8 so the menu doesn't disappear before something is selected.

0
Comment
Question by:GalaxiePete
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:Mark Brady
Comment Utility
Can you post your code? Is the selectbox totally inside the menu div?
0
 

Author Comment

by:GalaxiePete
Comment Utility
http://fullertontool.com/fullaccess/series/search

I've pulled the CSS and its available right in the source for that page. If you highlight over End Mills on the top bar you'll see the select pulldowns I'm talking about.
0
 
LVL 20

Accepted Solution

by:
Mark Brady earned 500 total points
Comment Utility
Well that answered my question. Weird huh? If you ujse the keyboard by tabbing to the select boxes you can change them with arrow keys and the menu dropdown stays on screen. Only if you click on the select boxes everything dissapears apart from the dropdown options. I don't see anything wrong in your code but let's see if someone else can spot any errors. Quick question. Why do you have the menu titles as links?
0
 

Author Comment

by:GalaxiePete
Comment Utility
Yeah, I was a bit confused myself. :)

They were left as links in the event they wanted them linking to a "parent page". I could take them out now as we are no longer going in that direction. Good call.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now