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.

Values

Value

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.

xx-small | x-small | small | medium | large | x-large | xx-large

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

smaller | larger

These values specify the font size relative to the standard font size of the element.

Index


Was this information helpful? Send us your comments.