border-bottom-color

Description

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

ItemValue
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>

Click to view the demo

The code above generates the following result.

border-bottom-color




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference