Having some trouble with my navbar. Here is the code I'm using:
<nav id="strumenti" class="navbar navbar-expand-sm navbar-light bg-light sticky">
<a class="navbar-brand" href="#">
<img src="C:\Users\Fabry\Desktop\scuola\html\Immagini\UltrasAvellino\clan.ico" width="30" height="30" class="d-inline-block align-top" alt="">
Ultras Avellino
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav nav nav-pills" id="pills-tab" role=tablist>
<a class="nav-item nav-link active" href="#" data-toggle="tab" role="tab" aria-controls="home" aria-selected="true">Home <span class="sr-only">(current)</span></a>
<a class="nav-item nav-link" href="#" data-toggle="tab" role="tab" aria-controls="home" aria-selected="true">War</a>
<a class="nav-item nav-link" href="#" data-toggle="tab" role="tab" aria-controls="home" aria-selected="true">Regole</a>
<a class="nav-item nav-link" href="#" data-toggle="tab" role="tab" aria-controls="home" aria-selected="true">La nostra storia</a>
<a class="nav-item nav-link" href="#" data-toggle="tab" role="tab" aria-controls="home" aria-selected="true">Contattaci</a>
</div>
</div>
</nav>
My navbar is set to have the sticky class, so it should remain at the top. However, when I scroll down midway through the page, it disappears. I've tried adding position:fixed in the CSS, which does keep it at the top but it overlaps other elements. Can anyone assist me with this issue?