The border-top-width property in CSS is used to set a specific width to the top border of an element. The border-top-style or border-style property is used for the element before using the border-top-width property.
Property Values: The border-top-width property values are listed below:
- length: It is used to set the width of the border. It does not takes negative value.
- thin: It is used to set the thin border at the top of element.
- medium: It is used to set medium sized top border. It is the default value.
- thick: It is used to set the thick top border.
- initial: It is used to set the border-top-width to its default value.
- inherit: This property is inherited from its parent.
Browser Support: The browser supported by border-top-width property are listed below:
- Google Chrome 1.0
- Internet Explorer 4.0
- Opera 3.5
- Safari 1.0
- Firefox 1.0
- HTML | DOM Style borderTopWidth Property
- CSS | transition-property Property
- CSS | all Property
- CSS | right Property
- CSS | top Property
- CSS | columns Property
- CSS | padding-right Property
- CSS | height Property
- CSS | The object-fit Property
- CSS | order property
- CSS | border-right Property
- CSS | animation-name Property
- CSS | grid-row Property
- HTML | DOM name Property
- HTML | DOM Bdo dir Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.