2 May
2019
2 May
'19
8:54 p.m.
Trying to figure out whether there is a deterministic way to save an optimized SVG such that we can match the viewbox parameters perfectly with the containing HTML elements width and height parameters. For example if we have a div element like this: <div style="width: 100px; height:100px"> <svg> ...</svg></div> How do we save an SVG so that it gets a viewbox that will fit perfectly inside the div when we inline it as shown above? Also asked the question on SO, but I'm hoping there is a more straight forward way to do this. https://stackoverflow.com/questions/55958117/setting-the-viewbox-so-that-the... TIA, Ole