Design comparison
Community feedback
- @marciolourensPosted about 3 years ago
Hello. You can use the srcset Attribute property in HTML. <picture> <source media="(min-width:650px)" srcset="img_pink_flowers.jpg"> <source media="(min-width:465px)" srcset="img_white_flower.jpg"> <img src="img_orange_flowers.jpg" alt="Flowers" style="width:auto;"> </picture>
reference: https://www.w3schools.com/tags/att_source_srcset.asp
Marked as helpful1 - @ChamuMutezvaPosted about 3 years ago
Check this article on blend modes in regards to the overlay question. There is
mix-blend-mode
applied to the img element orbackground-blend-mode
for background images. exploring Blend modesMarked as helpful1 - @soumya495Posted about 3 years ago
Instead of using the img tag you could have used the background-image property of css and then use background-color and background-blend-mode to change the image color. Using the background-image property is also helpful when you want to switch between different images in different screen sizes. Good Work here !!
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