Design comparison
Solution retrospective
Hello😀 You can leave your precious suggestions in the comments.😊
Community feedback
- @correlucasPosted about 2 years ago
👾Hello @talha-007, congratulations for your new solution!
🎨 Here’s some tips to improve your component design:
The color overlay is not filling the entire photo, something you can do instead of using this long code:
.right .overlay-desk { mix-blend-mode: multiply; width: 28.8rem; height: 23.5rem; background-color: hsl(277, 64%, 61%); position: absolute; top: 26.4%; border-radius: 0rem 0.55rem 0.55rem 0rem; }
To make your hero image have the same look and the color purple overlay, you need to use
mix-blend-mode
using themultiply
one.The mix-blend-mode CSS property sets how an element's content should blend with the content of the element's parent and the element's background.Here’s how you can add this to your
img
selector:img { mix-blend-mode: multiply; opacity: 84%;}
Here's a good article explaining these effects with mix-blend-mode:
https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode
✌️ I hope this helps you and happy coding!
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