CSS border top width Property
CSS border-top-width Property
The border-top-width property is used to set the width 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 medium.
Syntax:-
Its syntax is:- border-top-width: medium | thin | thick | length | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
medium | Specifies a medium top border. |
thin | Specifies a thin top border |
thick | Specifies a thick top border |
length | Allows you to define the thickness of the top border. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |