Pure CSS Scroll-To Padding
1
Check out this sweet css trick. In your additional css for universal, or snippets for page only. Offset scrolling to any item anchor or otherwise.
html {
--top-spacing: 125px;
scroll-padding-top: var(--top-spacing);
}
Have fun
Create Your Free Wealthy Affiliate Account Today!
4-Steps to Success Class
One Profit Ready Website
Market Research & Analysis Tools
Millionaire Mentorship
Core “Business Start Up” Training
Recent Comments
4
Create Your Free Wealthy Affiliate Account Today!
4-Steps to Success Class
One Profit Ready Website
Market Research & Analysis Tools
Millionaire Mentorship
Core “Business Start Up” Training
Awesome!
Have you ever used it?
its working perfectly on html anchors with a sticky header and 125px offset
Thank you for letting me know
I did some thorough research this seems to be the best way out of the few that exist. found it on css-tricks.com