What is the CSS border-left-color property?

The border-left-color property in CSS is used to define the color of the elements in the left border.


In order to use the border-left-color property, you must use the border-style or border-left-style property because you can only change the color if you have a border.

Syntax


border-left-color: color|transparent|initial|inherit;

Property values

  • color: Sets the color of the left border.

  • transparent: Specifies that the color of the border should be transparent.

  • initial: Sets the value to its default value.

  • inherit: Inherits property from its parent value.

Code

Free Resources