Web4College

CSS outline-color property

src

Description

CSS outline-color property defines the color for the outline of a box.

Syntax

outline-color : currentColor | color-name | rgb value | hexadecimal value

Property values

currentColorDefault

currentColor keyword represents the same color for the top side outline as of text color.

outline-color: currentColor;
Try it

color-name

The following demo represents skyblue color for the top side outline.

outline-color: skyblue;
Try it

rgb value

#000000

It represents rgb value of a color.

The hexadecimal value of red color for the top side outline is given below.

outline-color: rgb(255,0,0);
Try it

hexadecimal value

#000000

It represents hexadecimal notation of red color.

The hexadecimal notation of blue color for the top side outline is given below.

outline-color: #0000ff;
Try it

Applicable to

It applies to all elements