Design comparison
Solution retrospective
Hi community, any feedback to help me grow is welcome, thanks.
Community feedback
- @correlucasPosted about 2 years ago
πΎHello Emanuel, congratulations for your new solution!
Your image is get distorted and to fix that you need to make your image fully responsive add
display: block
andmax-width: 100%
andobject-fit: cover
to make the image auto-crop when resizing inside the column:img { display: block; object-fit: cover; max-width: 100%; }
To have your image purple with the same overlay effect, you need to use
mix-blend-mode
to make this 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: 75%;}
π I hope this helps you and happy coding!
1@emanuel-raPosted about 2 years ago@correlucas Thanks for your tip, i'll try to improve π±βπ
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