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.

Values

Value

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.

Index


Was this information helpful? Send us your comments.