CSS Outline Offset

The outline-offset property adds space between an outline and the edge/border of an element. The space between an element and its outline is transparent.

The following example specifies an outline 15px outside the border edge:

Example

Output :

The following example shows that the space between an element and its outline is transparent:

Example

Output :