html5 Site Icon CSS3 Site Icon CSS Site Icon

CSS 1/2 Reference

CSS border-left-color property


The CSS border-left-color property allows us to specify the left border colour for an element.

Applies To

All elements.

Property Values

color - Defines a colour for the left border.

Valid values for color keywords are aqua, black, blue, fuchsia, gray, green, lime, maroon, navy olive, orange, purple, red silver, teal, white and yellow.

Colours can also be expressed using hex notation or rgb formats.

inherit - The border-left-color properties are inherited from the parent element.

transparent - A transparent border that may have width.

Default Value

If a border colour is not specified user agents will use the value of the elements color property.


The border-left-color property is NOT inherited from the parent element unless specified using the inherit property value.

Browser Anomalies

IE5, IE6 and IE7 do not support the inherit property value.
IE8 does with a valid !DOCTYPE.
IE9+ supports the inherit property value.

Position In The Box Model



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
<!-- Our HTML/CSS for the CSS border-left-color property follows -->
<html  xmlns="">
<title>CSS 1/2 Reference - CSS border-left-color Property</title>

<!-- Valid values for CSS border-left-color Property are:
	color, inherit and transparent. 

<style type="text/css">

/* Set a border and padding around images to see the 
   effects of changing the left border colour */
img {
	padding: 10px;
	border: 2px solid black;

/* This left border colour set to teal */
#img1 {
	border-left-color: teal;

/* This left border colour set to lime */
#img2 {
	border-left-color: #0f0;

/* This left border colour set to transparent */
#img3 {
	border-left-color: transparent;


<h1>Looking at the CSS border-left-color Property</h1>
<p>The next image has a left border colour set to teal.
<img id="img1" src=""
    alt="Shepherds Pie" />
<p>The next image has a left border colour set to lime.
<img id="img2" src=""
    alt="Shepherds Pie" />
<p>The next image has a left border colour set to transparent.
<img id="img3" src=""
    alt="Shepherds Pie" />

How It Looks

The results of using the border-left-color property with the values above will look something like the following:

CSS border-left    << Prev          Next >>   CSS border-left-style

go to home page Homepage go to top of page Top

CSS properties

The complete set of visual CSS properties from the latest 2.1 Specification.

Click the links for more information on individual properties and their values.