ExampleSpecify an outline 15px outside the border edge:
Try it yourself » |
The outline-offset property is supported in all major browsers, except Internet Explorer.
The outline-offset property offsets an outline, and draws it beyond the border edge.
Outlines differ from borders in two ways:
Default value: | 0 |
---|---|
Inherited: | no |
Version: | CSS3 |
JavaScript syntax: | object.style.outlineOffset="15px" |
outline-offset: length|inherit: |
Value | Description |
---|---|
length | The distance the outline is outset from the border edge |
inherit | Specifies that the value of the outline-offset property should be inherited from the parent element |