Back to CSS1 Reference | CSS1 Properties
Prev border-bottom-width | Next border-left


Property
border-color
Values
<color>
Initial
the value of the 'color' property
Inherited
no

The 'border-color' property sets the color of the four borders. 'border-color' can have from one to four values, and the values are set on the different sides as for 'border-width'.

If no color value is specified, the value of the 'color' property of the element itself will take its place:

      P { 
      color: black; 
      background: white; 
      border: solid;
      }

In the above example, the border will be a solid black line.

Log in or register to write something here or to contact authors.