CSS border-left-styleProperty


Example

Set the style of the left border:

p { border-style:solid; border-left-style:dotted; }

Try it Yourself »

Property definition and usage instructions

border-left-style sets the style of the 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 number that supports the property.

Property
border-left-style 1.0 5.5 1.0 1.0 9.2

Property value

Value Description
none Define borderless.
hidden Same as "none". Except when applied to tables, for tables 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 Define a solid line.
double Defines a double border. 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. The effect depends on the value of border-color.
outset Defines a 3D outset border. The 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

other extensions