Export (0) Print
Expand All

2.3.1.45 topMargin

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:
© 2014 Microsoft