By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Border-left-color Property

Edited: 2015-12-07 13:09

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

It may be easier to set all the colors in one go using the border-color property.

Possible Values

Read the Colors entry in the reference to understand It's many possible values.

div {
  border-left-color: black;

Inherited? NO!

An example of using border-left-color

In this example we are applying a color to the left border of a div element. Note. that this will also work on other elements.

<div style="background:#E8E8E8;width:300px;height:200px;border-left:1px solid;border-left-color:#0000FF;"></div>

The above will look like: