Bookmarks

The web is for exploring, for surfing, so I collect web pages that I find interesting or handy here on my own web site. Have a browse and get lost in the World Wide Web.

Remove SVG Whitespace

Quite often I need a quick way to trim an SVG so it has no whitespace, I use this JS Fiddle I found as it makes it really simple to do. I'm not sure who wrote it but it basically modifies the viewbox to be the SVG's bounding box then returns the updated SVG. Nice and simple.