Style outlineWidth Property
Style outlineWidth Property
The outlineWidth property is used to either set or return the width of the outline around an element. An outline is a line around an element and is displayed around the margin of the element. It differs from borders because it does not take up space.
Syntax:-
Its syntax is:- object.style.outlineWidth OR object.style.outlineWidth = thin | medium | thick | length | initial | inherit
Return:-
Its return is:- string having width of an element outline
Further Explanation:-
Value | Description |
---|---|
thin | Defines thin outline |
medium | Defines medium outline. |
thick | Defines thick outline |
length | The width of outline in length units |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |