Design comparison
SolutionDesign
Solution retrospective
- Hi, guys.
- Any advice please feel free to write it down. 😺😺
- Good code for everyone.
Community feedback
- @FirerenzaPosted about 1 year ago
Another option is to use the linear gradient function.
This is what I did:
.imageContainer{ background: linear-gradient(0deg, hsl(277, 64%, 61%, 0.5) 1%, hsl(277, 64%, 61%, 0.5) 100%), url(images/image-header-desktop.jpg); }
Marked as helpful1 - @NathanRayMPosted about 1 year ago
Hello, In CSS You could try setting the background color to the container that the image is in. Then, add the mix-blend mode to your image in CSS and set it to multiply and adjust the opacity.
.image-container{ background-color: hsl(277, 64%, 61%); } img{ mix-blend-mode: multiply; opacity: 0.75; }
Marked as helpful1
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