Contents Index Topic Contents | ||
Previous Topic: toElement Next Topic: top |
top
Description
Sets or retrieves the position of the element relative to the top of the document.
Syntax
object.style.top[ = top]
Remarks
This read/write property is a string consisting of a number and a units designator, as described for cascading style sheets.
For more information on how to access the dimension and location of elements on the page through the document object model, see Measuring Element Dimension and Location.
Applies To
HTML Tags A, ADDRESS, APPLET, B, BIG, BLOCKQUOTE, CENTER, CITE, CODE, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INPUT, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP Scripting style CSS Attribute
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.