Page 1 of 1

weird issue with setting positioning on HTMLElements

Posted: Tue Feb 16, 2010 11:12 pm
by daedalus__
i [s]am[/s] was having what i considered a weird problem.

i was trying to to set a position like .style.top with an integer or a string containing an integer. it resulted in an empty string being assigned each time. i had to append a unit of measurement.

annoying! but hopfully helpful to someone else.