Design comparison
SolutionDesign
Solution retrospective
Hey everyone! Is there a better way to get the right color on the picture? I can't use the "filter:hue-rotate();" because the original image is black and white, so I added color on top of it and reduced the opacity.
Community feedback
- @HassiaiPosted almost 2 years ago
Replace <div class="container"> with the main tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
For the color of the image, give .hero a background-color of soft violet and add mix-blend-mode: multiply and opacity of 0.8 to the img.
.hero{ background-color: hsl(); } img{ width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.8; }
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful0
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