outline-offset property
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Specifies the length that the outline is offset from the border edge.
Syntax
outline-offset:
<length>
Property values
- length
-
The length between the outline and the border edge
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | 0 |
Examples
button {
outline-offset: 5px;
}
Show: