CSS border-left Property


The border-left-color Property is used to specify the color  of an Element's left border. The border-style or border-left-style property must be declared before the border-left-color property.

Syntax

Example

Preview

Property Values

Value Description
border-left-width Optional. The width of the left border is specified. The default setting is "medium."
border-left-style Required. The style of the left border is specified here. The default value is "none."
border-left-color Optional. The color of the left border is specified here. The color of the text is the default value.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
border-left 1.0 1.0 3.5 4.0 1.0