i have a code like below:
<nav id="mainNav" class="">
<div id="navContainer">
<div id="active">
[ some list ]
</div><!-- #active -->
</div><!-- #navContainer -->
</nav><!-- #mainNav -->
i want to change the background color of #mainNav when user hover on #active, but i dont know what to do. i did this and no results:
#active:hover #mainNav{
background-color: #333;
}
any idea?