A positioning reference point.


CSS level - 2
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript = yCoordinate
CSS syntax:top: aValue
Argument list:aValueA positioning value

A CSS-P positioning style attribute that controls the location of an element relative to its containing parent element. The top edges of the two elements are used as the reference points.

The value can be specified in the usual pixel or fractional em-dash measurement units or the auto keyword can be used to let the browser do the positioning itself.

The exact positioning is affected by settings for padding, border, margin and the position property.

See also:Measurement units, style.bottom, style.left, style.pixelTop, style.posTop, style.right