Example

A simple border-color property example:

Laboratory

description & Usage

We use the Border-color property to determine the color of the top, right, bottom, and left borders.

Informations

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

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
border-color

Syntax

Values

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