Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS border-left-color property

CSS border-left-color property

Example

Set the left border color:

p

{

border-style:

solid

;

border-left-color:

#ff0000

}

Try it »


Property definition and usage

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

Note Always declare the border-style property before the border-color property. An element must have a border before you can change its color.

Default value: not specified
Inherited: no
Version: CSS1
JavaScript syntax: object object.style.borderLeftColor="blue"

Browser support

The numbers in the table indicate the first browser version that supports this property.

property
border-left-color 1.0 4.0 1.0 3.5 1.0

Attribute values

Value Description
color Specifies the left border color. SeeCSS color valuesfor a complete list of color values.
transparent Specifies that the border color should be transparent. This is the default
inherit Specifies that the border color should be inherited from the parent element

Related Articles

CSS Tutorial: CSS Border

CSS Reference Manual: border-left property