Quote:
Originally Posted by Toxaris
If you add both 'widht: 100%' and 'height: 100%' you will probably end up with having the aspect ratio distorted.
|
If you add both to an img it will not distort - iirc it will try to fit to height only. If you do it via svg, you will end up breaking the AR (assuming you provide the x/y and image size).
Personally I just use height:100%; on a centered image without the svg. (and no padding/margins on anything)