Help Center

Local Navigation

CSS property: width

Availability

BlackBerry® Device Software version 3.8 or later

Usage

all elements except non-replaced inline elements, table rows, or row groups

Inherited

yes

Default value

auto

The width property specifies the width of an element.

Values

Value

Description

length

This value specifies the distance as an absolute value. 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 element width as a percentage of the width of the containing element.

auto

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

Index


Was this information helpful? Send us your comments.