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

Sticky masthead covers header titles #32

Open
WizardCell opened this issue Nov 23, 2024 · 0 comments
Open

Sticky masthead covers header titles #32

WizardCell opened this issue Nov 23, 2024 · 0 comments
Assignees

Comments

@WizardCell
Copy link

Hey Ben, long time no see!

When I press any of the titles inside the sidebar table of contents, the page scrolls past the title, or more realistically the masthead covers the header title.

The "fix" you already have in place doesn't work, which is this:

h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 5em; // This means it will skip the header

I found the real fix here.

Of course we can't just use the hardcoded 75px value, although it works nice for me. I'm trying to figure out how to use the masthead height instead, but I'm not sure how to do so. Please let me know if you figure it out :)

@benui-dev benui-dev self-assigned this Nov 24, 2024
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