border-color
A shorthand property that sets the color for all four borders of an element. If you provide four values, it sets them in 'top right bottom left' order.
It is documented as part of the CSS Backgrounds and Borders specification.
Syntax
/* Usage Example */
.multi-color-box {
border-style: solid;
border-width: 4px;
/* top | right | bottom | left */
border-color: red blue green yellow;
}
/* Global values */
border-color: inherit;
border-color: initial;
border-color: revert;
border-color: revert-layer;
border-color: unset;
border-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+