Skip to content

Instantly share code, notes, and snippets.

@CorinLUSI
Created April 17, 2018 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CorinLUSI/eefc59f49c39130b086f7e9f80af4e0d to your computer and use it in GitHub Desktop.
Save CorinLUSI/eefc59f49c39130b086f7e9f80af4e0d to your computer and use it in GitHub Desktop.
How to offset anchor tag link using CSS
: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