CSS Reference Property
border-bottom-color 6yh6o
The border-bottom-color property is used to set the color of the bottom border of an element. 4l2y6y
Official Syntax 2f2j3w
- Syntax:
border-bottom-color: <color>
- Initial: currentColor
- Applies To: all elements
- Animatable: yes, as a
<color>
Values 445h6m
- <color>
-
See the
<color>
property entry for a list of possible values.
Notes 6p2z1x
The border-bottom-color
property can also inherit the value of the element’s parent’s bottom border color using the keyword inherit
.
Examples 5w70f
The following are all valid border-bottom-color
values set on an element. The element’s border style and border width are also set using the border-bottom-width
respectively.
.element { border-bottom-style: dotted; border-bottom-width: 10px; border-bottom-color: red; /* or */ border-bottom-color: #44aacf; /* or */ border-bottom-color: rgba(255,0,10,.5); }
Live Demo 603y6q
See the live demo in action and play with the values:
View this demo on the Codrops PlaygroundBrowser 51c73
The property works in all major browsers: Chrome, Firefox, Safari, Opera, IE, and on Android and iOS.