If i set up a main div with max-height and max-width , why the child div flows out off the main div. I want to put an image in a child div inside a parent div.
can anyone explain me the relationship between parent-child div relationship for width and height with some examples.
Thanks in advance.
here is the codepen https://codepen.io/prakhar-monga/full/REoYKv
i want the image to fit in its parent div.
i want to understand the height, width relationship of parent child div