The top property defines how far the top of the element is offset from the top of the container element.
top: <length> | <percentage> | auto | inherit
- <length>
A precise unit of meaurement. - <percentage>
A percentage of the height of the containing block. - auto
Determined by widths and heights of the elements. - inherit
The element should have the same top value as the parent element.
auto
Positioned elements.
This property is not inherited.
- Visual
Standard top property
<p style="top : 5px;">
This paragraph should display 5 pixels from the top of the container element.
</p>
- Negative units are permitted.

