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

Julieta 60

@julietaxcc

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


It's my first time using the filter, I tried to get closer to the color but it cost me. Any comments or suggestions are highly appreciated.

Community feedback

Hassia Issah 50,650

@Hassiai

Posted

For the color of the image wrap the img in a figure tag and give the figure a background-color of soft violet. Give the img a width and height of 100%, mix-blend-mode: multiply: object-fit: cover and opacity: 0.8.

<figure><img></figure>

.figure{

background-color: hsl();
}
img{
width: 100%;
height: 100%;
object-fit: cover;
mix-blend-mode: multiply;
opacity: 0.8;
}

Hope am helpful.

Well done for completing this challenge. HAPPY CODING

0
Martina 150

@PastoreMartina

Posted

Congratulations on completing the challenge!! 🎉

You can use the <picture> HTML element to use different pictures with different screen sizes. More about it here.

For the purple color, you can create a new div as image container and set its background to the violet accent, then set this for the image:

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

You can read more about this property here.

I hope you find this helpful!

Above all, good job 💪🏻

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