View Single Post
Old 07-11-2016, 09:00 AM   #12
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,847
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by GrannyGrump View Post
@Ruben --- Thank you for the thought. Tthat is how I format for epub. But I remember reading (maybe one of Hitch's old posts) that KF7 OLD MOBI images must be sized in PIXELS. So I use pixels for the mobi.
Hi Granny;

Yes, that is true for kf7. But your issue is with Kindle Voyage, ¿or not ? If your problem is with KV then you can use @media queries in order to set different images styles for KV (that support "width" in percentage) and KF7 (here you don't need to do anything because things work well).

For example you can do something like:

Code:
@media not amzn-kf8 {   /* Of this way, styles also will work for epubs */
img.kf8, p.kf8 {
        display: none;
}

img.kf7 {
        display: inline;
        text-align: center;
        text-indent: 0;
}
}

@media amzn-kf8 {
img.kf8 {
       width: 80%;
       height: auto;
       text-align: left;
       text-indent: 0;
       margin-left: 10%;
       margin-right: 10%
}

img.kf7, p.kf7 {
        display: none;
}
}
and in the .xhtml files:

Code:
<p class="kf8"><img class="kf8 alt="" src="../Images/my_image.png"/></p>
<p class="kf7"><img class="kf7 alt="" src="../Images/my_image.png" width="xxx"/></p>
As you can see, you code twice the images but only one of them will be displayed.

Regards
Rubén
RbnJrg is offline   Reply With Quote