position:sticky; doesn't work

Well... it does. If i define the height for the parent element (.container), the sticky element works flawless. But the height is supposed to be defined based off the height of the child element in the middle. There's 3 of them and 2 are supposed to be sticky. Check my comment for .container


https://codepen.io/Hej-123/pen/bGZVMjx

(yes the code is very messy and i'm well aware of it🤡 )
1.png
CodePenJSNewbie
...
test
Was this page helpful?