Mobileread
epub to mobi7, all text is italics
#1  lumpynose 08-16-2019, 02:10 PM
I'm using either Kindlegen V2.9 or Kindle Previewer V2.943 and the epub was created in Sigil. The epub is v3. After I convert the epub to mobi and view it in either the Kindle Previewer or the MobiPocket Reader all of the body text is italics. The only thing that's not italics are the h? headers.

Anyone have a fix for this? I'm hoping it's something others have already dealt with, maybe something in my css that I can fix with an @media.
Reply 

#2  lumpynose 08-16-2019, 06:11 PM
I think I figured it out; lots of hacking and slashing until I found the place where it was going bad. My CSS had been


PHP Code
section.bodymatter header.bridgehead p {
    
font-styleitalic;
    
margin-top0.2em;
    
text-indent0em;

Even though I wasn't using a bridgehead header the italics was going everywhere. I moved the italics part to a separate "not amzn-mobi" media query:

PHP Code
section.bodymatter header.bridgehead p {
    
margin-top0.2em;
    
text-indent0em;
}

@
media not amzn-mobi {
    
section.bodymatter header.bridgehead p {
        
font-styleitalic;
    }

Reply 

Today's Posts | Search this Thread | Login | Register