CSS Border-Top-Color Property

CSS 1

CSS 2

CSS 3

No Yes Yes

Description

Specifies the color of the top border of an element.

Syntax

border-top-color: [value];

Possible values

  • [color]
  • transparent
  • inherit

Initial Value

Uses the 'color' property

Applies To

All elements

Inherited

Yes

Media

Visual

Example

H2 {border-top-color: #f0f0f0;}


View All CSS Properties