Quote:
Originally Posted by JSWolf
... As for margins in <p>, I make sure there are no margins and I use a plain <p>. I edit out the <p="someuselessclass"> and make it just <p>. it's very easy to do this. Then for every class that has a center, I make sure there is a text-indent of 0.
|
That's my point exactly. You had written that after setting negative margins at the <html> level, "Nothing else need be done."
However, if the publisher has set margins at the <p> level, then you need to delete or adjust those margins, otherwise the negative margins at the <html> level won't work as desired.
Note: I'm not arguing against setting negative margins at the <html> level; in fact, I may start using <html> instead of <p>. I'm just saying it's not always as simple as inserting a couple lines of CSS to add negative margins to <html>.
Quote:
Originally Posted by jackie_w
I don't know the specifics of CSS behaviour on a Kindle but normally cascading style attributes don't all work the same.
To the best of my knowledge left/right margins are additive ...
|
Yes, I think that's correct. I shouldn't have used the word "override" as that's not accurate.
If you set negative margins of -45px for <html> and the publisher has margins of 5px for <p>, then I think you end up with with <p> margins of -40px. So if you want negative margins of -45px you need to delete or adjust the margin settings for <p>.