CSS border-width

The CSS border-width property is CSS shorthand for setting the width on all borders of an element.
You can supply from one to four values. Each value specifies the style for each side of the element. For example, if four values are provide, they will apply to the top, right, bottom and left borders - in that order. Supplying one value applies the width to all four sides.

Syntax: border-width: <border-width1>, <border-width2> ...
Possible Values:
  • thin
  • medium
  • thick
  • length (i.e. 1px)
  • inherit
Initial Value: See individual properties
Applies to: All elements.
Inherited: No
Media: Visual
Example: div.border-width {border-width:thin medium thick 30px}
Try it yourself!