outline-style

Description

outline-style sets the style for the overall border of an element.

ItemValue
Initial value none
Inherited No.
Version CSS2
JavaScript syntax object.style.outlineStyle="dotted"
Applies to All elements.

Syntax and Property Values


outline-style: dashed | /*from  ww w .  j a v  a2s. c o  m*/
               dotted | 
               double | 
               groove | 
               inset | 
               none | 
               outset |   
               ridge | 
               solid | 
               inherit 

The property values are listed in the following table.

Value Description
none no outline
hidden hidden outline
dotted dotted outline
dashed dashed outline
solid solid outline
double double outliner
groove 3D grooved outline which depends on the outline-color value
ridge 3D ridged outline which depends on the outline-color value
inset 3D inset outline which depends on the outline-color value
outset 3D outset outline which depends on the outline-color value
inherit Inherit the outline style from the parent element

Example


<!DOCTYPE html>
<html>
<head>
<style>
p{<!--from   w  w w.ja va2  s  . c  o m-->
    border:1px solid red;
    outline-style:dotted;
    outline-color:#00ff00;
}
</style>
</head>

<body>
<p>paragraph.</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

outline-style




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference