property
outline — CSS reference
Shorthand for the outline color, style and width. It does not reset outline-offset. Outlines paint without reserving layout space, and may follow nonrectangular inline fragments. Preserve a visible keyboard focus indicator; do not remove outlines without a suitable replacement.
Formal Syntax & Structure
css syntaxcss
<'outline-color'> || <'outline-style'> || <'outline-width'>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-offset:4px;outline:3px solid blue}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>