svg image taking space around image without any ma

2019-08-14 17:37发布

I am using svg image in my site like this

<img width="251" alt="Page Bros Group" src="http://pagebro.agencyhub.co.uk/wp-content/themes/pbg_theme/images/Page Bros Group logo v1.svg">

But when i see it in browser, it showing spaces around it. i tried margin:0 , padding:0, but not working here is the link of site site

标签: svg
1条回答
甜甜的少女心
2楼-- · 2019-08-14 18:28

Open your SVG file in Inkscape editor.

Go to File > Document Properties > Resize Page to content > Resize page to drawing or selection. It will remove/trim the space around SVG.

查看更多
登录 后发表回答