CSS Property: border-color
[this page | pdf | back links]
The CSS (CSS1) border-color property sets the colour
of an element’s four borders. The individual border colours can be set
separately using border-bottom-color,
border-left-color,
border-right-color
and border-top-color.
As with some other aggregate edge properties, up to four parameter values can
be supplied (and if more than one is supplied then the properties are applied
to individual borders as described here).
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
color
|
A CSS colour
|
|
transparent
|
(default value).
Transparent
|
|
Default Value:
|
The current CSS colour of the element
|
|
JavaScript syntax:
|
e.g. object.style.borderColor="red blue"
|
|
Inherited:
|
No
|
|
Animatable:
|
Yes
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties