outline-width
Description
outline-width
sets the width for the overall outline of an element.
Item | Value |
---|---|
Initial value | medium |
Inherited | No. |
Version | CSS2 |
JavaScript syntax | object.style.outlineWidth="thin" |
Applies to | All elements. |
Syntax and Property Values
outline-width: length | medium | thick | thin | inherit
The property values are listed in the following table.
Value | Description |
---|---|
thin | thin outline |
medium | default value. a medium width outline. |
thick | a thick outline |
length | set the thickness of the outline |
inherit | inherit the width of the outline from the parent element |
Example
<!DOCTYPE html>
<html>
<head>
<style>
p.one{<!--from ww w .j a v a 2 s .c om-->
border:1px solid red;
outline-style:solid;
outline-width:thick;
}
</style>
</head>
<body>
<p class="one">This is some text in a paragraph.</p>
</body>
</html>
The code above generates the following result.