YouTip LogoYouTip

Prop Style Outlineoffset

# Style outlineOffset Property [![Image 8: Style Object Reference](#) Style Object](#) ## Example Set the outline 15 pixels outside the border edge: document.getElementById("myDIV").style.outlineOffset="15px"; [Try it yourself Β»](#) * * * ## Definition and Usage The outlineOffset property offsets an outline, and draws it beyond the border edge. The outline differs from a border in two ways: * An outline does not take up space * An outline may be non-rectangular * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The outlineOffset property is supported in all major browsers, except Internet Explorer. * * * ## Syntax Get the outlineOffset property: _object_.style.outlineOffset Set the outlineOffset property: _object_.style.outlineOffset="_length_|initial|inherit" ## Property Values | Value | Description | | --- | --- | | _length_ | The distance between the outline and 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_. | ## Technical Details | Default value: | 0 | | --- | | Return value: | A String, representing the outline-offset property of an element. | | CSS Version | CSS3 | * * * ## Related Articles CSS Reference: (#) * * Style Object](#)
← Prop Style OverflowxProp Style Order β†’