You are here: Reference > HTML > attributes > rightMargin (body)

rightMargin attribute (body)

Browser support:
Sets the right margin for the document body in pixels.
This attribute is deprecated. Use the margin-right style property instead.
JavaScript page for this attribute: rightMargin. You can find other example(s) there.

Possible values:

String that sets the width of the margin, with an integer optionally followed by a 'px' (pixel) unit designator.
Default: 10.

Example HTML code 1:

This example illustrates the use of the rightMargin attribute:
<body rightmargin="100px">
Did you find this example helpful? yes no

Example HTML code 2:

<body style="margin-right:100px; text-align:right;">
    The right margin is 100px
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content