The best CSS border-top-width property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Settings at the top border width:
border-top-width property is set to a width of the top border of the element.
Note: Always declare the border-style property before the border-top-width property.Element only after obtaining the border, in order to change the width of the border.
Defaults: | medium |
---|---|
inherit: | no |
version: | CSS1 |
JavaScript syntax: | object object.style.borderTopWidth = "thick" |
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-top-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
value | description |
---|---|
thin | Fine definition of the border. |
medium | Defaults. Defined border medium. |
thick | The definition of crude on the border. |
length | It allows you to customize the width of the border. |
inherit | Provisions should inherit the border width from the parent element. |
CSS tutorial: CSS Border
CSS Reference: border-Top properties