The outline-color property

The outline-color property specifies a color of an outline - a border that does not take up space. The property value is any size units. Default value: same color as block text.

Syntax

cssselector {
  outline-color: color;
}

Example

Let's set the element an outline:

html<div id="elem"></div>
css#elem {
  outline-width: 1px;
  outline-style: solid;
  outline-color: red;
  width: 300px;
  height: 100px;
}

Результат:

See also