Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

CSS border-left-color property


May 05, 2021 CSS Reference Manual


Table of contents


CSS border-left-color property


Set the left box color:

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

Try it out . . .

Description of property definition and use

The border-left-color property sets the left box color of an element.

Note Always declare the border-style property before the border-color property. The element must get the border before you change its color.

Default: not specified
Inherited: no
Version: CSS1
JavaScript syntax: object object.style.borderLeftColor="blue"


Browser support

The numbers in the table support the first browser version number of the property.

Attributes
border-left-color 1.0 4.0 1.0 3.5 1.0

Property Values

Value Description
color Specify the color of the left box. Find a complete list of color values in CSS Color Values.
transparent The color of the specified border should be transparent. This is the default
inherit Specifies the color of the border and should be inherited from the parent element


Related articles

CSS tutorial: CSS Border

CSS Reference Manual: Border-left Properties