Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Header Offset not working #119

Open
mdillgen opened this issue Sep 3, 2020 · 1 comment
Open

Fixed Header Offset not working #119

mdillgen opened this issue Sep 3, 2020 · 1 comment

Comments

@mdillgen
Copy link

mdillgen commented Sep 3, 2020

Great Plugin! Unfortunately the offset function for fixed headers isn’t working (anymore?):
https://codepen.io/cferdinandi/pen/eXpLqo

Tested in Chroma and Safari (latest)

@cadday
Copy link

cadday commented Apr 28, 2021

It has been quite a while but still want to share an answer I have found.
Adding "scroll-margin-top: 100px;" to .section class should solve this issue. It's from the plugin author's website: https://gomakethings.com/how-to-prevent-anchor-links-from-scrolling-behind-a-sticky-header-with-one-line-of-css/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants