Forum Moderators: open
The error console states the following:
Error in parsing value for property 'left'. Declaration dropped
Not really all that helpful as I'm trying to position a div at an absolute position in JS.
the command I'm using is:
obj.style.cssText="position: absolute; left:515; top:20;";
Works in IE and on a different site I have in both IE and FF, but this one doesn't.
One specifies px and the other doesn't.
Open them both in FF and both work fine.
However if I remove the px's from the one so that both have no px's one works and one doesn't.
I don't understand how one can work and one fails if the styles are exactly the same regarding the px's.
Doh! Just figured it out. One has a Document Tag and the other doesn't. Guessing that's what caused the problem.
OK, so I gues I need to change my coding ethic.