Created
April 17, 2018 13:14
-
-
Save CorinLUSI/eefc59f49c39130b086f7e9f80af4e0d to your computer and use it in GitHub Desktop.
How to offset anchor tag link using CSS
This file contains 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:90px; /* fixed header height*/ | |
margin:-90px 0 0; /* negative fixed header height */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment