Style border Top Width Property

Style border Top Width Property


Style border Top Width Property
It is the CSS property that sets the width of the top border of an element. It is used to set a specific width of the top border of an element.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
 
property
 
chrome
 
firefox
 
microsoft edge
 
Opera
 
border-top-width
 
1.0
 
1.0
 
4.0
 
3.5
 
Syntax
border-top-width: medium|thin|thick|length|initial|inherit;
Example
Output
Property Values
 
Value
 
Description
 
medium
 
It specifies a medium top border. This is the default.
 
thin
 
It specifies a thin top border. 
 
thick
 
It specifies a thick top border. 
 
length
 
It allows defining the thickness of the top border.
 
initial
 
Set this property to its default value.
 
inherit
 
Inherits this property from its parent element.
 
Technical Details
 
Default value:
 
Medium
 
Version:
 
CSS1
 
inherited
 
No
 
Animatable
 
Yes
 
JavaScript syntax:
 
object.style.borderTopWidth="10px"