Sticky position

Hi guys, I want to display 2 div elements with sticky position on top when scroll down. But When I scroll down they stack on each others. How can I solve this issue?
No description
1 Reply
ἔρως
ἔρως8mo ago
either give them different top values or put both in the same div, and then that div has position absolute however, i strongly suggest that you don't do that on a phone, those giant divs will take all the available screen space or it will have a ridiculously tiny space for scrolling if you REALLY must do this, make it collapsable somehow
Want results from more Discord servers?
Add your server