Bootstrap class: .navbar sticky-top

Do not have time to learn all the Bootstrap classes?

Try drag & drop Bootstrap builder

<nav class="navbar sticky-top navbar-dark bg-primary">
  <a class="navbar-brand" href="#">Sticky top</a>
</nav>

Preview

More in Bootstrap Navbar