Border-Top-Color

Set the color of the top border.

Syntax
      border-top-color: color | transparent | inherit ;

Color - A color name or hex code
transparent - Make the element see-through
inherit - Inherit from a parent element.

The border-style property must be set for the border-width or border-color properties to have any effect.
inherit - Inherit from the parent element.

Examples:
h1 { border-top-color: #ff0000; }
.ss64class { border-top-color: #93622f; }

#SS64id { border-top-color: #2b5e55; }

Try it:

This is a sample of text with a CSS border. Each of the 4 borders can be styled separately with CSS.

(CSS 1) Browser Support: All major browsers.

“Growing up, I never imagined a girl from a border town could one day become a governor” ~ Susana Martinez

Related:

border-bottom-color - Color of the bottom border.
border-left-color - Color of the left border.
border-right-color - Color of the right border.
border-top-width - Width of the top border.
border-top-style - Style of the top border.
border-style - Style of the four borders.
color - Text color.


© Copyright SS64.com 1999-2014
Some rights reserved