Not sure how to keep navbar at top of the viewport

Tell us what’s happening:
I’m struggling to keep the navbar at the top of the viewport I followed someone else code for the navbar yet it still doesn’t work.

Your code so far
https://codepen.io/your-work/

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36.

Challenge: Build a Product Landing Page

Link to the challenge:

1 Like

You need to provide a link to the pen you’re referencing. Not a generic link that leads to our pens.

not able to see your code. But you can try this or similar in css

nav { position:fixed; top: 0; }

1 Like

It worked
Thank you

Thanks,

1 Like