Quote:
Originally Posted by medwatt
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.