CSS border-top-color Property


The border-top-color property allows you to fill the top border of the container with a different color  than the parent border-color.

Syntax

Example

Preview

Property Values

Value Description
color The color of the top border is specified here. For a complete list of color values, see CSS Color Values. The element's current color is the default color.
transparent The border color should be transparent, as specified.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
border-top-color 1.0 1.0 1.0 4.0 3.5