I am trying to create a drop-down menu for my custom template using just CSS if possible.
So far I have created two menus separate of each other, the main menu and the one I want to "drop down".
Here is my CSS code:
#sub1-info li
{
display: none;
}
ul#main-menu li:hover div#sub1-info
{
display: block;
}
ul#main-menu:hover +div#sub1-info
{
display: block;
}
Sub1-info is the menu I want dropping down and is in the same div as the main menu.
When I look at this I can only see the main menu, the "sub1-info" menu does not appear when I hover over the main menu. I have done a pure HTML/CSS version of this (i.e. not using Joomla) using almost the exact same code and it worked out fine.
I have also tried making the "sub1-info" menu a child of the main menu, what happens is that everything gets rearranged and the Links in the sub1 menu don't work, even though I have linked the menu item to an article.
You should take a look at third party extensions on the JED (Jooomla Extension Directory) here :
http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/drop-a-tab-menus
There are many ready made dropdown menus you can install to you joomla website.
Or try this css :