View Single Post
Old 07-15-2009, 05:55 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,496
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
You need to look at the HTML in the Mobipocket file created by Mobipocket creator. It will have converted that CSS into some explicit tags. Use those instead with Calibre, and the background should show up. It's not a case of just having specified the colour incorrectly.

Quote:
Originally Posted by AlexBell View Post
I'm still messing around comparing the output of Calibre for Mobipocket files to that of Mobipocket Creator, and am about to give up on Creator.

But there does seem to be one small thing which works better with Creator than with Calibre.

In the HTML there is a line
<p>
The text at the end of this line should have a <span class="greyed">grey background</span>.
</p>

and the CSS for class='greyed' is
.greyed { color: black; background-color: #C0C0C0; }

In the prc generated by Mobipocket Creator the background is indeed grey, while in the mobi generated by Calibre it is not.

Is there a colour which will show in mobi's generated by Calibre? Or is my HTML/CSS wrong?

Regards, Alex
pdurrant is offline   Reply With Quote