Properties


TOPMARGIN Attribute | topMargin Property

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

Syntax

HTML<ELEMENT TOPMARGIN = iMargin... >
Scripting[ iMargin = ] object.topMargin

Possible Values

iMarginString or Integer that specifies or receives the top margin of the body, in pixels.

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

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are not supported in IE8 mode. For more information, see About Dynamic Properties.

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.

Standards Information

There is no public standard that applies to this property.

Applies To

BODY, HTMLBodyElement Constructor
Tags :


Page view tracker