Help Center

Local Navigation

CSS property: font-size

Availability

BlackBerry® Device Software version 3.8 or later

Usage

All elements

Inherited

Yes

Default value

medium

The font-size property specifies the size of a font, either in absolute or relative terms. Relative values are relative to the font size of the element that contains the current element.

Property values

Parameter

Description

length

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

auto

These values specify the font size according to a BlackBerry® Browser standard.

smaller

larger

This value specifies the font size relative to the standard font size of the element.

inherit

This value specifies that the element inherits the font-size property value from the containing element.

Index


Was this information helpful? Send us your comments.