Responsive Product Preview Card

Solution retrospective
That was my first time using media queries so that was a fun challenge to try to wrap my head around. I'm happy I was able to figure it out and learn a lot about responsiveness through mistakes I made along the way.
Next time I would start with hard pixel widths for the desktop/mobile card container. I was trying to make the card scale as I adjusted the screen sizer and it was giving me a ton of issues.
What specific areas of your project would you like help with?I'd love to know how to make this even more responsive. Is there a way to make the card and its contents grow and shrink as the screen size is adjusted while keeping everything proportional?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @DMK980
you can use min-width to set the smallest width you want it to be and a max-width which is the largest you want it to be then it will grow and shrink accordingly. This eliminates the need for breakpoints for the width.
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord