-2
Good colleagues. I have a small problem that I have not been able to solve, the question is this: I intend to change the color of an element that is dropdown-item when it is active, that is when it is in the current page. I’ll leave some images and html code to help you understand.I went through some posts, but it didn’t work....
source code
<header>
....
<nav>
....
<div class="dropdown">
<a
href="/_pages/gallery.html" class="nav-link
font-weight-bolder dropdown-toggle nav-item
mr-3" role="button" id="dropdownmenu"
data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">Galeria</a>
<div class="dropdown-menu mt-2"
aria-labelledby="dropdownmenu">
<a href="/_pages/gallery-pictures.html" class="dropdown-item">Fotografias</a>
<a href="/_pages/gallery-videos.html" class="dropdown-item">Videos</a>
</div>
</div>
</nav>
</header>
Unfortunately it didn’t work had already done something similar, but it had not worked
– Ayrton Pereira