Navbar should always be at the top of the viewport

Please bear with me as my page needs a lot of work but for some reason the it keeps telling me that my nav bar should be at the top of the viewport. What is wrong?

Here’s a link to my codepen: https://codepen.io/Et_/pen/dyXydLN

Here is my code so far:

/navigation/

#navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
left: 0;
width: 100%;

}

1 Like

Hey @et_douyon. The reason why it is not working is because you added position: fixed; to the #navbar ul element. Try adding the position rules to #navbar and it will work. Thanks

1 Like

Yup! That was it! Thanks so much :pray:

1 Like