2.3.1.32 leftMargin

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

leftMargin of type DOMString

Sets or retrieves the left margin for the entire body of the page.

The default value is 10 pixels. If the value is an empty string, the left margin is the left edge.

The value set on the property overrides the default margin.

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

The leftMargin attribute extends the HTMLBodyElement interface.

Show: