Design comparison
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
- @HassiaiPosted almost 2 years ago
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 helpful0 - @Danny-06Posted almost 2 years ago
Your solution is not responsive, it only works for desktop view.
That's something you could try taking a look.
For the filter color you can achieve that by using
mix-blend-mode
andfilter
properties.Here is mine if you want to take a look how I did it.
https://www.frontendmentor.io/solutions/stats-preview-card-component-oQVd_D43Nt
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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