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

Preview-card-for-website

@NIKHILKUSHWAHA9877

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 was not able to change color of image from black and white to purple .. please viewers also do help me for the same.

Community feedback

Andro87 1,450

@Andro87

Posted

Hello NIKHILKUSHWAHA9877!

Great job in completing this challenge!

To solve your issue you can:

-set a background-color: hsl(277, 64%, 61%) on the parent element ;

-use the mix-blend-mode: multiply property and an opacity of 0.5-0.7 on the child element;

In your case it should be something like this:

.img {
    display: flex;
    background-color:hsl(277, 64%, 61%);
}
.img  img {
        width: 100%;
        height: 100%;
        opacity: 0.7;
        mix-blend-mode: multiply;
}

Happy coding!!!

Marked as helpful

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