Extensible HyperText Markup Language

XHTML.com recommends: PSD to HTML Slicing Service and PSD to HTML by W3 Markup. see your link here

top

Definition

The top property is used in conjunction with the position property to position elements outside the normal flow.

Example

  1. p.wordmark {
  2. position: fixed;
  3. top: 10px;
  4. left: 10px;
  5. }

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