Contents Index Topic Contents | ||
Previous Topic: posHeight Next Topic: posLeft |
position
Description
Retrieves the type of positioning used for the element.
Syntax
object.style.position
Remarks
The default is static, which means there is no special positioning, and the element obeys the layout rules of HTML.
An absolutely positioned element is always relative to either the next positioned parent or, if there isn't one, the BODY by default. Values for left and top are relative to the upper-left corner of the next positioned element in the hierarchy. Be sure to note the Applies To listings for elements that can be relatively and absolutely positioned.
See Positioning for an overview on how to use dynamic positioning.
The property has read-only permission.
Applies To
HTML Tags For position:absolute
APPLET, DIV, EMBED, FIELDSET, HR, IFRAME, IMG, INPUT, INPUT type=button, OBJECT, MARQUEE, SELECT, SPAN, TABLE, TEXTAREA
For position:relative
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, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PRE, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TEXTAREA, TT, U, UL, VAR, XMP
Scripting style CSS Attribute
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.