infoscigeek

Sticky header hiding menu anchor points

Jul 22nd, 2021
1,434
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* From Adrian Garner on Stack Overflow */
  2. /* https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors */
  3. :target::before {
  4.     content: "";
  5.     display: block;
  6.     height: 162px; /* Fixed header height for this page. */
  7.     /* margin: -100px 0 0; Negative fixed header height if needed. */
  8. }
RAW Paste Data