I need help with nested dropdown menu

Hi All,
Please view the following dropdown menu


I have a dropdown menu which has 3 levels of nested <UL> <li> of which only the 3rd level are actual links to webpages. I have coloured coded these for ease of explanation.

1.      Blue (Outer cat – Just title)
2.      Green (inner cats – Just title)
3.      Red (Links to web pages)

I want to achieve the following:
When you hover over the blue button you can see a list of all the green options and red options within them. At the moment the you have to however to see the red sub options. Furthermore, the last green options disappear as the mouse exits the red options.
There is no external Javascript just css and html.

I have been fumbling with this for days and really need someone’s advice and knowhow.

Kind regards

Abiel M de Groot Sanders
Abiel de GrootDeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
You have a very tricky design. Here is what is happening.

You hover over countries - you see Europe, Africa and Central America
As you move down to Europe four more sub menus appear (Spain, Germany, United Kingdom and Ireland)
This makes the drop down menu a lot longer.
To get to Africa you have to move "out" of Europe - which results in the Europe sub-menu disappearing and the menu suddenly getting shorter as a result leaving your mouse out in the open, naked and confused. This in turn results in your mouse no longer being "over" the Countries menu so the menu disappears

Not sure how you are going to solve this because the way you have it results in some ambiguous situations - when is your mouse moving to the next item and when is it exiting the menu? and more importantly when it does exit the menu (or sub menu) and that sub menu is hidden how do you know if the user wants to actually hover over Africa or hide the menu.

You might want to consider using clicks to open and close the submenus or go with the standard fly-out menus.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abiel de GrootDeveloperAuthor Commented:
Is it possible to not have the sub menus hidden but display all of them, thus forcing the main <Ul> menu to be the correct length from the offset?

many thanks in advance

Abiel de GrootDeveloperAuthor Commented:
What I have done is simply looped all the cats and sub cats within the same group of <ul> and added a class to the <li class = "xx"> so as the catch the titles and style them differently. many thanks for you help.

Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.