Others

How to Create Fixed Top Bar – Fixed Navigation Bar

HTML

<nav class="fixed-nav-bar">
  <!-- Fixed navigation bar content -->
</nav>

CSS

.fixed-nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 50px;
  background-color: #00a087;
}