CSS · Properties — CSS Backgrounds and Borders

border-color

The CSS border-color property. Initial value: border-top-color,border-right-color,border-bottom-color,border-left-color. Not inherited.

Syntax
border-color: <color>{1,4}

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: border-top-color,border-right-color,border-bottom-color,border-left-color.

More in this group

background background-attachment background-origin background-position-x background-position-y border-bottom border-bottom-color border-bottom-left-radius

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course