Syntax | selector {outline-color: value ;}
|
---|---|
Usage | The outline-color property is used to specify the outline color. The outline property generates an outline around the content and border area of the element's box. See the Box Model for a description of the boxes that are generated for elements and the relative position of the content area and borders. Unlike the border property, the outline property is displayed on top of the element's box and it does not influence the size or position of the element's box. This property is specified by using a color-value, or a keyword, according to the syntax shown above. CSS Example: The outline-color property is set using the keyword red. h1 {outline-color: red;
outline-style: solid;
outline-width: thick;
} CSS Example: The outline-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500. h1 {outline-color: #ffa500;
outline-style: solid;
outline-width: thick;
} CSS Example: The outline-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). h1 {outline-color: rgb(30%,50%,70%);
outline-style: solid;
outline-width: thick;
} |
Keywords |
|
Applies To | All elements |
Inherited | No |
Initial Value | invert |
The outline-color property is set using the keyword red. The outline-color property is set using a RGB 6-Digit Hexadecimal value of #ffa500. The outline-color property is set using a RGB Percentage Functional Notation value of rgb(30%,50%,70%). |