Name

rightMargin — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

Width in pixels of the right margin of the BODY element in the browser window or frame. By default, the browser inserts a small margin to keep content from abutting the right edge of the window (except on the Macintosh). Setting the property to an empty string is the same as setting it to zero.

Example

document.body.leftMargin = 16

Value

Integer of pixel count.

Default

10 (Windows); 0 (Macintosh).

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.