How to Create a Fixed Navbar with CSS

PHOTO EMBED

Tue Dec 13 2022 05:57:11 GMT+0000 (Coordinated Universal Time)

Saved by @tofufu #css

ul {
  overflow: hidden;
  background-color: #42cde1;
  position: fixed;
  top: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
ul li {
  list-style-type: none;
  display: inline-block;
}
ul li a {
  display: block;
  color: #eeeeee;
  text-align: center;
  padding: 15px 30px 15px 20px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  font-family: arial;
}
.navbar a:hover {
  color: #ffffff;
}
.container {
  padding: 18px;
  margin-top: 35px;
  height: 2000px;
}
content_copyCOPY

navbar

https://www.w3docs.com/snippets/css/how-to-create-a-fixed-navbar-with-css.html