Well the title is kinda confusing, but I'll try to explain what I need.
I have this code:
<nav class="main-nav">
<ul class="dropdown-menu">
<li class="tab">
<a href="graphic-design.php" title="Diseño Grafico">Diseño Grafico</a>
</li><li class="tab">
<a href="other-services.php" title="Otros Servicios">Otros Servicios</a>
<div class="submenu"></div>
</li><li class="tab">
<a href="support.php" title="Soporte Tecnico">Soporte</a>
</li>
</ul>
</nav>
With it's corresponding CSS code (Example):
It works great, but what I want to do now is to make the elements with class tab to highlight when I'm over the submenu. I don't want to use JS cuz' I now how to do it, but I want to do it using CSS but I don't know how. Is there a way to do it?
Thank you.