1. The navbar should always be at the top of the viewport

Hello everyone! I’ve been trying anyway and I can’t pass the test that says “1. The navbar should always be at the top of the viewport”.
this is my code, please if someone could guide me on what to modify!!!

Hi there! So you should use the #nav-bar id to create a selector in your CSS, then use position: fixed; on it.

#nav-bar {
  position: fixed;
}

That’ll pass the test, but you’ll likely have to fix how it looks.

1 Like

Thanks you!! I did it!

1 Like