function
drop-shadow() — CSS reference
Makes a shadow from the alpha silhouette of the input, rather than the border box. Two lengths specify offsets; the optional third specifies blur standard deviation. Spread and inset are not allowed. The function can follow other filters in a chain.
Formal Syntax & Structure
css syntaxcss
drop-shadow(<color>? && <length>{2,3}) (representative)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{filter:drop-shadow(8px 0 0 blue)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative effect example.</p></body></html>