Help Center

Local Navigation

CSS property: font-family

Availability

BlackBerry® Device Software version 3.8 or later

Usage

All elements

Inherited

Yes

Default value

BlackBerry® Browser-configuration dependent

The font-family property specifies a prioritized list of specific or generic font for text. The BlackBerry Browser will use the first font that it recognizes.

Considerations

  • You should provide a generic font as the last alternative in your prioritized list.

  • When applying a style inline in an HTML document, you must enclose font-family names in single quotes.

Property values

Parameter

Description

[ family-name | generic-font ], [ family-name | generic-font ]

This value is a comma-separated list of font family names or generic fonts, where

  • family-name represents the name of a font family, such as Arial or "Times New Roman". Font family names that contain spaces must be enclosed in quotation marks.

  • generic-font represents a generic font name, such as serif, sans-serif, cursive, and monospace. Generic font names are keywords, and must not be enclosed in quotation marks.

inherit

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

Index


Was this information helpful? Send us your comments.