border-bottom-color
Sets the color of the bottom border specifically. It's often used to create 'underline' effects on headings or nav links that are stylistically distinct from regular text underlines.
It is documented as part of the CSS Backgrounds and Borders specification.
Syntax
/* Usage Example */
nav a.active {
border-bottom-color: #7c3aed;
border-bottom-style: solid;
border-bottom-width: 3px;
}
/* Syntax */
border-bottom-color: border-top-color;
/* Global values */
border-bottom-color: inherit;
border-bottom-color: initial;
border-bottom-color: revert;
border-bottom-color: revert-layer;
border-bottom-color: unset;
border-bottom-color Browser support
Widely available
Since
2015 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.
1+
1+
1+
12+