Design comparison
Solution retrospective
I don't have access to the project in figma so my biggest difficulties are in setting the width, margins and paddings of the elements, even so I am happy with the result and feedbacks are always welcome!!!
Community feedback
- @AkoToSiJeromeEhPosted over 1 year ago
Hi! Great work out there! I just wanted to share my technique on how I achieve the color overlay effect of the image using the CSS properties mix-blend-mode: multiply or background-blend-mode: multiply. However, since you're using the image as the background, background-blend-mode: multiply is the one that best suits it to match the design reference. That's all! I hope this technique works for you and helps. Happy coding!
.card .img-container {
border-radius: 0px 7px 7px 0;
width: 50%;
background: url(images/image-header-desktop.jpg);
background-position: center;
background-blend-mode: multiply;
opacity: 0.8;you can adjust this
background-size: cover;
background-color: blueviolet;you can change this
}
Marked as helpful0@guilhermecampinaPosted over 1 year agoHi @AkoToSiJeromeEh, thanks for the feedback. I had a hard time finding the color the way I did (and I don't think I got it 100%) and will study the way you shared. Thanks again!
1
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