rakeshr

fixed header anchor fix

Aug 29th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.24 KB | None | 0 0
  1. I used .anchor:target {padding-top: 90px;} so that it only added the padding when they used the anchor tag. This way there isn't always a bunch of padding if the page loads at the top. Only when it loads a that specific point lower on the page.
Add Comment
Please, Sign In to add comment