flexbox

Solution retrospective
cant find a way to make the image violet
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Kemystra
Hey, congratz for solving the problem!
I just wanted to share how I made the image violet. But firstly, I used the
picture
tag instead of just the normalimg
tag. It helps to switch between images depending on a CSS media query (e.g: switch between mobile and desktop specific images based on width).picture
tag is pretty much a special div, and you put animg
tag inside. What I did was I set thepicture
background to violet. You can then use the CSS propertymix-blend-mode
. Basically it will blend the image with the background color. There are a lot of values that you can use withmix-blend-mode
, so try to experiment to see which one will achieve the closest result.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