Menu
The outline-offset
property is used to add space between the edge or border of an element and the outline around it.
Space that is added with the outline-offset
property is transparent.
div.ex {
outline: 2px solid #000;
outline-offset: 10px;
}
length
Designates the distance in length units (px, em, pt, etc.) that the outline is offset from the border edge of the element. Default value is 0.
initial
Sets the property to its default value.
inherit
Inherits this property’s value from its parent item.
Have a code example of outline-offset
? Submit a codepen.io demo and we'll showcase it here ↴