all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

rightmargin attribute | rightMargin property

Sets or gets the right margin for the entire body of the document.

Syntax

HTML<element rightmargin="p" ... >
JavaScript

p = object.rightMargin

 

Property values

Type: Variant

the right margin, in pixels.

10

Default value.

Remarks

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.

See also

body

 

 

Show:
© 2014 Microsoft