3 ms·
I thought I am up to speed with modern CSS but I did know about scroll-behavior: smooth but did not know about scroll-margin-top at all. I use self written JS s
by redder23 3y ago
I thought I am up to speed with modern CSS but I did know about scroll-behavior: smooth but did not know about scroll-margin-top at all. I use self written JS solution to work around headings stick below my fixed navbar this that I can get rid of now. That is awesome.
I generally, even without navbars think the scroll to position should have the headings a bit more down towards the middle of the page not the exact top, never liked that behavior. Glad there is a thing for that now, makes so much sense.
- globular-toast 3y ago> but did not know about scroll-margin-top at all I used hidden links with `position: relative` and a negative offset to achieve this before. `scroll-margin-top` is a much better solution.