Position sticky

Website: https://www.myndi.dev/blog/post-1 I want make what is highlighted in the image sticky, but I can't. I feel like my brain is fried, or I'm doing something wrong that I can't see. P.S.: You can play within the inspector and duplicate the <p> to make it longer.
No description
4 Replies
ceispy
ceispy•15mo ago
Is there a codepen for it?
Mannix
Mannix•15mo ago
you need to remove overflow-x: auto' from main and put
align-self: start;
position: sticky;
top: 0;
align-self: start;
position: sticky;
top: 0;
on the aside-group
Myndi
MyndiOP•15mo ago
Jesus, so it was the overflow on the parent... myndiFacepalm couldn't even remember it being there, thank you so love Mind if I give you credit on the repo?
Mannix
Mannix•15mo ago
sure I don't mind thanks. I was also stumped for a while with this, then i started turning off stuff and it clicked 😄
Want results from more Discord servers?
Add your server