CSS/Properties/outline-color

From W3C Wiki
Jump to: navigation, search

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>

Csslist2 outline2.png

CSS Reference

The CSS specification defines the outline-color property in 18.4 Dynamic outlines.