Design comparison
SolutionDesign
Solution retrospective
i couldn't overlay the light purple color on the image i tried everything couldn't really know what's wrong with the code
Community feedback
- @madhukar-30Posted over 1 year ago
just give position: relative to overlay div and use after ::after pseudo element to place the color over image the and then use mix-blend-mode property code:
.overlay {
width: 500px; position: relative;
}
.overlay::after {
content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: hsl(277,64%,61%); mix-blend-mode: multiply;
}
Hope it helps 👍
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