-1
I need to make sure that by hovering the mouse over the menu links, it is removed or changed to
transparent
the background of the link that is active (from the page that I am on).
When you hover over another link:
How to proceed?
.nav-item { padding:5px; }
.nav-item:hover > .nav-link{ background:#000; color:#FFF; }
.ativo > .nav-link { background:blue; color: #FFF; }
body {font-size:14px; font-family: Arial; }
a {color:#000;}
<li class="nav-item ativo">
<a href="#" class="nav-link">Início</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">Transparência</a>
<ul role="menu" class=" dropdown-menu">
<li class="menu-item">Ao passar o mouse aqui o azul do Início deve sumir
</li>
</ul>
</li>
You have the real code of it there, other than the demonstration?
– Francisco
I do, but it’s very complex, a lot of content. I put this piece as a basis for me to implement to the original.
– Alexandre Lopes
Basically the structure is the same.
– Alexandre Lopes