Name
color — IE4 Y/Y | IE5 Y/Y | NN4 Y/Y | Op3 Y/-
Synopsis
Sets the
foreground color of a given element. For text, this sets the text
color. The value of color is inherited by any borders of an element,
unless they have had a color set border-color
.
Example
STRONG {color: rgb(255,128,128);}
Values
<color>
Default
UA specific
Inherited
yes
Applies to
all elements
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.