Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Offset anchors with fragment IDs #10

Closed
tripu opened this issue Mar 18, 2016 · 1 comment
Closed

Offset anchors with fragment IDs #10

tripu opened this issue Mar 18, 2016 · 1 comment
Assignees
Labels

Comments

@tripu
Copy link
Member

tripu commented Mar 18, 2016

When scrolling to fragment IDs, those move right under the header overlay and aren't visible.

Apply the CSS trick

margin-top:  - var(--header-height);
padding-top: calc( var(--header-height) + var(--desired-padding) );

to offset the header height.

@tripu tripu added the bug label Mar 18, 2016
@tripu tripu self-assigned this Apr 6, 2016
@tripu tripu mentioned this issue Apr 6, 2016
@tripu
Copy link
Member Author

tripu commented Apr 6, 2016

Fixed in #28.

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

No branches or pull requests

1 participant