weird issue with setting positioning on HTMLElements

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

weird issue with setting positioning on HTMLElements

Post 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.
Post Reply