Set the width of the element's top 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-top-style: solid;
border-top-width: 3px; }


This element has a border-top-width defined.

Compatibility Issues:

IE 5.0 - Border width can be buggy.