- You can use a combination of these selectors:
background-image: url(img_url);
background-color: red;
background-blend-mode: darken;
If you like, you can experiment with the filter
property too.
2
Looking to hire developers?
How can i put a color over my image on the right side
background-image: url(img_url);
background-color: red;
background-blend-mode: darken;
If you like, you can experiment with the filter
property too.
@Adarshshanbhag5
Posted
You can use 'background-blend-mode' CSS property to add colour to your image
On the project, good job on completing the challenge. Here are my observations:
padding: 10px 0
. This can make your code more readable.Otherwise, great job!
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