CSS border-left-color Property
                Topic: CSS3 Properties ReferencePrev|Next
Description
The border-left-color CSS property sets the color of an element's left border individually. However in many cases the shorthand CSS properties like  border-color or border-left are more convenient to use and preferable.
The following table summarizes the usages context and the version history of this property.
| Default value: | The value of the colorproperty | 
|---|---|
| Applies to: | All elements | 
| Inherited: | No | 
| Animatable: | Yes. See animatable properties. | 
| Version: | CSS 1, 2, 3 | 
Syntax
The syntax of the property is given with:
The example below shows the border-left-color property in action.
Example
Try this code »p {
    border-style: solid;
    border-left-color: #ff0000;
}Note: You must declare the border-style property before the border-left-color property.  An element must have borders before you can set the color of the border, because the default value of border-style property is none.
Property Values
The following table describes the values of this property.
| Value | Description | 
|---|---|
| color | Specifies the color of the top border. Look at CSS Color Values for the list of possible color values. | 
| transparent | Allows the border to be transparent, though it may occupy the space set by the border-widthproperty. | 
| initial | Sets this property to its default value. | 
| inherit | If specified, the associated element takes the computed value of its parent element border-left-colorproperty. | 
Browser Compatibility
The border-left-color property is supported in all major modern browsers.
|  | Basic Support—
 | 
Further Reading
See tutorial on: CSS Border, CSS3 Border.
Related properties: border, border-color, border-left, border-left-style, border-left-width.


