'The scroll-margin-top property is sometimes not working [closed]
I have the problem that scroll-margin-top sometimes works, sometimes not.
Solution 1:[1]
My problem was that the elements to which I had assigned the scroll-margin-top were sometimes in a container with overflow: hidden. As soon as the element is at the top and thus the scroll-margin protrudes from this container, the scroll-margin is also cut off by the overflow: hidden.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | skalta |
