css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

CSS BORDER-TOP-COLOR

This property controls the color of the top border of an element’s rendering box. If no border-color is specified for an element’s border, the value of the ‘color’ property is used instead.

 

Example

div { border-top-color: green }

<div style=”border-top-color: #008000″>this is green</div>

 

Possible Values

Value Description
inherit Explicitly sets the value of this property to that of the parent.
transparent The border is transparent (with any accompanying ‘border-width’ thickness) – eg: elements below it shine through.
[color] Sets the border to the indicated color value.

 

Leave a Reply

Pages

Sponsors


CSS3.com



Please help CSS3.com stay alive and running

Bad Behavior has blocked 2277 access attempts in the last 7 days.