border-bottom-width, border-left-width, border-right-width, border-top-width | NN 4 IE 4 CSS 1 |
Inherited: No | |
Each attribute sets the width of a single border edge of an element. Note that Navigator 4's initial value is zero, which means that you must set the width for all border attribute settings if you expect to see the border in that browser. See also the border-width attribute for setting the width of multiple edges in one statement. |
|
CSS Syntax | |
border-bottom-width: thin | medium | thick | length border-left-width: thin | medium | thick | length border-right-width: thin | medium | thick | length border-top-width: thin | medium | thick | length |
|
Value | |
Three constantsthin | medium | thickallow the browser to define how many pixels are used to show the border. For more precision, you can also assign a length value (see the discussion of length values at the beginning of this chapter). |
|
Initial Value | |
medium (NN 6, IE); 0 (NN 4). |
|
Example | |
h2 {border-bottom-width: 2px} div {border-left-width: thin} p.special {border-right-width: 0.5em} |
|
Applies To | |
All elements, but only block and replaced elements in IE 4 and 5 for Windows. |
|
Object Model Reference | |
[window.]document.getElementById("elementID").style.borderBottomWidth [window.]document.getElementById("elementID").style.borderLeftWidth [window.]document.getElementById("elementID").style.borderRightWidth [window.]document.getElementById("elementID").style.borderTopWidth |