border-bottom-color
Description
border-bottom-color
sets the color for the bottom border.
Item | Value |
---|---|
Initial value | The value of color for the element. |
Inherited | >No. |
Version | CSS1 |
JavaScript syntax | object.style.borderBottomColor="blue" |
Applies to | All elements. |
Syntax and Property Values
border-bottom-color: color | transparent | inherit
The property values are listed in the following table.
Value | Description |
---|---|
color | Set the border color. |
transparent | Set the border color to transparent. Default value |
inherit | Inherit the border color from the parent element |
Example
<!DOCTYPE HTML>
<html>
<head>
<style>
h2 {<!--from ww w. ja v a 2 s.c o m-->
border-bottom-color: black;
}
</style>
</head>
<body>
<h2>This is the title</h2>
</body>
</html>
The code above generates the following result.