For a front-end challenge, I need you to design a simple card that displays consistently in both mobile and desktop views.
I took a mobile-first approach because I've encountered issues where the card layout changes when viewed on desktop.
Check out my reference image here: https://i.sstatic.net/kpVpj.jpg
Here is the code snippet I used:
body {
background-color: hsl(212, 45%, 89%);
etc...
}
<body>
<div id="qr_card">
etc...
</body>
While the layout looks fine on mobile, I'm struggling to prevent the card from resizing in desktop view without setting a fixed width. Any suggestions?