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. |
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 |
border-bottom-color |
Yes | Yes | Yes | Yes | Yes |
An example showing how to use border-bottom-color CSS property.
<!DOCTYPE HTML>
<html>
<head>
<style>
h2 {<!--from www .j av a 2 s.c o m-->
border-bottom-color: black;
}
</style>
</head>
<body>
<h2>This is the title</h2>
</body>
</html>