You are here:    Home » CSS Tutor » CSS Reference

The Web Design Group

Border Color


Syntax: border-color: <value>
Possible Values: <color>{1,4}
Initial Value: The value of the color property
Applies to: All elements
Inherited: No

The border-color property sets the color of an element's border. Between one and four color values are specified. If four values are given, they apply to top, right, bottom, and left border color, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.

One may also use the border shorthand property.


Maintained by John Pozadzides and Liam Quinn


Web Design Group ~ CSS Index ~ CSS Structure ~ CSS Properties

Copyright © 1997 John Pozadzides and Liam Quinn. All rights reserved.