CSS | outline-offset Property
The CSS outline-offset Property sets the amount of space between an outline and the edge or border of an element. An outline is a line drawn around elements outside the border edge. The space between the element and its outline is transparent. Also, the outline may be non-rectangular. The default value is 0.
- length: It is the distance or space between the outline and the border i.e it is the distance the outline is outset from the border edge. It can also have negative value. If length is negative then the outline is placed inside the element. If length is 0 then there is no space between the outline and the element.
- initial: It sets the outline-offset property to its default value.
- inherit: The element inherits the outline-offset property from its parent element.
Supported Browsers: The browsers supported by outline-offset Property are listed below:
- Google Chrome 1.0 and above
- Edge 15.0 and above
- Internet Explorer not supported
- Opera 9.5 and above
- Firefox 1.5 and above
- Apple Safari 1.2 and above