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
𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻 Author • Edited on

Thank you. I will update the article immediately :)