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 solution using Flexbox

Macury 40

@Macury

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


Any ideas on how to make the main image-tint match?

Community feedback

@IamArshadAli

Posted

Hello there! 👋

Congratulations on completing your first challenge on Frontend Mentor. 🎉

As for your question, I suggest the following change:

  • use mix-blend-mode: multiply on .img to get the desired tint

I hope this resolves your question.

Good Luck with upcoming Challenges. 👍

Happy Coding! 🤓

Marked as helpful

1

Macury 40

@Macury

Posted

Perfect!! thanks a lot @IamArshadAli

1

@imparassharma

Posted

add image give it z-index 0....then create a new div same to the size of the image...and give it z-index 1 ...position it absolute so you can put it on the image div.....give background-color property in the new div which is on top of the image div and reduce its opacity by giving property opacity:0.5 ....it should work

Marked as helpful

1

Macury 40

@Macury

Posted

I still cant get the same tint @imparassharma

0

@imparassharma

Posted

@Macury I think you are reducing opacity of image but image opacity should remain...the overlay div's opacity should reduce....but no worries it looks good as they have not provided the tint color in style-guide ..

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