I\'m trying to have a SVG graphic inside an
tag that would fit (without crop) inside the tag with preserved aspect ratio. I created t
The solution in my case was using Peter Hudec's answer, but because of using width: 100%;
on the
tag, which broke the layout on every non-IE9 browser, I added a IE9-only CSS hack (width: 100%\9\0;
). Hope this addition will help someone. :-)
Even using the preserveAspectRatio="xMidYMid meet"
was not neccessary.
(I wanted to add only a comment, and not answer, but no reputations yet to do so :-)