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

Anchors make the title to stay too high on page #3731

Open
ivanuria opened this issue Jul 26, 2024 · 0 comments
Open

Anchors make the title to stay too high on page #3731

ivanuria opened this issue Jul 26, 2024 · 0 comments
Labels
general Issue or pull request that is not specific to any particular part of the course material

Comments

@ivanuria
Copy link

ivanuria commented Jul 26, 2024

When clicked on an anchor or accessed to a anchored link like this one the title remains too high and barely with margin to the top. Though navigating downwards make the header become transparent, navigating upwards makes the title of the section disapear behind the header.

It is advisable to define a scroll margin on the elements with an id defined to make the element to stay a bit more than the headers's height (90px in this very case):

[id] {
scroll-margin-top: 90px;
}
@vejol vejol added the general Issue or pull request that is not specific to any particular part of the course material label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general Issue or pull request that is not specific to any particular part of the course material
Projects
None yet
Development

No branches or pull requests

2 participants