How to Scale a Stubborn Svg Embedded with the <Object> Tag

How do I scale a stubborn SVG embedded with the object tag?

None of the answers given here worked for me when I asked this back in 2009. As I now had the same issue again I noticed that using the <img> tag and width together with an svg works fine.

<img width="400" src="image.svg">

How to Resize SVG to different sizes

after searching for days i find out following things

if you want to resize your svg then we have to resize viewbox of svg, setting width will only resize outer display area

we can resize svg by simply displaying it in image tag and resize it according to requirement
i.e.

<img width="200px" src="lion.svg"></img>

i found answer in following post

How do I scale a stubborn SVG embedded with the <object> tag?

External SVG loaded with object tag not using defined clip paths

As Robert Longson stated, the clip-path element is "clipPath", not "clippath". SVG is case sensitive.



Related Topics



Leave a reply



Submit