O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

outline-width

Values:

thin | medium | thick | <length>

Initial value:

medium

Applies to:

All elements

Inherited:

No

Computed value:

Absolute length; 0 if the style of the border is none or hidden

Description:

Defines the width for the overall outline of an element. The width will take effect only for a given outline if the value of outline-style is something other than none. If the style is none, the width is effectively reset to 0. Negative length values are not permitted.

Examples:

*[href]:focus {outline-width: 2px;}
form:focus {outline-width: 0.25em;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required