![]() |
| IE | FF | Op | Saf |
|---|---|---|---|
For absolutely positioned elements this property defines how far the top edge of an element is below the top edge of the containing block (beginning at the padding's edge). The containing block of an absolutely positioned element is the first ancestor whose position property is set to absolute, fixed or relative.
For relatively positioned elements this property defines how far the top edge of the element is below the position that the element would be at normally.
| Values | Description |
| auto | Default. The browser calculates the top position. |
| percentage | Defines a top position percentage value from the edge of an element. |
| length | Defines a top position length from the edge of an element. |
Available since CSS 2.0
direction
Some absolutely positioned text.
Some ordinary text
Some ordinary text
Some ordinary text
Some ordinary text
Some ordinary text
Comments