css.properties

border-top-color

The border-top-color property sets the color of the top border.

Formal Syntax

border-top-color = <color> | <image-1D> <color> = <color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()>

See specification

JavaScript Access

// Access via element.style element.style.borderTopColor = "currentcolor";

Logical Property Group

This property belongs to the border-color logical property group, which includes:

Browser Support

standard | MDN · Spec

FeatureChromeFirefoxSafariEdge
border-top-color11112
currentColor≤31≤50≤9.1≤15
transparent11112

Related Properties