Easy Tutorial
❮ Prop Element Scrollheight Jsref Regexp Onemore ❯

Style outlineColor Property


Definition and Usage

The outlineColor property sets or returns the color of the outline around an element.

Syntax

Set the outlineColor property:

Return the outlineColor property:

Value Description
color Specifies the color of the outline. In CSS Color Values
invert Default. Inverts the color of the outline to the opposite value.
inherit The color of the outline is inherited from the parent element.

Browser Support

All major browsers support the outlineColor property.

Note: IE7 and earlier versions do not support the outlineColor property. IE8 only supports the outlineColor property if the !DOCTYPE is specified. IE9 supports the outlineColor property.


Tips and Notes

The outline is a line around the element. It is displayed around the element's margin. However, it is different from the border property.

The outline is not part of the element's dimensions, so the element's width and height properties do not include the width of the outline.


Examples

Change the color of the outline:

❮ Prop Element Scrollheight Jsref Regexp Onemore ❯