View Single Post
Old 11-26-2018, 08:33 PM   #39
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 jhowell View Post
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/with in pixels via media queries to cover that case.
Thanks. As I said, Gregg. I didn't tell you to use the fallback styling for s&gs, I told you because that's what you need to do. If you just slap the image in there, without setting % or pixels, then on the older devices, all the images will be blown up to the largest possible size--the full size of the width of the device, if it can be. I strenuously recommend AGAINST that.

Hitch
Hitch is offline   Reply With Quote