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-main

Michał 110

@xXkosziarzXx

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 Michał, congratulations for your solution!

I've checked your code and you did almost everything, you've missed only the component vertical alignment and the overlay effect on the image with the proper color.

To fix the alignment you need to add one more property inside the body:

body {
       align-items: center;
}

And for the overlay effect you need to add to the img:

img {
mix-blend-mode: multiply;
opacity: 0.7;
}

Note that for the body there's no need you set min-width: 1440px; you've to set instead max-width: 950px; to the <main> to indicate how much this container can grows.

Hope it helps and happy coding!

Marked as helpful

0

Michał 110

@xXkosziarzXx

Posted

@correlucas hi Lucas I would like to thank you for your help I checked all your hints and I have comments on them

first to the <body> there was what you wanted to add.

second, to mix-blend-mode I didn't know the options. it gave a very nice effect thanks you I learned something new but you wanted to add to the wrong class and it did not work because the color is bg and the color is on top so .img do not have opacity only .bg

the last tip works thanks again

1

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