Hey there!
I'm working with this HTML code:
<ul id="nav" class="nav-1">
<li><a href="#">Loans</a></li>
<li><a href="#">Bancassurance</a>
<ul class="nav-2">
<li><a href="#">darb</a></li>
<li><a href="#">elem</a></li>
<li><a href="#">ghad</a></li>
</ul>
</li>
</ul
I am currently using:
.nav-1 li:hover a {
background:#FF0000;
}
The background is turning red for all li elements in .nav-1 and .nav-2.
I want to limit the red background effect to only .nav-1, not the li and sub-menu.
Any assistance or guidance on this matter?
Thank you for your help