The outline-width property

The outline-width property specifies an outline width - a border that does not take up space. The property value is any size units, except percentages, or the thin (border of 2 pixels), medium (border of 4 pixels) or thick (border of 6 pixels) keywords. Default value: medium.

Syntax

cssselector {
  outline-width: value;
}

Example

Let's give the element an outline:

html<div id="elem"></div>
css#elem {
  outline-width: 1px;
  outline-style: solid;
  outline-color: black;
  width: 300px;
  height: 100px;
}

Результат:

See also