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 solution Flex + SCSS

#sass/scss#bem
Igor 230

@MIU-cz

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


please help! how can i do transparency on image like at template design? my way:

  1. add opacity on div - 0.65;
  2. add opacity on img - 0.45; but it non like on template!!

Community feedback

imad 3,310

@imadbg01

Posted

Greetings Igor! Congratulations on completing this challenge! 👏👏👏

Have you considered using mix-blend-mode instead of opacity?

you can try something like this,

.card__picture img {
width: 100%;
height: 100%;
object-fit: cover;
/* opacity: 0.45; */
mix-blend-mode: multiply;
}

Overall, your attempt was really good. Keep up the great work!

Marked as helpful

0

Igor 230

@MIU-cz

Posted

@imadbg01 Thank you! I try it

1
Igor 230

@MIU-cz

Posted

@imadbg01 its working!!!

1
imad 3,310

@imadbg01

Posted

@MIU-cz You're welcome bro!

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