Home › Forums › CSS › Relationship between height and width of parent and child div. › Reply To: Relationship between height and width of parent and child div.
December 19, 2018 at 11:10 am
#280412
Paulie_D
Member
An image will always be it’s natural size unless told to be something else.
If you want it to fit it’s parent then max-width:100%
would so the trick.
Aspect ratios can be a little tricky but that’s another question.