Images overflowing the boundaries of a DIV HTML

asked Apr 27, 2012 in General by SunFun (3,000 points)
I wanted to set up a user page for a new site, with a box containing a photo and a profile of the person. The problem is that if the text profile was too short, the image overflows the bottom boundary of the div, which had a visible border around it.
Does anyone know how to fix this?


1 Answer

0 like 0 dislike
answered Apr 27, 2012 by ZakWeb (3,880 points)
Try  to place <div style="clear:both"></div> just before the end of the DIV to clear the float.