Move the ouline border 15 pixels outside the border edge:
The outlineOffset property offsets an outline, and draws it beyond the border edge.
Outlines differ from borders in two ways:
The outlineOffset property is supported in all major browsers, except Internet Explorer.
Return the outlineOffset property:
Set the outlineOffset property:
Value | Description |
---|---|
length | The distance the outline is outset from the border edge. Default value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | 0 |
---|---|
Return Value: | A String, representing the outline-offset property of an element |
CSS Version | CSS3 |
CSS reference: outline-offset property