Navbar should always be at top of viewport

I’ve trying to fill the requirement for a project for Responsive Web Design. The console says that the navabar should be at the top of the Viewport. But it’s already at the top and doesn’t move when I scroll. I’ve tried position: fixed in the navbar class, and I’m not sure what I should do here.

1 Like

your navbar has an height of 0 and doesn’t have a fixed position

You need to add rules to that one so it is at the top, not ul

Also, this may be of interest for you



On CSS panel in #navbar I did add:
position: fixed;
top: 0px;
left: 0px;

Thats works in my project.
I hope this can help you.

1 Like

Thanks very much for your help, that’s it fixed now! Appreciate it!

1 Like

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