Quote:
Originally Posted by slowsmile
You can't use percentages values for scaling in mobi7 because it will ignore that styling. Remember this is OLD mobi7. The only way you can style and size a mobi7 is using absolute pixels in "height" and "width" declarations within the image tags. So forget about percentage formatting for mobi7 because it's not allowed. If you don't believe me then best ask Hitch.
|
No one is saying to use percentage for MOBI7.
I will try a detailed example. I have an image that is twice a wide as it is high and I want to display it at 80% of the screen width.
As per the publishing guidelines, I size it to the minimum for 300 PPI at 960x480 pixels. (I could make it larger if I want.)
I know that on an old Kindle device with a 600x800 pixel display I want it to be rendered at 480 pixels wide (80% of 600).
Using media queries I cause one of the following to display and the other to be hidden based on the format delivered to the customer device:
not amzn-mobi:
<img class="show-for-non-mobi" src="myimage.jpg" style="width: 80%;">
amzn-mobi:
<img class="show-for-mobi" src="myimage.jpg" width="480" height="240">