Quote:
Originally Posted by Psymon
What's the code for that, to preserve aspect ratio?
Sorry if I'm a bit clueless today -- I've got some weird bug and took some painkillers, so I'm rather "dopey." :/
|
preserveAspectRatio="xMinYMin meet"
If you want it centered the use preserveAspectRatio="xMidYMid meet"
I would use xMidYMin to center horizontally and place at the top of the viewbox.
See our wiki on SVG or
http://www.w3.org/TR/SVG11/coords.ht...RatioAttribute
Dale