Example

A simple border-top-color property example:

Laboratory

description & Usage

We determine the color of the upper border with the border-top-color property.

Informations

# Description
Default Value The current color of the element
Inherited no
Animatable yes
Version CSS1
JavaScript syntax object.style.borderTopColor="blue"

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
border-top-color

Syntax

Values

Values Description
color Determines the color of the top border.
transparent Makes the border color transparent.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.