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