What is Nostr?
Roel Nieskens /
npub1l40…38mq
2024-01-25 16:10:20

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

Author Public Key
npub1l40uqpa5k9u62v7wlak9w7yj6lyzjvnsr4dnep2l87pxxuuzfa2qjs38mq