Stats Preview Card Component using HTML, CSS, and Flexbox

Solution retrospective
I had problems with making the image fit. I solved it by using "object-fit: contain" for the mobile version and "object-fit: cover" for the desktop version. I made it work, but I am sure there is a more elegant solution.
Any feedback is welcome :)
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Christina'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