Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tfsojon/9e8b13b3e4ad8399dc3421293af14dec to your computer and use it in GitHub Desktop.
Save tfsojon/9e8b13b3e4ad8399dc3421293af14dec to your computer and use it in GitHub Desktop.
offsetting an html anchor to adjust for fixed header
[id]::before {
content: '';
display: block;
height: 75px;
margin-top: -75px;
visibility: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment