CSS outlineoffset Property (original) (raw)

CSS outline-offset Property

Last Updated : 28 Aug, 2024

The CSS outline-offset Property sets the amount of space between an outline and the edge or border of an element. An outline is a line drawn around elements outside the border edge. The space between the element and its outline is transparent. Also, the outline may be non-rectangular. The default value is 0.

**Syntax:

outline-offset: length|initial|inherit;

**Property values:

**Syntax:

outline-offset: 5px;

**Example 1:

html `

outline-offset Property
GeeksForGeeks

`

**Output:

**Example 2:

html `

outline-offset Property
GeeksForGeeks

`

**syntax:

outline-offset: initial;

**Example 3:

html `

outline-offset Property
GeeksForGeeks

`

**syntax:

outline-offset: inherit;

**Supported Browsers: The browsers supported by _outline-offset Property are listed below: