outline-offset

The outline-offset CSS property sets the amount of space between an outline and the edge or border of an element.

Example

Initial value 0
Applies to all elements

Syntax

  
outline-offset: 2em;
  

Values

The width of the space between the element and its outline. A negative value places the outline inside the element. A value of 0 places the outline so that there is no space between it and the element.

Browser support

outline-offset1151.59.51.2

We use cookies to improve your experience. Learn more in our Privacy policy.

×