Quote:
Originally Posted by NASCARaddicted
Hello
I hope someone can explain this to me.
I created an xhtml File, together with a css file. I used normal "p" tags.
After that, I converted it into an epub, with Calibre. Then I looked at the finished epub file and notices, that it changed some of my css. What surprised me most is: On all p-tags in my css, Calibre added "display: block". Same goes for the headings and div tags.
Why? Is there a good explaination, why I should use display:block on epub files? Is this related to Widows and Orphans (I hope you know what I mean) or is there another good reason why I should use it?
Thanks in advance for your help.
|
First at all, don't use Calibre to build your epub book, instead, use
SIGIL; Sigil will respect your styles.
https://www.mobileread.com/forums/forumdisplay.php?f=203
http://web.sigil.googlecode.com/git/...with_epub.html
Regarding the "display: block" property added to your <p> tags that doen't matter; maybe you don't know it but <p> tags, by default, by omission, has the property "display: block". To write it (or not to write it) is the same for <p> tags.
Regards
Rubén