Design comparison
Solution retrospective
What did I do wrong with the image? How can I make it look like the example?
Community feedback
- @PJIceskullPosted over 1 year ago
Hey Melina, you did a really good job building the preview card. For your question, my advice would be to use the background-blend-mode CSS property. You wouldn't need to have a div for the color as you can use the property for the imagen div. If you have used the blend modes in Photoshop then you should be familiar with them in CSS. Under the CSS for your image class, you can use something like
.imagen { background-blend-mode: multiply; }
I recommend experimenting with blend mode in developer mode. If you edit the opacity of the background color then I would recommend using RGBA values like
.imagen { background-color: hsl(277deg 64% 61% / 75%); }
or
background-color: rgb(170 92 219 / 75%);
1 - Account deleted
There are a couple ways to do that. The easiest, I think, is to add a background color and opacity for the image.
0 - @MostafaSamerPosted almost 3 years ago
I had the same issue, didn't know which color to put on it?
0
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