Quote:
Originally Posted by Serpentine
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)
|
For SVG the aspect ratio is easily preserved with the attribute 'preserveAspectRatio', so no problem there.
If setting both the image width and height to 100% does not give problems, fine. I was mistaken with a hard setting in pt.