View Single Post
Old 03-09-2015, 02:10 PM   #10
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by AThirstyMind View Post
Notjohn, what should the line of code say? <img src= ?> so that I don't use absolute size? I haven't been satisfied with the size displayed on the newer devices now that you mention it.
Thirsty:

Be aware that there is no good "one size fits all" solution. The HD devices will display the image pixel-for-pixel, if the size is not set. If you set the size, as shown previously, again, it will display pixel-for-pixel at the stated size, which would be dreadfully small on, say, a Fire HD or an HDX. If you set a percentage, then you'll run into problems with the older Kindles, which will simply blow the image up to "as large as possible," as the older devices only ever contemplated a full-page cover.

At my shop we use media queries; we display an image at size x for the KF7's, and we display it with percentages for KF8's. It's the only way to work around the problem, if you're trying to get it exactly right on all devices.

Hitch
Hitch is offline   Reply With Quote