Click to return to the DHTML, HTML     
top Property     TRUESPEED Attribute | tru...     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

TOPMARGIN Attribute | topMargin Property


Sets or retrieves the margin for the top of the page.

Syntax

HTML<BODY TOPMARGIN = iMargin ... >
Scriptingbody.topMargin [ = iMargin ]

Possible Values

iMarginInteger that specifies the top margin of the body, in pixels.

The property is read/write with a default value of 15.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.

Remarks

If the value is set to "0" or "", the top margin is on the top edge of the window or frame.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

BODY

See Also

leftMargin



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.