"JKD" <JK*@JKDSoft.cjb.net> wrote
After writting this code...
document.write('<div id="foo"
style="position:absolute;top:0;left:0;width:10;hei ght:10;background:#fffff0;
font-size:1"></div>');
Probably unrelated to the issue below, but to prevent a future problem, make
a habit of specifying units (px, em, cm, % etc.) with *all* numeric values,
so browsers are more likely to agree on the size they think you want.
... I've tryed to see its properties with the next line:
alert(document.getElementById('foo').style.PixelLe ft);
but both in firefox and internet explorer return "undefined".
What is PixelLeft then? Another IE only aberration? Indeed, it is clearly
written in the documentation - if you can find it:
<
http://msdn.microsoft.com/workshop/a...erties/pixelle
ft.asp >
"There is no public standard that applies to this property."
which means it 's not in the W3c specs and not likely to make it there any
time soon either.
If anything, it would begin with a lowercase letter, as both clientLeft and
scrollLeft do, which are the properties we usually deal with.
HTH
--
Ivo
http://www.vansandick.com/