Please Help - Navbar issue

Getting this message when running the tests for the Personal Portfolio:

Navbar should be at the top of the viewport even after scrolling : expected -492 to be close to 0 +/- 15
AssertionError: Navbar should be at the top of the viewport even after scrolling : expected -492 to be close to 0 +/- 15

Here is my code so far: https://codepen.io/mmayora/pen/LYWNypK

Really stumped on this one and not having any luck finding an explanation or solution via Googling.

Hi @mayoramatthew !

Welcome to the forum!

You will need to target the actual nav element in your css styles.
Not a div instead the nav element.

Then it will pass.

But you should also, move your css over to the css section and get rid of the style tags.

That worked! Thanks so much!

Now I’ve just gotta readjust some of the spacing. So glad to have this issue fixed!

1 Like

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