Skip to content

Instantly share code, notes, and snippets.

@webdevs-pro
Created January 24, 2020 01:33
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 webdevs-pro/0c8dcd18e92d9ed5209d7f66fdc24ddb to your computer and use it in GitHub Desktop.
Save webdevs-pro/0c8dcd18e92d9ed5209d7f66fdc24ddb to your computer and use it in GitHub Desktop.
offsetting an html anchor to adjust for fixed header
:target:before {
content: '';
display: block;
height: 100px;
margin-top: -100px;
visibility: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment