July 1998
Intermediate to advanced
1456 pages
65h 5m
English
top — NN n/a IE 4 DOM n/a
Read/Write
For positionable elements, defines the position of the top edge of an element’s box (content plus top padding, border, and/or margin) relative to the top edge of the next outermost block content container. When the element is relative-positioned, the offset is based on the top edge of the inline location of where the element would normally appear in the content.
For calculations on this value, retrieve the
pixelTop or posTop properties,
which return genuine numeric values.
document.all.blockD2.style.top = "40px"
String consisting of a numeric value and length unit measure, a
percentage, or auto.
auto
Read now
Unlock full access