Responsive Product Preview Card Component

Solution retrospective
It's responsive but only for the asked viewport sizes, not inbetween. I would love to hear some feedback regarding css. For some reason, i just don't get flexbox. I had to use grid to achieve desktop design because i could do grid-template-columns: 1fr 1fr. When using flexbox, the image would be smaller than the content div. Could i get an explanation why? I'd love to be comfortable with flexbox and not have to use grid for such simple designs.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Bernard's solution.
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