Design comparison
SolutionDesign
Solution retrospective
ALL Doneeeee
Community feedback
- @correlucasPosted about 2 years ago
๐พHello Hussain, Congratulations on completing this challenge!
I've just opened your live site and I can say that you did a great job putting everything together! There's some tips to improve your solution:
Instead of using this long code, you can made it simple:
.img-component::after { position: absolute; content: ''; height: 100%; width: 100%; left: 0; top: 0; background-color: hsla(277, 64%, 61% , 0.6); }
You can use this code shortcut to reach the same color of the challenge. All you need is to use
mix-blend-mode
to make the color blend between the image and the background-color of the container. See the steps below to apply to theimg
orpicture
selector:img { mix-blend-mode: multiply; Opacity
โ๏ธ I hope this helps you and happy coding!
1
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