outline-width

The outline-width CSS property sets the width of an element's outline.

Syntax

CSS

outline-width: value;

JS

object.style.outlineWidth = "value";

Values

<'outline-width'> = <line-width>
<line-width> = <length [0,∞]> | thin | medium | thick
<length>

Specifies the length using a number followed by a unit of measurement.

thin

A thin line.

medium

A medium line.

thick

A thick line.

Initial

medium

Examples

length

medium

thick

thin

JS

Internal

outline

outline-color

outline-style

External

World Wide Web Consortium (W3C)

Home Menu