CSS outline Property
CSS outline Property
An outline is a line that is drawn around elements that are outside of its borders which makes the element stand out. It is a shorthand property for:-
- outline-width
- outline-style
- outline-color
Default Value:-
Its default value is medium invert color.
Syntax:-
Its syntax is:- outline: outline-width outline-style outline-color | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
outline-width | Specifies the width of the outline |
outline-style | Specifies the style of the outline |
outline-color | Specifies the color of the outline |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |