The dropshadow filter add the drop shadow effect to the element.
#example {
filter: dropshadow(color=red, offx=10, offy=10, positive=true);
}
Attribute |
Value |
Explanation |
color |
color code or name |
the color of the drop shadow |
offx |
number of pixels |
the horizontal movement of the drop shadow
positive value = right
negative value = left
|
offy |
number of pixels |
the vertical movement of the drop shadow
positive value = lowers
negative value = raises
|
positive |
0 (false) or 1 (true) |
0 (false) = creates shadow for transparent pixel
1 (true) = creates shadow for non-transparent pixel
the default is 1 (true)
|
Example