The best CSS border-width attribute Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Set the width of the four borders:
border-width property is set to a width of four border element. This property can have one to four values.
Example:
border-width: thin medium thick 10px ;
border-width: thin medium thick;
border-width: thin medium;
border-width: thin;
Defaults: | medium |
---|---|
Inherited: | no |
version: | CSS1 |
JavaScript syntax: | object .style.borderWidth = "thin thick" |
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
value | description |
---|---|
thin | Fine defined borders. |
medium | default. Defines the medium border. |
thick | Defined thick 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