CSS border-top-width property
Description of property definition and use
The border-top-width property sets the width of the top border of an element.
Note: Always declare the border-style property before the border-top-width property. An element can only change the width of its border after it is obtained.
Default: | medium |
---|---|
Inherited: | no |
Version: | CSS1 |
JavaScript syntax: | object object.style.borderTopWidth="thick" |
Browser support
The numbers in the table support the first browser version number of the property.
Attributes | |||||
---|---|---|---|---|---|
border-top-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
The property value
Value | Describe |
---|---|
thin | Defines the thin top border. |
medium | The default. Define a medium top border. |
thick | Defines a thick top border. |
length | Allows you to customize the width of the top border. |
inherit | Specifies that the border width should be inherited from the parent element. |
Related articles
CSS tutorial: CSS Border
CSS Reference Manual: Border-top Property