Contents Index Topic Contents | ||
Previous Topic: marginRight Next Topic: marginWidth |
marginTop
Description
Retrieves the height of the top margin for the element.
Syntax
object.style.marginTop
Remarks
Negative margins are supported except for top and bottom margins on inline elements.
The property has read-only permission.
Applies To
HTML Tags BLOCKQUOTE, BODY, CAPTION, CENTER, DD, DIR, DIV, DL, DT, EMBED, FIELDSET, FORM, H1, H2, H3, H4, H5, H6, HR, IFRAME, IMG, INPUT, LI, LISTING, MARQUEE, MENU, OBJECT, OL, P, PLAINTEXT, PRE, SPAN, TABLE, TD, TEXTAREA, TH, TR, UL, XMP Scripting style CSS Attribute
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.