CSS Property border-bottom-color








border-bottom-color sets the color for the bottom border.

Summary

ItemValue
Initial value The value of color for the element.
Inherited >No.
Version CSS1
JavaScript syntax object.style.borderBottomColor="blue"
Applies to All elements.

CSS Syntax

border-bottom-color: color | transparent | inherit 




Property Values

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

Browser compatibility

border-bottom-color Yes Yes Yes Yes Yes

Example

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>

Click to view the demo