CSS border-leftProperty


Example

Set the style of the left border:

p { border-style:solid; border-left:thick double #ff0000; }

Try it Yourself »

Property definition and usage instructions

The border-left shorthand property sets all the properties for the left border in one declaration.

YespressSequenceSettingsFor exampleBottomAttributes: border-left-width, border-left-style, and border-left-color.

If you do not set one of the values, there will be no problem; for example, border-left:solid #ff0000; is also allowed.

Default value: not specified
Inheritance: no
version: CSS1
JavaScript Syntax: object.style.borderLeft="3px solid blue"


Browser Support

The numbers in the table indicate the first browser version that supports the property.

Property
border-left 1.0 4.0 1.0 3.5 1.0

Property value

Value Description
border-left-width Specifies the width of the left border. See:border-left-widthPossible values in.
border-left-style Specifies the style of the left border. See:border-left-stylePossible values in.
border-left-color Specifies the color of the left border. See:border-left-colorPossible values in.
inherit Specifies that the settings of the border-left property should be inherited from the parent element.


Related Articles

CSS Tutorial:CSS Border

other extensions