How to properly export svg for use in webpages

I have tried exporting an image to svg but Draw added padding to it. It adds about 30% padding and then alignes image to center I am trying to export image so it would automatically scale to fit width and height. So my question is: is there a way to setup exporting or is this a broken feature? I had similar problems with Visio…

Try the same procedure on Inkscape - any other result?

I don’t know if it’s the “proper” way to do it, but when I export images, I first group the whole image.
Then, I set the paper size to be the same as the complete image and set all the margins to 0 mm.
Next, centre the image both virtically and horizontally.
Then click the “Export icon”.
I have always done it like this and don’t have an problems with padding being added.

There is no need to change the page size: just check the “Selection” option you find on the lower left corner of the dialog that opens when you go to File → Export --of course, you need to select the drawing first :wink: