Export (0) Print
Expand All

2.3.1.45 topMargin

Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

topMargin of type DOMString

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

The default value is 15 pixels. If the value is an empty string or is set to 0, the top margin is set on the top edge of the window or frame.

The specified value overrides the default margin.

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

This attribute extends the HTMLBodyElement interface.

Show:
© 2016 Microsoft