Thread: EPUB output
View Single Post
Old 04-09-2009, 01:17 PM   #456
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: 45,497
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by llasram View Post
I haven't tested how they work, but it might also be worth trying some combination of the 'width', 'min-width', and 'max-width' properties. If ADE and other renderers respect 'max-width' then could specify "width: 100%" and a 'max-width' of the actual image width in pixels.
If ADE supports max-width, adding

Code:
img { max-width: 100%; max-height: sony reader screen height }
to Override CSS should do the trick. It's a pity CSS doesn't have viewport relative lengths. If it did there would be no need to use the actual screen height any more.
kovidgoyal is offline   Reply With Quote