outline-style
Sets the style of the outline (like 'solid', 'dashed', or 'dotted'). It works exactly like 'border-style'.
Quick example
.debug-element {
/* Draws a dashed outline for debugging without shifting the layout */
outline-style: dashed;
outline-width: 1px;
} Quick facts
Initial value
noneInherited
No
Applies to
all elements
Animation type
byComputedValueType
Values
auto outline-style Browser Support
Widely available Since 2017 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.
Safe to use without fallbacks.
1+
1.5+
1.2+
12+