@visualdenniss
Posted
Hey there Sayani,
congrats on completing the challenge!
I'd suggest having height: 100%; for the img as with auto it seems to leave some space below when the page is resized to a bigger width. In general it is also good practice to have images display:block.
Best practice regarding responsive image sources is using <picture> tag. E.g.
<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>You can read more in detail here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
Hope you find this feedback helpful!
Marked as helpful
@sayanibiswas00
Posted
@visualdenniss
Hello, Dennis. Hope you're having a good day.
Thank you for the feedback and suggestion about the image height. I was wondering why it's leaving some space in the screenshot here.
~Sayani