Quote:
Originally Posted by AThirstyMind
The following seems to be the problem I'm having converting the epub to mobi on KP:
<p class=Center style='margin-top:6.0pt'><b><span style='font-size:14.0pt'>author name</span></b></p>
|
Quote:
Would I just change the code to read:
<p class=Center margin-top:6.0pt><b><span style='font-size:14.0pt'>author name</span></b></p>
|
I'd have to say no. That would be the same thing (IMO) as "stacking" two classes. There's no real reason to have both a CSS class AND and an inline style defined. Pick one or the other (and your proposed solution is actually syntactically incorrect, btw).
Since you don't include the CSS definitions for your "Center" class it's hard to give a precise answer, but I would either A) move the margin-top attribute to the CSS class you've defined as "Center" ... or B) move the text centering stuff to the inline style definition.
A)
Code:
<p class="center"><b><span style="font-size:14.0pt">author name</span></b></p>
and the corresponding CSS:
Code:
p.center {
text-align: center;
margin-top: 6.0pt;
}
B)
Code:
<p style="text-align:center; margin-top:6.0pt"><b><span style="font-size:14.0pt">author name</span></b></p>
P.S. It's "working" for the Fire and the Touch emulators because they're displaying the KF8 version which will allow many of the things that ePub will (like the stacking of styles). The Kindle Emulator is using the MOBI version, and kindlegen is much more finicky about what kind of CSS can be properly/accurately converted to MOBI.