Well, Hitch, I must disagree with you again:
Quote:
As this thread seems to be commingling Sigil, ePUB and Amazon/Kindle, I will say this: your code will NOT work, not at all, for Amazon's KF7 devices, presuming that you're talking about what's in your first post. KF7 utterly ignores any CSS, inline or otherwise, and percentages are utterly worthless. (I honestly don't remember you using fixed pixel widths, and from your comment, above, presumably, you do not.)
|
Ignores
any CSS?...That's one heck of a sweeping statement referring to KF7's. So, from your own rather broad(too broad?) statement above, are you saying that no external CSS calls like
text-indent, margin, padding, text-align, font-style, font-weight etc will have any effect whatsoever on an ebook in a KF7 device? Sorry Hitch, but such a loose generalization is just plain wrong.
Second point. Do you know the main advantage of using inline styles?
In html you have external css and internal css. The external css is the stylesheet(s) that is outside the html whereas an internal CSS is defined within the html itself.
What is the main purpose or advantage of using an inline style in the html?
Answer:
Quote:
Thanks to the cascade of Cascading Style Sheets inline styles have the highest precedence or specificity in a document. This means they are going to be applied no matter what else is dictated in your external stylesheet...
Source: https://www.thoughtco.com/what-is-cs...-style-3466446
|
Quote:
So, an inline style (inside a specific HTML element) has the highest priority, which means that it will override a style defined inside the <head> tag, or in an external style sheet, or a browser default value.
Source: W3C Schools https://www.w3schools.com/css/css_howto.asp
|
The important thing to take away from this is that inline style declarations are the highest priority and will always win over any similar declaration in the external CSS or anywhere else(provided they are inserted after any competing class in the html).
So if an inline style is not in the external stylesheet but is in the html code, and given that your above KF7 generalization is somewhat wrong, isn't it reasonable to assume that inline styles will work on KF7 devices?