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

rightMargin of type DOMString

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

If the value is an empty string, the right margin is on the right edge.

The value set on the property overrides the default margin.

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

This attribute extends the HTMLBodyElement interface.