Answers for "how to create a static navigation bar in all the website"

CSS
7

stick menu bar in css

.navigation {
   /* fixed keyword is fine too */
   position: sticky;
   top: 0;
   z-index: 100;
   /* z-index works pretty much like a layer:
   the higher the z-index value, the greater
   it will allow the navigation tag to stay on top
   of other tags */
}
Posted by: Guest on July-30-2020
0

how to fix the nav bar to the left of the page

.sidenav {
  height: 100%;
  width: 160px;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  overflow-x: hidden;
}
Posted by: Guest on July-18-2020

Code answers related to "how to create a static navigation bar in all the website"

Browse Popular Code Answers by Language