# 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

`selector { outline-color: color; }`

## Example

Let's set the element an outline:

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

:

## See also

- the `outline-width` property
  that sets an outline width
- the `outline-style` property
  that sets an outline style
- the `outline` property
  that is a shorthand property for outline
- the `outline-offset` property
  that sets an outline offset

← →
↑
en ru