View Single Post
Old 11-23-2011, 05:48 AM   #4
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
If I have a paragraph marked up as
Code:
p(poem). 'Twas brillig, and the slithy toves...
and in extra CSS box have

Code:
.poem {padding-left:10%; padding-right:10%; text-indent:0; text-align: left; font-style: italic;}
Then the resulting epub html DOES keep the 'poem' classname

Code:
<p class="poem">‘Twas brillig, and the slithy toves...</p>
EDIT:
If I have another paragraph marked up as
Code:
p(poem)=. 'Twas brillig, and the slithy toves...
(Note the = center align)

Calibre also creates a .poem1 class with the same css as poem but also including the text-align:center; tags.

Last edited by Perkin; 11-23-2011 at 06:07 AM.
Perkin is offline   Reply With Quote