CSS outline-color property

Usage

Specifies the color of an element's outline. Not supported by many browsers.

Values

  • invert - the outline will appear in the opposite colors to the content behind it, ensuring it always stands out regardless of what the background color is (default)
  • [color] - specifies a color name, RGB code or Hex code

Example

Code:

p {
  outline-color: invert;
}