YouTip LogoYouTip

Prop Style Borderleftcolor

# Style borderLeftColor Property [![Image 8: Style Object Reference Manual](#) 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 **Note:** The borderLeftColor property has no default value. | Value | Description | | :--- | :--- | | _color_ | Specifies the color of the left border. See (#) for a complete list of possible color values. | | transparent | The left border is transparent (the underlying content will show through). | | inherit | The left border color is inherited from the parent element. | * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) All major browsers support the borderLeftColor property. **Note:** IE7 and earlier versions do not support the "inherit" value. IE8 only supports "inherit" if a !DOCTYPE is specified. IE9 supports "inherit". * * * ## Example ## Example Change the color of the left border: #ex1{ border: 1px solid #FF0000; } function displayResult(){ document.getElementById("ex1").style.borderLeftColor="#00FF00"; }
This is some text.

[Try it yourself Β»](#) * * Style Object](#)
← Prop Style BorderleftstyleProp Style Borderleft β†’