views:

48

answers:

1

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 "outside" the image...

So the image is shown fully, but it streches outside the div borders, but still shows anyway. Is this a problem ?

Should I use the DOM method instead, will it be better ?

Thanks

+2  A: 

have you set the overflow css property of your div ?

http://www.w3schools.com/Css/pr%5Fpos%5Foverflow.asp

Gregoire
You are absolutely right, no I haven't... thanks!
Camran