Menu Home

border-color

osbo.com | CSS | Properties | border-color

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

Syntax

CSS

border-color: value;

JS

object.style.borderColor = "value";

Values

<'border-color'> = <color>{1,4}
<color>

Specifies the color using a keyword or a numerical specification.

Initial

currentColor

Examples

color

JS

Internal

border

border-bottom

border-bottom-color

border-bottom-style

border-bottom-width

border-left

border-left-color

border-left-style

border-left-width

border-right

border-right-color

border-right-style

border-right-width

border-style

border-top

border-top-color

border-top-style

border-top-width

border-width

External

World Wide Web Consortium (W3C)