Roel Nieskens on Nostr: Is there a way to have to elements that live in different containers be sticky on top ...
Is there a way to have to elements that live in different containers be sticky on top of each other?
I tried to sketch it: the first striped element is inside a div with another element above it. When scrolling, it needs to stick to the top. Easy peasy.
But then the second striped element, that lives in another container, needs to stick to the bottom of the top one.
I might be missing something obvious, but how to do this?
#CSS
I tried to sketch it: the first striped element is inside a div with another element above it. When scrolling, it needs to stick to the top. Easy peasy.
But then the second striped element, that lives in another container, needs to stick to the bottom of the top one.
I might be missing something obvious, but how to do this?
#CSS