SVG images grow and create scrollbars when on the server
Posted
by
zuko
on Pro Webmasters
See other posts from Pro Webmasters
or by zuko
Published on 2012-08-27T16:23:03Z
Indexed on
2012/08/27
21:57 UTC
Read the original article
Hit count: 310
Okay so I embedded some SVG images into my page and opened it locally on Chrome and it looked fine.
I upload the same file to the server and look at the page online and the SVG images have grown by maybe 5-10% and are surrounded by scroll bars like they are overflowing.
I think it probably has to do with my lack of knowledge on how SVG and Embed work. What's really puzzling me though, is that it works fine locally. (I have cache disabled.)
Help? Thanks.
Edit: code
HTML:
<embed type="image/svg+xml" src="content/web-logo.svg"/>
There's no CSS on the image.
I'm not sure if I was just wrong before or if I changed something I'm not aware of, but it doesn't appear to be actually changing size anymore.
It just decides to stuff it into a scrollbox.
pic: https://www.dropbox.com/s/wt1aufi7nl1fpyi/svg-problem.png
© Pro Webmasters or respective owner