@retr0web
Posted
Hi yagnik0!
In my solution I took a bit tricky approach, but in short share box needs to change its "parent" in terms of position.
So for desktop, one element has position relative (in my case it's a share icon), so when we position the share box, it's relative to that element. For mobile, disable the position of share icon, and give the card itself position relative, so that way on mobile you can place the share box at the bottom of the card.
It may be hard to understand at first, but you can check my solution here, using the dev tools it'll become much clear.
Hope that helps.
P.S.: the share box stays in absolute position in both cases
Marked as helpful