@miroslavdurin
Posted
Hello,
I would suggest using a custom hook which retrieves media dimensions of screen. I usually use useMediaQuery()
hook. You can copy a hook code on this LINK.
Then you can have two versions of div.bottom
and use which one you need, based on the screen size. I hope this helps...
Marked as helpful
@xuanhung1509
Posted
@miroslavdurin Thanks, definitely helpful! At first, I tried to handle this layout with purely CSS, but it still missed the box shadow. Your approach made things much more easier!