Skip to content

Instantly share code, notes, and snippets.

@rinaldo-rex
Last active May 27, 2021 11:10
Show Gist options
  • Save rinaldo-rex/85262ff84e808703e7ee1c7787045677 to your computer and use it in GitHub Desktop.
Save rinaldo-rex/85262ff84e808703e7ee1c7787045677 to your computer and use it in GitHub Desktop.
Frontend CSS tricks

Use the following to build functional usable inpage anchors

div-class-name {
  /* This is for a cleaner, and better positioning for the anchor tag */
  display: inline-block;
  padding-top: 100px;
  margin-top: -100px;
  height: 0;
  width: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment