style.color (Property)

Defines the foreground color of any text drawn in the content of the styled element.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Opera - 5.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.color
CSS syntax:color: aColor
Argument list:aColorA valid color value

The color of foreground text affected by this style object will be defined in this property.

The color can be specified in the normal way according to the HTML color specifiers.

See also:color names, color value, JSSTag.color, rgb(), String.fontcolor(), style.renderingIntent