View Single Post
Old 05-05-2019, 03:47 PM   #24
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,366
Karma: 148951763
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by odamizu View Post
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>.
Yes, you are correct. My statement was not 100% correct. Yes, you do need to check to left/right margins in <body>, whatever class is used with <p> and for any @page.

Quote:
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>.
I would expect that to be the case just as you've described.
JSWolf is offline   Reply With Quote