border-top-color

The border-top-color CSS property sets the color of an element's top border. It can also be set with the shorthand CSS properties border-color or border-top.

Example

Initial value currentcolor
Applies to all elements. It also applies to ::first-letter.

Syntax

  
border-top-color: red;
  

Values

The color of the top border.

Browser support

border-top-color112143.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×