How to lower the opacity of the alpha layer in an svg filter?

One way is to add a feComponentTransfer filter primitive, like this: <filter id=”dropshadow”> <feGaussianBlur in=”SourceAlpha” stdDeviation=”3″/> <feOffset dx=”2″ dy=”2″/> <feComponentTransfer> <feFuncA type=”linear” slope=”0.2″/> </feComponentTransfer> <feMerge> <feMergeNode/> <feMergeNode in=”SourceGraphic”/> </feMerge> </filter> A live example can be seen here.

How to use .svg files in a webpage?

See svgweb quickstart and the svgweb project homepage for something that works in all browsers including IE (requires flash plugin). There are many ways to include an existing svg file: <img src=”https://stackoverflow.com/questions/2011289/your.svg”/> <object data=”https://stackoverflow.com/questions/2011289/your.svg”/> <iframe src=”https://stackoverflow.com/questions/2011289/your.svg”/> <embed src=”https://stackoverflow.com/questions/2011289/your.svg”/> <div style=”background:url(your.svg)”>…</div>