Including SVG in webpages

Published on

Handy tip I discovered that’s been doing my head in. I’ve been creating SVG files in Inkscape, then cropping them to selection and saving them. When viewing in Firefox though, as part of my webpage, annoying scrollbars would appear. Basically, it would appear Inkscape crops to parts of a pixel, so to fix the scrollbars appearing in Firefox, your SVG files need to have integers for sizes. I don’t know if this is a bug of Inkscape or what, but allowing non whole pixels as a size seems a bit odd…