border-width

Previous- border-left-width  |  Next-border-color

Description

The border-width property is used to set the border width of an element by specifying between one and four values, where each value is a keyword or a length.

If four values are given, they apply to top, right, bottom, and left border width, respectively. If one value is given, it applies to all sides. If two or three values are given, the missing values are taken from the opposite side.


Initial Value : not defined

Applies to : all elements

Inherited : no

Possible Values
[ thin | medium | thick | <length> | inherit ]{1,4}

Example(s)
h1 { border-width: thin }                   /* thin thin thin thin */
h1 { border-width: thin thick }             /* thin thick thin thick */
h1 { border-width: thin thick medium }      /* thin thick medium thick */

Previous- border-left-width  |  Next-border-color