Help Center

Local Navigation

CSS property: margin-right

Availability

BlackBerry® Device Software version 4.6 or later

Usage

All elements except those with table display types other than table-caption, table, and inline-table

Inherited

No

Default value

0

The margin-right specifies the width of the margin to the right of an element.

Property values

Parameter

Description

length

This value specifies an absolute value for the margin width. The value can be an integer with the unit of measurement. For example, “10pt” or “6px”. Negative values are permitted.

Possible units include pt, px, in, cm, pc, em, or ex.

percentage

This value specifies the margin width as a percentage of the width of the containing block.

auto

This value specifies that the BlackBerry® Browser determines the right margin of the element.

inherit

This value specifies that the element inherits the margin-right property value from the containing element.

Index


Was this information helpful? Send us your comments.