CSS Property border-bottom-color

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


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


An example showing how to use border-bottom-color CSS property.

h2 {<!--from www .j  av  a 2  s.c o  m-->
 border-bottom-color: black;
  <h2>This is the title</h2>

Click to view the demo