From W3C Wiki
< CSS‎ | Properties
Revision as of 17:59, 16 June 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The outline-width property sets the width of outline of a box.


Values [[ thin | medium | thick] | <length>] | inherit
Initial value medium
Applies to all elements
Inherited No


  • thin
    A thin border.

  • medium
    A medium border.

  • thick
    A thick border.

  • <length>

  • inherit
    Takes the same specified value as the property for the element's parent.


Example A


 h1 {
   outline-width: 1px;
   outline-style: solid;


    <h1>CSS outline property example</h1>

Csslist2 outline.png

CSS Reference

The CSS specification defines the outline-width property in 18.4 Dynamic outlines.