View Single Post
Old 06-28-2014, 02:11 AM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,018
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by medwatt View Post
I have noticed that when the styles are inline then the epub readers display them properly. For example: <p class="myStyle"> will cause the style to be used where as if I define p{} then it is ignored by the epub readers. Why is that so ?
I noticed this because I converted the book from epub to epub using Calibre software. Calibre adds a class to all html elements when when that is redundant. What's going on ?
I've defined p as I want and in the XML, when I want to use what I have defined, I make sure it's just <p>. Works on all ADE based readers I've used.

my p style is...
Code:
p {
margin-top: 0;
margin-bottom: 0;
text-indent: 1.2em
}
but when you use something like <p class="center"> to center something, you do have to have a text-indent: 0 in the class or it will be off center by 1.2em. Any class used with p that centers needs an indent of 0.
JSWolf is online now   Reply With Quote