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