You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When targeting an anchor, i.e. clicking a link that goes to a section of a page, I use an old padding trick on :target so the scrolling doesn’t go too high, and could possibly hide the target behind a header fixed to the top of the viewport.
When targeting an anchor, i.e. clicking a link that goes to a section of a page, I use an old padding trick on
:target
so the scrolling doesn’t go too high, and could possibly hide the target behind a header fixed to the top of the viewport.I should use
scroll-padding-top
instead.The text was updated successfully, but these errors were encountered: