CSS/Properties/outline-width

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

outline-width

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

Description

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


Values

  • 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

Example A

[style.css]

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

[index.html]

  <body>
    <h1>CSS outline property example</h1>
  </body>

Csslist2 outline.png

CSS Reference

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