Easy Tutorial
❮ Prop Style Borderbottom Event Onhashchange ❯

Style outlineOffset Property

Style Object

Example

Specify an outline 15 pixels outside the border edge:


Definition and Usage

The outlineOffset property offsets the outline and draws it beyond the border edge.

There are two differences between outlines and borders:


Browser Support

All major browsers support the outlineOffset property except Internet Explorer.


Syntax

Return the outlineOffset property:

Set the outlineOffset property:

Property Values

Value Description
length The distance of the outline from 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: String, representing the outline-offset property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: outline-offset Property


Style Object

❮ Prop Style Borderbottom Event Onhashchange ❯