Help Center

Local Navigation

CSS property: color

Availability

BlackBerry® Device Software version 3.8 or later

Usage

All elements

Inherited

Yes

Default value

BlackBerry® Browser-configuration dependent

The color property specifies the foreground color. The foreground is the content of the element, typically text, but can also be applied to other foreground aspects of the element, for example, the rule drawn for the <hr/> element, and the color of any border (unless you set another color with one of the border properties).

Property values

Parameter

Description

color

This value specifies a valid color. A valid color can be specified in the following ways:

  • an RGB value, such as rgb(250,239,111)

  • hexadecimal notation, such as #770aff or #70f (equal to #7700ff)

  • a valid textual color name, such as red

inherit

This value specifies that the element inherits the color property value from the containing element.

Index


Was this information helpful? Send us your comments.