By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

CSS Border-top-color Property

Reference on the CSS Border-top-color property, used to control the color of the top border of an element.

Edited: 2015-12-07 13:08

The border-top-color of css controls the color of the top-border.

Possible Values

Read the Colors entry in the reference to understand its many possible values.

CSS Border-top-color Examples

div {
  border-top-color: black;

You can try the above CSS code in the Editor.

<!DOCTYPE html>

    <title>How to use border-top-color</title>
    <style type="text/css">
div {
  border-top-color: black;




Brugbart Vision!

Inherited? NO!