Skip to content

Instantly share code, notes, and snippets.

@thebuilder
Last active August 29, 2015 13:56
Show Gist options
  • Save thebuilder/9115651 to your computer and use it in GitHub Desktop.
Save thebuilder/9115651 to your computer and use it in GitHub Desktop.
Anchor offset
/**
* Offset the anchor tag
*/
a.anchor{
display: block;
position: relative;
top: -20px;
visibility: hidden;
}
<a id="subpage" class="anchor"></a>
<div>Actual content</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment