I'm currently working on a Bootstrap website and trying to make the navbar stick to the top. However, it seems like the class sticky-top
isn't working as expected.
Below is the code for the navbar:
<div class="row">
<div class="col-md-12">
<ul class="nav justify-content-center sticky-top">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
</ul>
</div>
</div>
If anyone has any insight on how to resolve this issue, I would greatly appreciate it!