Description

Sets the position of the top edge of a positioned element relative to the position of it's positioned parent or the top edge of the page.

See also:

  • position
  • float
  • left
  • bottom
  • z-index
Live Example
Play with the code in the textarea below.

Values
length or percentage values and auto
Default value
auto
Introduced in CSS version
2.1
Applies to elements
Positioned elements
Inherited
No
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versionsfull 8, part 5.51160.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties