View Single Post
Old 05-19-2012, 08:23 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,025
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by theducks View Post
Maybe all you needed to do was add/adjust the c2 class in the style sheet.

Code:
font-stye: italic
(if it was used only in these cases)
That's what I'd do. I never understood having spans that encompassed entire paragraphs anyway. Just modify the paragraph's css class (or create a new one) to accommodate what the span was trying to accomplish (or assign two classes to the paragraph like has been previously mentioned <p class="class1 class2">).

Nothing's worse than working with an epub that is filled entirely with:
Code:
<p class="something"><span class="something-else">blah, blah, blah</span></p>
<p class="something"><span class="something-else">blah, dee, blah, dee, blah</span></p>
<p class="something"><span class="something-else">blah, dee, blah, blah</span></p>
<p class="something"><span class="something-else">blah, dee, blah, blah, blah</span></p>
EDIT: Just note that if you have any hopes of building a MOBI (at least a non-KF8 MOBI) from the very same ePub using kindlegen -- then the <p class="class1 class2"> approach should be avoided like the plague.

Last edited by DiapDealer; 05-19-2012 at 08:28 AM.
DiapDealer is offline   Reply With Quote