I'm just scratching my head over this JavaScript/absolute positioning problem. I can work around it, but I just don't understand it.
I gave up trying to position with HTML/CSS and decided to cheat using JavaScript.
When I run the line (just trying to set the "left" property of a button):
cmdSave.style.left=Overall
Table.offs
etLeft+Ove
rallTable.
offsetWidt
h-iWidth +"px";
the cmdSave button gets wider, when I am only setting the "left" property.
I can correct this by subsequently running:
cmdSave.style.width=iWidth
;
but I'm afraid my misunderstanding of JavaScript's interaction with HTML will come back to haunt me somewhere else.
Start Free Trial