top

The top property defines the vertical position of an element that has position property set.

Example

Initial value auto
Applies to positioned elements in the page

Syntax

  
top: 10px;
  

Values

The distance from the top of the container element.
Percentage from the top of the container element.

We use cookies to improve your experience. Learn more in our Privacy policy.

×