Set the width of the element's border. Note: You must define a style if you want the border to display. Using border-width by itself will not draw a border.

Value Description
size px - size in terms of pixels
em - size in terms of the current font size
in - size in terms of inches
cm - size in terms of centimeters
width-key-term Define the border width with key terms. Available terms: thin, medium, and thick.


p { border-style: solid;
border-width: 3px; }


This element has a border-width defined.

Compatibility Issues:

IE 5.0 - Border width can be buggy.