CSS Border-Style Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

Specifies the border style of an element. Used as a shortcut to determine the entire border style in one rule.

Syntax

border-style: [border-style1] [border-style2] ...

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-style: dotted;}


View All CSS Properties