Here's a little bit of test jscript with two P elements with position:absolute:-
document.getElementById("p0").style.top="30px";
document.getElementById("mark").style.top=document .getElementById("p0").style.top;
As you would expect they line up vertically. If you now change one of them to DIV there is no change in IE but in Firefox they are no longer aligned. In Firefox it seems that the Ps were not correctly placed in the first place, it is not the physical top of the box that was at 30px but the bottom of the text inside it.
Any solutions to force it into sensible behaviour apart for using something other than P? Cheers.
document.getElementById("p0").style.top="30px";
document.getElementById("mark").style.top=document .getElementById("p0").style.top;
As you would expect they line up vertically. If you now change one of them to DIV there is no change in IE but in Firefox they are no longer aligned. In Firefox it seems that the Ps were not correctly placed in the first place, it is not the physical top of the box that was at 30px but the bottom of the text inside it.
Any solutions to force it into sensible behaviour apart for using something other than P? Cheers.
Comment