CSS Outline-Offset Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

By default, the outline is drawn starting just outside the border edge. However, it is possible to offset the outline and draw it beyond the border edge.

Syntax

outline-offset: [value];

Possible values

  • [length]
  • inherit

Initial Value

0

Applies To

All elements

Inherited

No

Media

Visual

Example

.class {
  outline-offset: 2px ;
}


View All CSS Properties