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?
1 Reply
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