New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

#top

Defines the position of the element according to its top edge.

default top: auto;

The element will remain in its natural position.

top: 20px;

If the element is in position relative, the element will move downwards by the amount defined by the top value.

top: 0;

If the element is in position absolute, the element will position itself from the top of the first positioned ancestor.