Style.color Property

SharePoint Designer Developer Reference

Sets or returns a String specifying a color name or red-green-blue (RGB) value, which represents the color of an HTML element.

Syntax

expression.color

expression   Required. A variable that represents a Style object.

Remarks

When text is involved, the color property indicates the color of the text for the specified object. Otherwise, the color property indicates the color of the object itself, for example, in the case of lines and borders.

Color values can be specified as color names or Web safe Red-Green-Blue (RGB) color values. For more information on available color names and RGB color values, see the Color Table on MSDN.

See Also