Style borderTop Property
Style borderTop Property
The borderTop property is used to either set or return up to three separate border-top properties. It is a shorthand property. These properties are:-
- border-top-width
- border-top-style
- border-top-color
Syntax:-
Its syntax is:- object.style.borderTop OR object.style.borderTop = width style color|initial|inherit
Return:-
Its return is:- string having width, style, and color of the top border of an element
Further Explanation:-
Parameter | Description |
---|---|
width | Sets width of the top border |
style | Sets style of the top border |
color | Sets color of the top border |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |