outline-width | NN n/a IE 5(Mac) CSS 2 |
Inherited: No | |
Controls the thickness of an outline around an element. To prevent surrounding content from rendering under the outline, you should consider adding a margin around the element. |
|
CSS Syntax | |
outline-width: thin | medium | thick | length
|
|
Value | |
Three constantsthin | medium | thickallow the browser to define exactly how many pixels are used to show the outline. For more precision, you can also assign a length value (see the discussion of length values at the beginning of this chapter). One value controls all sides of the outline. |
|
Initial Value | |
medium |
|
Example | |
h1 {outline-style: ridge; outline-width: 5px} div {outline-style: solid; outline-width: 2px} |
|
Applies To | |
All elements. |
|
Object Model Reference | |
[window.]document.getElementById("elementID").style.outlineWidth
|