View Single Post
Old 12-29-2011, 03:11 AM   #11
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by Toxaris View Post
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)
Serpentine is offline   Reply With Quote