| outline-color | NN n/a IE 5(Mac) CSS 2 |
| Inherited: No | |
Controls the color of an outline around an element. |
|
| CSS Syntax | |
outline-color: color
|
|
| Value | |
A CSS color value. One value controls all sides of the outline. The CSS specification also calls for a constant called invert, which performs an algorithmic inversion of the background color, but this value is not supported in IE 5 Mac. |
|
| Initial Value | |
In IE 5 for Macintosh, black. The CSS 2 specification suggests invert as a default. |
|
| Example | |
h2 {outline-color: salmon}
div {outline-color: rgb(0,0,255)}
|
|
| Applies To | |
All elements. |
|
| Object Model Reference | |
[window.]document.getElementById("elementID").style.outlineColor
|
|