You are here: Reference > CSS > properties > border-top-color

border-top-color property

Browser support:
Specifies the color of the element's top border.
JavaScript page for this property: borderTopColor. You can find other example(s) there.

Possible values:

 One of the following values: 
color
Color of the border. For the supported color values, see the colors page.
inherit
Takes the value of this property from the computed style of the parent element.
transparent
Default. Underlying content will shine through.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the border-top-color property:
<head>
    <style>
        .example {
            border-top-color: blue;
            border-top-width: 4px;
            border-top-style: solid;
        }
    </style>
</head>
<body>
    <div class="example">Border-top-color: blue</div>
</body>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content