CSS Border-Width Property

CSS 1

CSS 2

CSS 3

Yes Yes Yes

Description

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

Syntax

border-width: [border-width1] [boreder-width2] ...

Possible values

  • thin
  • medium
  • thick
  • length
  • inherit

Initial Value

See individual properties

Applies To

All elements

Inherited

No

Media

Visual

Example

H2 {border-width: 3px;}

H2 {border-width: thin;}


View All CSS Properties