Design comparison
Solution retrospective
So I have a problem. The overlay color of the image is way lighter than it should be. What did i do wrong? Also, any more feedbacks appreciated.
Community feedback
- @catherineisonlinePosted almost 2 years ago
Hey, for the image to match the color, I did something like this, I hope that helps, size might not fit your solution but you can adapt it depending on your own code:
<div class="image-container"> img class="main-image" src="images/image-header-mobile.jpg" alt=""> </div> .image-container { display: inherit; position: relative; width: 100%; border-radius: 0 10px 10px 0; background-color: hsl(277, 64%, 61%); } .main-image { width: 100%; height: 100%; position: relative; background-size: cover; border-radius: 0 10px 10px 0; mix-blend-mode: multiply; opacity: 0.75; }
IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL 🤩
Marked as helpful1 - @HassiaiPosted almost 2 years ago
In the tinted-image, remove the linear gradient value, only specify the background image, background-color and background-blend-mode: .tinted-image{ background-color: hsl(), background-image: url(); and its properties, background-blend-mode: multiply} , this should help you with the overlay hope am helpful . HAPPY CODING
Marked as helpful1@tony1cPosted almost 2 years ago@Hassiai It helped a ton. Only thing is that I still cant get the same color but atleast it's way darker this way. Already made the changes. Thanks a lot!
0
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