YouTip LogoYouTip

Prop Style Borderleftstyle

# Style borderLeftStyle Property [![Image 8: Style Object Reference Manual](#) Style Object](#) * * * ## Definition and Usage The borderLeftStyle property sets or returns the style of an element's left border. ## Syntax Set the borderLeftStyle property: Object.style.borderLeftStyle="_value_" Return the borderLeftStyle property: Object.style.borderLeftStyle | Value | Description | | :--- | :--- | | none | Default. Defines no border. | | hidden | Same as "none", except for table elements. For tables, hidden is used to resolve border conflicts. | | dotted | Defines a dotted border. | | dashed | Defines a dashed border. | | solid | Defines a solid border. | | double | Defines a double border. The width of the double line is equal to the value of border-width. | | groove | Defines a 3D grooved border. The effect depends on the value of border-color. | | ridge | Defines a 3D ridged border. The effect depends on the value of border-color. | | inset | Defines a 3D inset border. The effect depends on the value of border-color. | | outset | Defines a 3D outset border. The effect depends on the value of border-color. | | inherit | The left border style 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 borderLeftStyle 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 style of the left border: #ex1 { border: 1px solid #FF0000; } function displayResult() { document.getElementById("ex1").style.borderLeftStyle="dotted"; }
This is some text.

[Try it Yourself Β»](#) * * Style Object](#)
← Prop Style ListstyletypeProp Style Borderleftcolor β†’