The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's Style Sheets Reference

| Index | Current Category: Borders |
| Previous Style: border-top | Next Style: border-top-style |


border-top-color

Specifies the top border color of the element's box.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 4.0 and later Not supported

See Also:

border-color, border-bottom-color, border-left-color, border-right-color

Possible Values:

[color]
The color of the border.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later 4.0 and later Not supported

Notes:

transparent
Creates a transparent border.

Support:

W3C StandardInternet ExplorerNetscape Navigator
CSS2 and later Not supported Not supported

Notes:
  • Transparent means that you can see any elements or colors that lie "underneath" the border.

Example:
<P STYLE="border-top-color: SeaGreen; border-top-style: solid">
SeaGreen top border
</DIV>
How It Looks:

SeaGreen top border


| Index | Current Category: Borders |
| Previous Style: border-top | Next Style: border-top-style |