# 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

`selector { outline-width: value; }`

## Example

Let's give the element an outline:

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

:

## See also

- the `outline-color` property
  that sets an outline color
- the `outline-style` property
  that sets an outline style
- the `outline` property
  that is a shorthand property for outline
- the `outline-offset` property
  that sets an outline offset

← →
↑
en ru