M
Miquel Escarrà
I want to adjust an image to a div section in my page.
In body section I wrote:
<body onload="adjustImage()"
<div id="myimage">
<img src="animage" id "image1">
</div>
adjustImage function reads "myimage" and adjusts image1 inside.
Within Internet Explorer browser, I can't get the div dimensions, I get the
"image1" dimensions instead:
divImage = document.getElementById("myimage")
nWidth = divImage.clientWidth
it returns image1.clientWidth. When I draw the div section without image1,
correct dimensions are returned.
Does someone knows a solution for this?
Miquel
In body section I wrote:
<body onload="adjustImage()"
<div id="myimage">
<img src="animage" id "image1">
</div>
adjustImage function reads "myimage" and adjusts image1 inside.
Within Internet Explorer browser, I can't get the div dimensions, I get the
"image1" dimensions instead:
divImage = document.getElementById("myimage")
nWidth = divImage.clientWidth
it returns image1.clientWidth. When I draw the div section without image1,
correct dimensions are returned.
Does someone knows a solution for this?
Miquel