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 component

Ehtisham Aliโ€ข 150

@Ehtish

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Ehtisham Ali, congratulations for your new solution!

Nice work you've done here, the solution is almost done. Something to fix is the vertical alignment for the column with the text content using align-items: center / justify-content: leftA good practice to have all the image inside the container scaling and respecting the size of the container, you need to add max-width: 100% and add alsoobject-fit: cover to make the image auto-crop when resizing inside the column:

img { display: block; object-fit: cover; max-width: 100%;}

Make the image have the correct purple tone with mix-blend-mode. See the steps below to apply to the img or picture selector:

img {
mix-blend-mode: multiply;
opacity: 75%;}

Here's a good article explaining these effects with mix-blend-mode: https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode

โœŒ๏ธ I hope this helps you and happy coding!

1

Ehtisham Aliโ€ข 150

@Ehtish

Posted

@correlucas Thank you for your feedback. I will definitely apply to your suggestions.

1
Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

@Ehtish I'm happy to hear that, keep it up

0

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