CSS border top color Property
CSS border-top-color Property
The border-top-color property is used to set the color of an element top border. It is always used after the border-style or border-top-style property is declared.
Default Value:-
Its default value is the current color value of that element.
Syntax:-
Its syntax is:- border-top-color: color | transparent | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
color | Specifies the color of the top border. |
transparent | Specifies that the border color should be transparent |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |