Skip to content Skip to sidebar Skip to footer

Why Isn't Obj.style.left = "200px"; Working In This Code?

Why wont .style.top = '200px'; work in this code? Calling the event within the element using oclick='this.style.left='200px';' doesn't work either.

Solution 1:

To use a left or top style the element must be position:absolute, or position:relative, or position:fixed


Post a Comment for "Why Isn't Obj.style.left = "200px"; Working In This Code?"