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 Challenge responsive solution - HTML & CSS

Raink31 340

@Raink31

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


Hey everyone.

This is my new solution for this challenge.

I took more time to do it, but it is now fully responsive and has a better html.

Tell me if you would change something !

Thanks for checking my work.

Community feedback

@Aleroms

Posted

Good job on the challenge! I recently submitted my own solution too and was wondering how you used the 'mixed-blend-mode' to get the overlay color?

1

Raink31 340

@Raink31

Posted

@Aleroms Hey, thanks !

To use the "mixed-blend-mode", I placed a background color behind the photo with this code :

` .img-box{

position: relative;

} `

` .img-box::before{

position: absolute;

content: "";

width: 100%;

height: 100%;

left: 0;

top: 0;

background-color: hsl(277, 64%, 61%);

} `

And I applied this code on the photo :

` .img-box img{

object-fit: cover;

mix-blend-mode: multiply;

opacity: 0.8;

} `

The multiply "mix-bland-mode" makes the violet background appear, and you can play with the opacity to bring out the black more or less :)

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