DEV Community

Discussion on: How To Not Cut Off The Top Of Your Section When Using Anchor Tags

Collapse
 
fchaussin profile image
François CHAUSSIN

This solution is great, but do you know the scroll-margin-top property? It is working according to your nav-bar height when on position: sticky. And solve the problem in a more consistent way.
Cheers

Collapse
 
yuridevat profile image
Julia 👩🏻‍💻 GDE • Edited

Thank you. I will update the article immediately :)