Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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.

#280412
Paulie_D
Moderator

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.