Style outlineOffset Property
Example
Specify an outline 15 pixels outside the border edge:
document.getElementById("myDIV").style.outlineOffset="15px";
Try it »
Definition and Usage
The outlineOffset property offsets the outline and draws it beyond the border edge.
An outline differs from a border in two ways:
- An outline does not take up space
- An outline may be non-rectangular
Browser support

All major browsers except Internet Explorer support the outlineOffset property.
Syntax
Return the outlineOffset property:
object
.style.outlineOffset
Set the outlineOffset property:
object
.style.outlineOffset="
length
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| length | The distance between the outline and the border edge. The default value is 0. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | 0 |
|---|---|
| Return Value: | A string representing the element's outline-offset property. |
| CSS version | CSS3 |
Related Articles
CSS Reference Manual:outline-offset property
The Style object