Skip to Content


CSS Reference / top

top

Sets how far the top edge of an element is above/below the top edge of the parent element.

Values:

  • auto
  • %
  • length

Examples:

  1. top: 20px;
  2. top: auto;

Browser support:

  • Internet Explorer 4+
  • Netscape 4+
  • Opera 5+

Related properties:

back to list



Search

Sponsors

Logo design for $149

Advertise here