When I set an image to the innerHTML of a DIV container, the width and height of the DIV is still not changed. The div has border:solid style and the border is like
border:solid
have you set the overflow css property of your div ?
http://www.w3schools.com/Css/pr_pos_overflow.asp