|
|
ColorCSSProperty
The color property describes the foreground color of an element's text content.
You are here: Home > CSS Reference > Properties > color
Usage
Values
- <color>
- inherit
Browser compatibility
| Test | IE8 | IE7 | IE6 | FF3 | FF2 | Saf3 |
| style.color reflects <div style='color: #808080'> | N | N | N | Y | Y | Y |
| style.color reflects <div style='color: black'> | N | N | N | Y | Y | Y |
| style.color reflects <div style='color: rgb(0, 0, 0)'> | Y | Y | Y | N | N | N |
| style.color reflects <div style='color: transparent'> | Y | Y | Y | Y | N | N |
Further reading
Sign in to add a comment
