property

outline-style — CSS reference

Determines the outline stroke style; initial none, not inherited. Auto permits the browser to choose a platform-appropriate focus treatment. Hidden is not an outline style. A width alone is insufficient if the outline style remains none.

Formal Syntax & Structure

css syntaxcss
auto | <line-style> (excluding hidden)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS visual effects lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative; margin:20px;width:80px;height:60px;background:rgb(255,0,0);box-sizing:content-box} #a{outline-width:3px;outline-color:blue;outline-style:dashed}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>
CSS Reference