Copyright © tutorialspoint.com
The left property defines an offset of the left edge of an absolutely positioned element from the left edge of its positioning context, or the horizontal distance which a relatively positioned element will be displaced.
All the HTML positioned element.
object.style.left="2px"; |
Here is the example which shows effect of this property:
<p style="position:absolute; left:100px;"> This line will be positioned 100px away from the left edge of this window. </p> |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com