Skip to content

Add scroll margin to targeted elements to fix obscured anchors#24

Merged
anfragment merged 1 commit intomasterfrom
anfragment/fix-scroll-margin
Feb 21, 2026
Merged

Add scroll margin to targeted elements to fix obscured anchors#24
anfragment merged 1 commit intomasterfrom
anfragment/fix-scroll-margin

Conversation

@anfragment
Copy link
Member

The header height is set to a specific value using var(--header-height), so we can use it to set the scroll-margin-top value.

Fixes #22

@anfragment anfragment self-assigned this Feb 21, 2026
@anfragment anfragment merged commit 858225a into master Feb 21, 2026
4 checks passed
@anfragment anfragment deleted the anfragment/fix-scroll-margin branch February 21, 2026 12:55
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

Successfully merging this pull request may close these issues.

Add spacing at the top to the height of the pinned navigation?

1 participant