Name
border-top-color
Values:
<color> | transparent
| inherit
Initial value:
The value of color
for the element.
Applies to:
All elements.
Inherited:
No.
Computed value:
If no value is specified, use the computed value of the property color
for the same element; otherwise, as specified.
Description:
This property sets the color for the visible portions of the top border of an element. Only a solid color can be defined, and the border’s style must be something other than none
or hidden
for any visible border to appear.
Examples:
ul {border-top-color: black;} h1 {border-top-color: gray;}
Supported by:
Firefox, Internet Explorer, Opera, Safari.
Get CSS Pocket Reference, 3rd Edition 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.