border-top-color :
color
Compatibility: IE4+ N6
Version: Level 2 Inherited: No
The border-top-color property allows you to set the color of the
top border.
There are similar properties that allow you to set the color for the bottom, left, and right, as well as all four borders.
color
The color value can be the keyword color name, the hex
six-digit number (#FFFFFF), or the RGB three-digit value (255,255,255).
There are sixteen standard colors in HTML:
| aqua |
navy |
| black |
olive |
| blue |
purple |
| fuchsia |
red |
| gray |
silver |
| green |
teal |
| lime |
white |
| maroon |
yellow |
Code:
table { border-top-color: RGB(201, 94, 177); }
body { border-top-color: #E95A2B; }
textarea { border-top-color: silver; }
or
p.bordr
{
border-bottom-color: red; border-bottom-style: double; border-bottom-width: 15px;
border-left-color: yellow; border-left-style: double; border-left-width: 15px;
border-right-color: blue; border-right-style: double; border-right-width: 15px;
border-top-color: green; border-top-style: double; border-top-width: 15px;
}
...
<p class="bordr">
<b>DevGuru is great!</b>
</p>
Output:
DevGuru is great!
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
|