Sets the position of the object relative to the top of the next positioned object in the document hierarchy.
Variant that specifies or receives one of the following values:
Default. Default position according to the regular HTML layout of the page.
Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).
For more information about the supported length units, see Length units reference.
Integer, followed by a percent sign (%). This value is a percentage of the height of the parent object.
The property has a default value of auto. It is not inherited.
The following example uses the top property to change the position of the object. This example uses an inline style to set the position of a DIV object:
<div style="position: absolute; top: 100px; "> . . . </div>
A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, BUTTON, CENTER, CITE, CODE, CUSTOM, DD, DEFAULTS, DFN, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, HN, HR, I, IFRAME, IMG, INPUT TYPE=BUTTON, INPUT TYPE=CHECKBOX, INPUT TYPE=FILE, INPUT TYPE=IMAGE, INPUT TYPE=PASSWORD, INPUT TYPE=RADIO, INPUT TYPE=RESET, INPUT TYPE=SUBMIT, INPUT TYPE=TEXT, LI, OBJECT, OL, P, S, SELECT, SPAN, SUB, TABLE, TT, U, UL, VAR, XMP