Help Center

Local Navigation

CSS property: max-width

Availability

BlackBerry® Device Software version 4.6 or later

Usage

All elements except non-replaced inline elements, table columns, or column groups

Inherited

No

Default value

none

The max-width property specifies the maximum width for an element.

Property values

Parameter

Description

length

This value specifies an absolute value for the minimum height of the element. The value can be an integer with the unit of measurement. For example, “10pt” or “6px”.

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

percentage

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

none

This value specifies that there is no maximum width for the element.

inherit

This value specifies that the element inherits the max-width property value from the containing element.

Index


Was this information helpful? Send us your comments.