View Single Post
Old 11-11-2011, 11:24 AM   #5
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by Artha View Post
You are right. It never crossed my mind, although it's that obvious: with the broken support of today tools, better safe than sorry.

As for the display: it should take all description from the CSS file, no?
It might ...

... the style descriptions in the CSS are the lowest priority of all style descriptions in the ePUB. When the same tag or class repeats in the several possible style locations (e.g. a margin set on the <p> tag) the style applied directly to the tag in the (x)html body is the one used.

Priority (in order of highest to lowest):
  • style applied in the tag - <p style="margin-top: 1em;">
  • style placed in the <STYLE></STYLE> section in the (x)HTML file's <HEAD> section
  • style placed in the last CSS file linked to in the <HEAD> section
  • ...
  • style placed in the first CSS file linked to in the <HEAD> section

If there are no conflicts, the style description in the CSS will be used. provided the reader app supports it. When there are conflicts, the CSS looses out to the higher priority style.

Last edited by dwig; 11-11-2011 at 11:27 AM.
dwig is offline   Reply With Quote