Don't want to learn Bootstrap classes? Go to Bootstrap builder for busy developers.

Bootstrap class: .navbar sticky-top

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

Preview