I have a SVG I had given to me (was made in visio or something),
hen I try and put it on my web page
Id like it to have a width of 100% of its container, how do i find out what is causing it to not uing the web developer toolbar
I have a SVG I had given to me (was made in visio or something),
hen I try and put it on my web page
I see height="10in"
in the code, that’s probably what’s constraining it. Keep width="100%"
and remove height="10in"
.
You want to use:
viewBox="0 0 100 100"
An article about it is found here: https://css-tricks.com/scale-svg/
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.