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

P

@ChrisCablish

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


Hello, I was not able to nail down the correct shade of pink for the filter over the image of the laughing computer business women. I tried laying a colored div on top of the picture and setting the opacity lower. I also did the reverse, setting the image on top of the colored div and adjusting the opacity of the image. Neither resulted in a match to the solution provided. Any advice?

Community feedback

Hassia Issah 50,650

@Hassiai

Posted

For the color of the image , wrap the img in a section tag and give it a class for the styling. <section class="info-image"><img></section> . In the css give .info-image a background-color of soft violet and give the img a width of 100% and height of 100%, object-fit: cover, mix-blend-mode: multiply and opacity: 0.8.

.info-image{
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

Marked as helpful

0

P

@ChrisCablish

Posted

@Hassiai Thanks!

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