outline-width

Description

outline-width sets the width for the overall outline of an element.

ItemValue
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
mediumdefault 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>

Click to view the demo

The code above generates the following result.

outline-width




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference