B.16. border-color
The border-color property sets the color of the border surrounding the selected element(s).
The colors for each side may be set individually using the border-bottom-color, border-left-color, border-right-color, and border-top-color properties.
Inherited: No
B.16.1. Value
You can specify from one to four different color values (see Table B-2) to specify different colors for each side of the element, as shown in Table B-2. Note that Netscape 4 supports only a single border color value.
Number of values | Effect on borders |
---|---|
1 | All four borders receive the value specified. |
2 | Top and bottom (horizontal) borders receive the first value, left and right (vertical) borders receive ... |
Get HTML Utopia: Designing Without Tables Using CSS 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.