HTML & CSS Wiki
Advertisement

The outline-color property is used in CSS and certain HTML elements. It specifies the color of the outline of the selected object.


Values[]

  • <color> - Insert a valid color name, or a color code.
  • invert - To ensure that the outline is visible, it performs a color inversion of the background. Currently only supported in Opera and IE8.


HTML example:

<span style="outline:medium solid red;">Outline the text.</span>

That produces: Outline the text.


CSS example:

h1 {
    outline:medium solid red;
}
Advertisement