CSS/Properties/outline-color
From W3C Wiki
< CSS | Properties
- List of Properties
- Outline
- outline-width
- outline-style
- outline-color
- outline
- Outline
Contents |
outline-color
The outline-color property sets the color of the outline of a box.
Description
| Values | <color> | invert | inherit |
|---|---|
| Initial value | invert |
| Applies to | all elements |
| Inherited | No |
Values
<color>
invert
inherit
Takes the same specified value as the property for the element's parent.
Example
Example A
[style.css]
h1 {
outline-width: 1px;
outline-style: solid;
outline-color: red;
}
[index.html]
<body>
<h1>CSS outline property example</h1>
</body>
CSS Reference
The CSS specification defines the outline-color property in 18.4 Dynamic outlines.

