Name

borderBottomColor, borderLeftColor, borderRightColor, borderTopColor — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The color of a single border edge of an element. It is easy to abuse these properties by mixing colors that don’t belong together. See also the borderColor attribute for setting the color for groups of edges in one statement.

Example

document.all.announce.style.borderBottomColor = "red"
document.all.announce.style.borderLeftColor = "#20ff00"
document.all.announce.style.borderRightColor = "rgb(100, 75, 0)"
document.all.announce.style.borderTopColor = "rgb(90%, 0%, 25%)"

Value

For details on color values, see the section about colors at the beginning of this chapter.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.