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

HTML DOM Style borderLeftColor property

Style borderLeftColor property

Style Object Reference The Style object


Definition and Usage

The borderLeftColor property sets or returns the color of the left border of an element.

Syntax

Set the borderLeftColor property:

Object.style.borderLeftColor="

color

|transparent|inherit"

Return the borderLeftColor property:

Object.style.borderLeftColor

**Tip:** The borderLeftColor property has no default value.

Value Description
color Specifies the color of the left border. In A CSS color value the CSS color reference you can find a complete list of possible color values.
transparent The color of the left border is transparent (underlying content will show through).
inherit The color of the left border is inherited from the parent element.

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the borderLeftColor property.

**Note:** IE7 and earlier versions do not support the "inherit" value. IE8 supports "inherit" only if a !DOCTYPE is specified. IE9 supports "inherit".


Example

Example

Change the color of the left border:

Runoob Tutorial(runoob.com)
This is some text.

Try it »


Style Object Reference The Style object