Stats Preview Card

Solution retrospective
I had a really hard time getting the purple color over the image. I ended up using CSS filter to do it. I just think the ways I saw online where you create a div, give it a background color and an opacity, then you edit the z-index just to get an image to appear purple, is a lot of work. Any advice or tips would be appreciated. Thank you in advance.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @dewslyse
You could also use one of the
blend-mode
properties in css to achieve sameMarked as helpful - @zillur-rgb
I would give a background color of purple and using the background blend mode of multiply maybe I would be able to make this image.
Marked as helpful - @Nick331102
This is the easiest way I have found for the overlay.....
try using an inset box shadow
box-shadow: inset 0 0 0 1000px rgba(109, 54, 199, 0.596);
you can adjust the color
Marked as helpful - @officionale
You could use the background-blend-mode property to get the purplish effect
Marked as helpful
Join 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