Position: sticky doesn\'t seem to work for me when I apply it to a child of a div. How to solve?
HTML:
Lorem Ipsum
Well it is actually working .But the div with class div-sticky-class is inside another div (with class this-parent-div-is-necessary ) that moves. Well if you want it to work you can give the outer div the same class e.g
div-sticky-class
this-parent-div-is-necessary
Lorem Ipsum Test Lorem Ipsum