CSS border-left-width property
Examples
Setting the width of the left border:
{
border-style:solid;
border-left-width:15px;
}
Attribute definitions and instructions
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" |
Browser Support
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 |
Property Value
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. |
related articles
CSS tutorial: CSS Border
CSS Reference: border-left property