border-color

The border-color property is a shorthand property for setting border-top-color, border-right-color, border-bottom-color, and border-left-color.

Syntax

border-color: [ <color> | transparent ]{1,4} | inherit
Initial: value of the color property
Applies To: all elements
Inherited: no
Percentages: NA
Media: visual

Values

border-color: value

DOM

object.style.borderColor = "border-top-color border-right-color border-bottom-color border-left-color";

Example | color

Example | transparent

Example | DOM

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification