I'm having a problem with position: sticky
. This is my html distribution:
.A {overflow:hidden;}
.C {height: 500px;}
.D {height: 100px; position: sticky;}
I found in blogs that position: sticky
doesn't work when the direct parent of the element has the overflow: hidden
property. But, in this case, there is more than one level between class "A" and "D" elements. I also try to force the overflow: visible
property to the class "C" element, but sticky still not working in "D".