CSS border-left-style property
Example
Set the style of the left border:
p
{
border-style:
solid
;
border-left-style:
dotted
;
}
Try it »
Property definition and usage
border-left-style sets the style of an element's left border.
| Default value: | not specified |
|---|---|
| Inheritance: | no |
| Version: | CSS1 |
| JavaScript syntax: | object.style.borderLeftStyle="dotted" |
Browser support
The numbers in the table indicate the first browser version that supports this property.
| property | |||||
|---|---|---|---|---|---|
| border-left-style | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
Attribute values
| Value | Description |
|---|---|
| none | Defines no border. |
| hidden | Same as "none". Except when applied to tables, where hidden is used to resolve border conflicts. |
| dotted | Defines a dotted border. Rendered as a solid line in most browsers. |
| dashed | Defines a dashed border. Rendered as a solid line in most browsers. |
| solid | Defines a solid line. |
| double | Defines a double line. The width of the double line equals the value of border-width. |
| groove | Defines a 3D grooved border. Its effect depends on the value of border-color. |
| ridge | Defines a 3D ridged border. Its effect depends on the value of border-color. |
| inset | Defines a 3D inset border. Its effect depends on the value of border-color. |
| outset | Defines a 3D outset border. Its effect depends on the value of border-color. |
| inherit | Specifies that the border style should be inherited from the parent element. |
Related Articles
CSS Tutorial: CSS Border
CSS Reference Manual: border-left property