Hej, I want to enable (modify opacity) a div, when hovering over a certain object.
#css_menu > .menu > .current:hover{
background-color:#066;}
This works.
#css_menu:hover + .css_submenu {
background-color:#F63;
opacity: 1.0;
}
This works. However.
#css_menu > .menu > .current:hover + .css_submenu{
background-color:#F63;
opacity: 1.0;
}
This does not work and i wonder why.
The html in question looks like this:
<div class="css_menu" id="css_menu">
<ul class="menu">
<li id="item-122" class="current active"><a href="/index.php/de/" ><span>Galerie</span></a></li><li id="item-133"><a href="/index.php/de/menue-2" ><span>Menü</span></a></li></ul></div>
<div class="css_submenu" id="css_submenu">....</div>
The "menu" code is automatically generated from Joomla. Is there a CSS way to have the submenu only visible, when i hover over the current/active menu element?
Thanx for any insight.