The outline-color property is utilized to set the color of the layout.
The color can be set by:
The following example shows some different outlines with different colors. Also notice that these elements also have a thin black border inside the outline:
A solid red outline.
A dotted blue outline.
An outset grey outline.
Example
.ex1 {
border: 3px solid black;
outline-style: solid;
outline-color: green;
}
.ex2 {
border: 3px solid black;
outline-style: dotted;
outline-color: red;
}
.ex3 {
border: 3px solid black;
outline-style: outset;
outline-color: black;
}
Required fields are marked *
Get all latest content delivered to your email free.