DEV Community

Discussion on: Fixed navigations and sections - here is scroll-padding

Collapse
einlinuus profile image
EinLinuus Author

My idea would be to calculate the height of your header/navigation (with JS) and scroll to that position. If your header is 100px height, then scroll to 100px on the Y axis instead of 0. That's the only idea I have currently :/