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

Stats preview card using Flexbox

@secretcrew2

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 8th challenge.

So far I dont encounter problem with this challenge aside that the image does not take the entire space of a container. But it seems the problem lies with setting the height to auto.

so for this case, I set the

  1. height : 100% ( 100% of the parent div)
  2. width : 100%
  3. object-fit : cover ( i did this to make the image responsive)
  4. flex-basis: 50% both from the image section and the bottom-section so that it shares an equal width.

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