HTML DOM borderBottomStyle Property
Complete Style Object Reference
Definition and Usage
The borderBottomStyle property sets the style of the bottom border.
Syntax
Object.style.borderBottomStyle=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 bottom border:
<html>
<head>
<style type="text/css">
p
{
border: thick solid #FF0000
}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.borderBottomStyle="dotted";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorder()"
value="Change bottom border" />
<p id="p1">This is a paragraph</p>
</body>
</html>
|
Try-It-Yourself Demos
borderBottomStyle - Change the style of the bottom border
Complete Style Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|