on-internet
← Community

How do I offset where my fixed nav bar takes me?

Stack Overflow ·

I have a fixed navigation bar on my website that stays at the top with links that take me to different sections further down the page. However, because my fixed nav bar has a height of 40px, the beginning 40px of every section is covered up. How would I offset where my links take me by 40px using either HTML or CSS? Thanks.

Comments

Sign in or sign up to comment and upvote.

No comments yet.