The border-left-color property specifies the color of the left border of an element. Note that in many cases the shorthand CSS properties border-color or border-top are more convenient and preferable.

  • Initial valuecurrentColor
  • Applies toAll elements
  • InheritedNo
  • MediaVisual
  • Computed valueThe computed color
  • AnimatableYes
  • CSS VersionCSS2, CSS3
  • JavaScript
Formal syntax: <color> 

border-left-color: green;
border-left-color: #3366FF;
border-left-color: rgb(51,102,255);
border-left-color: rgba(51,102,255,1);
border-left-color: hsl(225,100%,60%);
border-left-color: hsla(225,100%,60%,1);
border-left-color: transparent;
  • <color>The computed value of the 'color' property. This value can be a basic color keyword, such as red or green, a numerical value, an RGB or RGBA value, or an HSL or HSLA value.
  • transparentFully transparent. This keyword can be considered a shorthand for transparent black, rgba(0,0,0,0), which is its computed value.
  • inherit
.class {
   border-left-color: #f0f0f0;

Click the button below to experiment with this property.

Give it a Try!


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.