outline-width

Sets the thickness of the outline around an element. It works exactly like 'border-width'.

It is documented as part of the CSS Basic User Interface specification.

/* Usage Example */
input:focus {
  /* Makes the focus outline thicker */
  outline-width: 3px;
}

/* Global values */
outline-width: inherit;
outline-width: initial;
outline-width: revert;
outline-width: revert-layer;
outline-width: unset;
Widely available Since 2017 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

1+
1.5+
1.2+
12+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC