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.

/* 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;
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC