CSS/Properties/outline-width

From Web Education Community Group
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.