HTML DOM borderLeftStyle Property
Complete Style Object Reference
Definition and Usage
The borderLeftStyle property sets the style of the left border.
Syntax
Object.style.borderLeftStyle=style
|
Possible Values
Value |
Description |
none |
Defines no border |
hidden |
Same as "none", except in border conflict
resolution for table elements |
dotted |
Defines a dotted border |
dashed |
Defines a dashed border |
solid |
Defines a solid border |
double |
Defines two borders. The width of the two borders are
the same as the border-width value |
groove |
Defines a 3D grooved border. The effect depends on the
border-color value |
ridge |
Defines a 3D ridged border. The effect depends on the
border-color value |
inset |
Defines a 3D inset border. The effect depends on the
border-color value |
outset |
Defines a 3D outset border. The effect depends on the
border-color value |
Example
The following example changes the style of the left border:
<html>
<head>
<style type="text/css">
p
{
border: thick solid #FF0000;
}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.borderLeftStyle="dotted";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorder()"
value="Change left border" />
<p id="p1">This is a paragraph</p>
</body>
</html>
|
Try-It-Yourself Demos
borderLeftStyle - Change the style of the left border
Complete Style Object Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|