CSSborder-bottom-color Property
More "Try it Yourself" examples below.
Definition and Usage
Theborder-bottom-color property sets the color of an element's bottom border.
Note: Always declare theborder-style or theborder-bottom-style property before theborder-bottom-colorproperty. An element must have a border before you can change the color.
| Default value: | The current color of the element |
|---|---|
| Inherited: | no |
| Animatable: | yes.Read aboutanimatableTry it |
| Version: | CSS1 |
| JavaScript syntax: | object.style.borderBottomColor="blue"Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| border-bottom-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
Property Values
| Value | Description | Demo |
|---|---|---|
| color | Specifies the color of the bottom border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | Demo ❯ |
| transparent | Specifies that the border color should be transparent | Demo ❯ |
| initial | Sets this property to its default value.Read aboutinitial | |
| inherit | Inherits this property from its parent element.Read aboutinherit |
More Examples
Example
Set a color for the bottom border with a HEX value:
Example
Set a color for the bottom border with an RGB value:
Example
Set a color for the bottom border with an RGBA value:
Example
Set a color for the bottom border with a HSL value:
Example
Set a color for the bottom border with a HSLA value:
Related Pages
CSS tutorial:CSS Border
CSS reference:border-bottom property
HTML DOM reference:borderBottomColor property

