CSS border-bottom-color Property

CSS border-bottom-color property sets the bottom border color of an element.

Usages

The following table outline the usages and version history of this property.

Default value: The value of the color property
Applies to: All elements
Inherited: No
Version: CSS1
JavaScript Syntax: object.style.borderBottomColor = "#000000"

Syntax

Here is a syntax for the CSS border-bottom-color property

border-bottom-color: color | transparent | initial | inherit;

Property Values

The following table describes the values of this property.

Value Description
color Default color black. Specifies the border bottom color
Value Description
color name Name of the border bottom color (eg, red, pink, blue)
#xxxxxx Hexadecimal representation of the border bottom color
rgb(x, x, x) RGB representation of the border bottom color
rgba(x, x, x, x) RGBA representation of the border bottom color
hsl(x, x, x) HSL representation of the border bottom color
hsla(x, x, x, x) HSLA representation of the border bottom color
transparent Specifies the transparent border bottom color
initial Sets default value of this property
inherit Inherits this property from its parent element

Examples

The example below shows to sets border bottom color.

.border-1 {
  border-bottom-color: pink;
}
.border-2 {
  border-bottom-color: #888888;
}
.border-3 {
  border-bottom-color: rgb(255, 167, 0, 0.9);
}
.border-4 {
  border-bottom-color: hsl(45, 70%, 50%, 0.9);
}

Run it...   »

Browser Compatibility

  • Google Chrome 1+
  • Mozilla Firefox 1+
  • Internet Explorer 4+
  • Opera 3.5+
  • Safari 1+

Note: Here details of browser compatibility with version number may be this is bug and not supported. But recommended to always use latest Web browser.