i’m stuck here can’t do anything
question: The navbar should always be at the top of the viewport
It looks fine to me. I tried it on both Chrome and Opera and your navbar stays fixed to the top of the screen. BTW, you might be interested in this CSS property for your background - although, you’ll need a higher resolution image.
background-size: cover;
To pass the test you can move position: fixed
to the header. But you will have to move the section inside the header out of it and then move the nav inside the header.
<header id="header">
<nav id="nav-bar" class="topnav">
<ul>
<li><a href="#section1" class="nav-link">Home</a></li>
<li><a href="#section2" class="nav-link">Info</a></li>
<li><a href="#section3" class="nav-link">Submit</a></li>
</ul>
</nav>
</header>
Thanks It Worked, moved section to main and passed