Forum How do I...?

How to add a drop-shadow to a SVG path

twantzen
I tried to add a drop-shadow with CSS inside the SVG without success – see attached files. Which way do I need to go to add a drop-shadow to a SVG path?

Thanks,
Tobias
  1. SVG_Test.pdf3.6 kB
  2. object.svg0.7 kB
wangp
The color syntax from css-color-4 is not supported in Prince 15. You can use the older syntax:
    #bookshadowPath {
      filter: drop-shadow(2.4mm 2.8mm 1.63mm rgba(0,0,0,0.8));
    }
twantzen
@wangp Ah ... I should have known this. Now it works – thank you very much!