View Single Post
Old 11-26-2018, 08:27 PM   #37
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,121
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Gregg Bell View Post
But what about jhowell's idea (post #26) of anything that's in the html image tags without the "height" and "width" stuff added (like the attachment but with 800X1200 instead of 200X300) is displayed at 39.063%. So at 600X800, the Kindle 7 Touch resolution, the image would be displayed at 234pxX351px, which is 1.36"X2.05", which is good. On the Amazon Fire HD8 tablet it would be 312pxX468px, which would be 1.65"X2.48", which would also be good and so on.
That was not meant as a suggestion! I recommend against leaving out styling for your images.

The 39.063% that appears in KFX if you use no styling for a 200x300 image is not a constant. It depends on the image size. If you use a 400x600 image with no styling you get width:78.125% as a result instead. I can't explain why these occur and do not recommend relying on them.

Percentage width should be used. And if you are concerned about the best look for older, non-KF8/KFX devices, also using height/width in pixels via media queries to cover that case.

Last edited by jhowell; 11-26-2018 at 08:43 PM.
jhowell is offline   Reply With Quote