Design comparison
Solution retrospective
Please let me know how we do the color overlay on the image.
Community feedback
- @AdamCodes42Posted over 3 years ago
You can use pseudo selector ::before ::after for overlay and it will always be relative to your image Happy Coding😉
1 - @naveenraj93Posted over 3 years ago
For Color Overlay, i have coded as 'set the required Background Color to the tag under which image is present, then for image set mix-blend-mode: screen and filter:contrast(100%)'
0@naveenraj93Posted over 3 years ago@alphacoma : Please refer below,
<div class="cardImage"> <img src="images\image-header-desktop.jpg"> </div>Here, I have set the Background color to .cardImage as violet. Then have set img style as mix-blend-mode: screen; filter: contrast(100%);
This will make the Bg-color of the div(parent) to be Blend with the image.
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