Make it so the text doesn't push the picture out of the div

Make it so the text doesn't push the picture out of the div
0

#1

I’m making some divs that’s 2 by 2 or said in another way 2 divs on one line and 2 divs below and i have some text and an image in each of them. I would like to make it so that the picture doesn’t get pushed out of the div and if there is to much text make it so the text gets either pushed instead of the image or have the texts overflow to be hidden


#2

You probably want to use overflow property on your corresponding divs.