Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Mobile-First Stats Preview Component Card

@aharmon413

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


This is my second Frontend Mentor challenge solution. I designed this using the mobile-first paradigm, with some very simple CSS Flexbox to position the elements on larger screens.

The source files for this project came with 2 images sized slightly differently for desktop and mobile. My solution includes both images in the HTML and changes the display property of the image in CSS to show the correct one based on resolution, but if I were to do this again I would probably use something like the srcset attribute instead (which I didn't know existed until after I finished!!)

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

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