border-top-color
Sets the color of the physical top border. Often used to create distinct top-bar accents on cards or containers.
Quick example
.card-header {
/* Adds a blue accent to the top edge */
border-top-color: #3b82f6;
border-top-style: solid;
border-top-width: 5px;
} Quick facts
Initial value
currentcolorInherited
No
Applies to
all elements
Animation type
color
border-top-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.
Safe to use without fallbacks.
1+
1+
1+
12+