Javascript examples for CSS Style Property:borderLeftStyle
The borderLeftStyle property sets or gets the left border's style.
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except for table elements |
dotted | a dotted border |
dashed | a dashed border |
solid | a solid border |
double | double line borders. |
groove | a 3D grooved border. |
ridge | a 3D ridged border. |
inset | a 3D inset border. |
outset | a 3D outset border. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |
Item | Value |
---|---|
Default Value: | none |
Return Value: | A String, representing the style of an element's left border |
CSS Version | CSS1 |
Get left border of a <div> element:
<!DOCTYPE html> <html> <body> <div id="myDiv" style="border-left:double;">This is a div.</div> <br> <button type="button" onclick="myFunction()">Return left border style</button> <script> function myFunction() {//w w w .j a v a2s . c o m console.log(document.getElementById("myDiv").style.borderLeftStyle); } </script> </body> </html>