View Single Post
Old 12-20-2008, 01:13 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Jellby View Post
I believe with SVG you can make an image fit a screen or view area, no matter whether it is wide or narrow, portrait or landscape... but if you just set "height: 100%" in a normal <img> element, if it happens that the screen is narrower than the image, then it will not fit. This is at least the "advantage" I saw in using an SVG wrapper (the disadvantage is the lack of SVG support in some systems).
Doing that will change the aspect ratio of the image.
kovidgoyal is offline   Reply With Quote