Help Center

Local Navigation

CSS property: padding-top

Availability

BlackBerry® Device Software version 4.3 or later

Usage

All elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group, and table-column

Inherited

No

Default value

0

The padding-top specifies the amount of padding applied above an element.

Considerations

If you specify a value for padding-top as a percentage, the value is calculated as the specified percentage of the containing block’s width, not its height.

Property values

Value

Description

length

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

auto

This value specifies that the BlackBerry® Browser determines the padding applied above the element.

inherit

This value specifies that the element inherits the padding-top property value from the containing element.

Index


Was this information helpful? Send us your comments.