CSS Border-Top-Style Property

CSS 1

CSS 2

CSS 3

No Yes Yes

Description

Specifies the style of the top border of an element.

Syntax

border-top-style: [border-style];

Possible values

  • none
  • hidden
  • dotted
  • dashed
  • solid
  • double
  • groove
  • ridge
  • inset
  • outset
  • inherit

Initial Value

None

Applies To

All elements

Inherited

Yes

Media

Visual

Example

H2 {border-top-style: dotted;}


View All CSS Properties