Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Keeping anchor point below sticky header
body:not(.elementor-editor-active) /* for not messsing up elementor editor */
*[id]:before {
content: "";
height: 150px; /* fixed header height*/
margin: -150px 0 0; /* negative fixed header height */
visibility: hidden;
pointer-events: none;
z-index: -1; /* This prevents any links being behind the offset block and un-clickable */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.