Position Sticky different behavior between Browsers

I am currently trying to make a Modal which is in the middle of the screen. But if the screen gets smaller in the Y direction it should stick to the top with some margin. In firefox (V: 117.0) it works as expected but if i try to look at it on other browsers like chrome (V: 116.0.5845.188) (edge (V: 116.0.1938.76) it overflows somehow and i do not know why. Are there any other solutions to achieve this or am i doing something wrong. Here is the code on codepen: https://codepen.io/Gratschi/pen/VwqbPNy Thanks in advance!
0 Replies
No replies yetBe the first to reply to this messageJoin