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 of the border. For the supported color values, see the colors page.
Takes the value of this property from the computed style of the parent element.
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:
        .example {
            border-top-color: blue;
            border-top-width: 4px;
            border-top-style: solid;
    <div class="example">Border-top-color: blue</div>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content