HTML DOM borderBottom Property
Complete Style Object Reference
Definition and Usage
The borderBottom property sets all properties for the bottom border in one
declaration.
Syntax
Object.style.borderBottom=borderWidth borderStyle borderColor
|
Parameter |
Description |
Values |
borderWidth |
Sets the width of the border |
thin
medium
thick
length |
borderStyle |
Sets the style of the border |
none
hidden
dotted
dashed
solid
double
groove
ridge
inset
outset |
borderColor |
Sets the color of the border |
color-name
color-rgb
color-hex
transparent |
Example
The following example changes the bottom border:
<html>
<head>
<style type="text/css">
p {border: thin dotted #FF0000}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.borderBottom="thick solid blue";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorder()"
value="Change bottom paragraph border" />
<p id="p1">This is a paragraph with a border</p>
</body>
</html>
|
Try-It-Yourself Demos
borderBottom - Change the bottom border of an element
Complete Style Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|