I am defining a blank img in html as a placeholder using
Code: Select all
<img src="" id="C1">Code: Select all
document.getElementById("C1").src="the image"
document.getElementById("C1").style.left= "the image left from database" + "px"image 1 and 2 is located at 0 left and 0 top and is 20x20 in size
image 2 will end up at 20 left 0 top because image 1 pushes it over instead of stacking.
I have tried turning them into divs and using z index but when I change it to
Code: Select all
<div id="C1"><img src=""></div>this is all pseudo code