Name
border-bottom-color, border-left-color, border-right-color, border-top-color — NN n/a IE 4 CSS 2
Synopsis
Inherited: No
Each attribute sets the color of a single border edge of an element.
This power is easy to abuse by mixing colors that don’t belong
together. See also the border-color attribute for
setting the color of multiple edges in one statement.
CSS Syntax
border-bottom-color:colorborder-left-color:colorborder-right-color:colorborder-top-color:color
Value
For details on the color value, see the
section about colors at the beginning of this chapter.
Initial Value
None.
Example
P {border-bottom-color: gray}
DIV {border-left-color: #33c088}
P.special {border-right-color: rgb(150, 75, 0)}
H3 {border-top-color: rgb(100%, 50%, 21%)}Applies To
All elements (CSS); block and replaced elements (IE).
Object Model Reference
- IE
[window.]document.all.elementID.style.borderBottomColor[window.]document.all.elementID.style.borderLeftColor[window.]document.all.elementID.style.borderRightColor[window.]document.all.elementID.style.borderTopColor
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access