Position sticky on UL element
Hello friends I tried to follow Kevin's short video (https://www.youtube.com/shorts/39rbYbVhb0Y?feature=share) about position sticky in my case it is not working: here is my html
I have tried that in all possible elements but only the first div with image as child element is working.
Kevin Powell
YouTube
When position sticky doesn't stick
Sometimes position sticky doesn't stick, so let's see why it doesn't and how we can fix it!
1 Reply
Ok I set top property ot some percentage and it worked, but I wanted display flex take care of the gap instead of assigning top or bottom property to the element but it is not working that way.