Personal Portfolio Webpage - Build a Personal Portfolio Webpage

Tell us what’s happening:

hi guys, so i almost finished the test, but it keeps telling me that “Your #navbar element should always be at the top of the viewport.”
i don’t know what to do and i’ve been stuck for a few hours now.

Your code so far

<nav id="navbar">
  <a href="#home" >
    <p>HOME</p>
  </a>
  <a href="#about" >
    <p>ABOUT</p>
  </a>
  <a href="#photos">
    <p>PHOTOS</p>
  </a>
  <a href="#contact">
    
    <p>CONTACT</p>
  </a>
</nav>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Personal Portfolio Webpage - Build a Personal Portfolio Webpage

please post all your html and css, without we can’t help

this is not fixing the navbar to be always at the top of the viewport, you need top: 0 and the right value for position

1 Like

ok, it works with sticky but i don’t like it as much…
aniway thank you so much!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.