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

loopstudios-landing-page-main

Rayidβ€’ 70

@Rayid-Ashraf

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


How to change color of that image???

Community feedback

Kelvinβ€’ 915

@Kl3va

Posted

You will have to use css filters to do that. Also, work on the link pointing to we’re you hosted your code cause it currently throws 404 error code.

0
Melwynβ€’ 250

@melwynt

Posted

Hi πŸ‘‹

Changing the color was definetely a challenge for me too.

To do this, your img tag needs to be in a div with the purple background color. Meaning that the layer behind your image needs to hold the purple color.

In the HTML, you would have:

<div class="stats-card__hero-img">
<img src="path/to/image" alt="">
</div>

And in your CSS file, you would:

  • apply the purple background color to the div.
  • and for the img, you need to use mix-blend-mode: multiply with 0.75 opacity.

For more details, checkout my code here on Github.

And for more information on CSS blend modes, I found this article very helpful: getflywheel.com/layout/css-blend-modes/

Happy Sunday and happy coding!

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