The border-color
property is used to set the color of the four borders.
The color can be set by:
Note: If border-color
is not set, it inherits the color of the element.
Demonstration of the different border colors:
The border-color
property can have from one to four values (for the top border, right border, bottom border, and the left border).
The color of the border can also be specified using a hexadecimal value (HEX):
Or by using RGB values:
You can also use HSL values: