Navbar at the top of viewport test failing

I can’t pass this one test even after making my navbar to be sticky at the top of the view port. What I’m I doing wrong? Here is my page: https://codepen.io/joesh/pen/OJVeJaM
Thank you

The error you are getting says

#header or one of its children should be at the top of the viewport”

I notice you have it set up as

<header>
  <div>
    <nav>

Maybe the test expects nav to be a direct child of header and not inside a div? That div isn’t doing anything anyway so you should be able to easily remove it and see if that makes a difference?

1 Like

Thanks @bbsmooth it worked! You people make this journey more fun :blush:

I’m glad that it was that easy. I was just guessing.

1 Like