top
Definition
The top property is used in conjunction with the position property to position elements outside the normal flow.
Example
p.wordmark {position: fixed;top: 10px;left: 10px;}
Characteristics
Possible values
- length
- Specific distance from the top edge.
- percentage
- Percentage of the containing parent element's height.
auto- Depends on the value of the height property.
inherit- Use the same computed value as the parent element for this property.
Default value
auto
Applies to
All elements that have the position property set to a value other than static.
Inherited
No
See also