Last active
April 1, 2021 21:48
-
-
Save askdesign/2acca57dc0b77b2c8fe101e1070a426a to your computer and use it in GitHub Desktop.
Anchor links take user too low on the linked page.
Solution: Offset html anchor to adjust for fixed header height.
https://github.com/daattali/beautiful-jekyll/issues/69 **Definition and Usage**
URLs with an # followed by an anchor name link to a ce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:target::before { | |
content: ''; | |
display: block; | |
height: 130px; | |
margin-top: -130px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment