Style borderTopWidth Property
Style borderTopWidth Property
The borderTopWidth property is used to either set or return the width of the top border of an element.
Syntax:-
Its syntax is:- object.style.borderTopWidth OR object.style.borderTopWidth = thin|medium|thick|length|initial|inherit
Return:-
Its return is:- string having width of an element top border
Further Explanation:-
Value | Description |
---|---|
thin | Defines thin border. |
medium | Defines medium border. |
thick | Defines thick border. |
length | The width of border in length units. |
inherit | The width of top border is inherited from the parent element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |