Menu Home

outline-color

osbo.com | CSS | Properties | outline-color

The outline-color CSS property sets the color of an element's outline.

Syntax

CSS

outline-color: value;

JS

object.style.outlineColor = "value";

Values

<'outline-color'> = <color> | invert
<color>

Specifies the color using a keyword or a numerical specification.

invert

Performs a color inversion on the pixels on the screen.

Initial

invert when invert is supported, currentcolor when invert is not supported

Examples

color

invert

currentcolor

JS

Internal

outline

outline-style

outline-width

External

World Wide Web Consortium (W3C)