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
Request failed with status code 502
Not Found
Not Found
Not Found
Not Found

Submitted

Stats preview card component

yas 390

@yosrajalali

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


I'm not sure about creating the image overlay..

I also had a hard time make it responsive,any comment is greatly appreciated🙏

Community feedback

Fer 3,970

@fernandolapaz

Posted

Hi 👋🏻, regarding your comment:

  • You could use the mix-blend-mode property that specifies how an element's content should blend with its direct parent background, like this:
.img__container {
background-color: var(--Soft-violet-accent);
}

.img__container img {
mix-blend-mode: multiply;
opacity: 0.75;
}

I hope it’s useful,

Let me know if it worked : )

Regards,

Marked as helpful

1

yas 390

@yosrajalali

Posted

Hi..yesss it worked thank you so much@fernandolapaz

1
hitmorecode 6,230

@hitmorecode

Posted

Congratulations well done, looks good. You can adjust the break point for mobile to 1110px. There is no problem with the overlay, you could also done it with a before pseudo element.

Marked as helpful

1

yas 390

@yosrajalali

Posted

thanks a lot for putting time on this . the overlay that I made is completely different from the design. I'm looking for a way to make it exactly the same @hitmorecode

0
hitmorecode 6,230

@hitmorecode

Posted

@yosrajalali the one in the challenge is done with mix-blend-mode: multiply if you want to learn more about this check this link

W3Schools - Mix-blend-mode

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