The best CSS border-left-width property Tutorial In 2024, In this tutorial you can learn Examples,Attribute definitions and instructions,Browser Support,Property Value,related articles,
Setting the width of the left border:
border-left-width property element is set to the width of the left border.
Only when the border style is not none work. If the border style is none, the border width will actually reset to 0. Not allowed to specify a negative length value.
Note: Always declare the border-style property before the border-left-width property.Element only after obtaining the border, in order to change the width of the border.
Defaults: | medium |
---|---|
Inherited: | no |
version: | CSS1 |
JavaScript syntax: | object .style.borderLeftWidth = "thick" |
Figures in the table represent the first browser to support the version number of the property.
属性 | |||||
---|---|---|---|---|---|
border-left-width | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
value | description |
---|---|
thin | Fine definition of the left border. |
medium | Defaults. The definition of moderate left border. |
thick | Defined thick left border. |
length | It allows you to customize the width of the left border. |
inherit | Provisions should inherit the border width from the parent element. |
CSS tutorial: CSS Border
CSS Reference: border-left property