Image not taking 100% width
I am trying to learn how to size images better.
They have always been a pain to me. So i started learning
Code:
The div is meant to take 50% if the page in width, and the img 100% of that.
Simple right?
Height of the div depends on height of image.
Image is
However...
They have always been a pain to me. So i started learning
object-fit.Code:
The div is meant to take 50% if the page in width, and the img 100% of that.
Simple right?
Height of the div depends on height of image.
Image is
display block as to not have the gap at the bottom inline elements do.However...

