View Single Post
Old 05-16-2011, 02:37 PM   #20
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by jackie_w View Post
What did you actually type in Calibre? I've never needed to override image CSS myself but I would imagine it should be something like this in the ExtraCSS box
Code:
img {width: x%;}
Hi Jackie, Since in this specific epub calibre put the image class as .calibre3, after generating the epub I erased it and put as extra css in the "common options" (in Preferences\conversion) the code:

Code:
.calibre3 {
    height: auto;
    width: 75%
    }
but Calibre ignores this completely. After reading your message I also tried your
Code:
img {width: x%;}
as well as
Code:
img {height: auto, width: x%}
but again, nothing: these codes appear nowere in the final file, as if I put nothing in (though the other formatting commands are accepted, and appear at the beginning of each "chapter"; similarly, the css files now "imports" the font info, as

Code:
.calibre {
    display: block;
    font-family: "LexiaDaMa", serif;
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 0;
    margin-left: 5pt;
    margin-right: 5pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: justify
    }
(my bold), which it didn't before. In the meantime I had posted a question on the Calibre conversion forum, but so far got no reply. If I do get one, I'll update you - or if you do have any more suggestions, I am all ears

@rkomar: as expected, indeed the font info is ignored if I open the epub on my laptop. As you say, if there was a way to give some sort of wildcard to the "font" directory that would work on all devices, that would be so much better - for instance, I'd rather double check that all is well with the book before transferring it to the device - or if I were ever to change device. Perhaps the current situation is because not enough people are bothered by this, so not enough people are giving it enough thought to come up with a solution...
paola is offline   Reply With Quote