Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

topmargin attribute | topMargin property

Sets or gets the margin for the top of the document.

Syntax

HTML<element topmargin="p" ... >
JavaScript

p = object.topMargin

 

Property values

Type: Variant

the top margin of the body, in pixels.

15

Default value.

Remarks

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

By default, when you set the value of this property, the opposite margin is set to the same value.

See also

body

 

 

Show:
© 2015 Microsoft