View Single Post
Old 01-19-2015, 02:32 PM   #15
Section8
Addict
Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.Section8 ought to be getting tired of karma fortunes by now.
 
Section8's Avatar
 
Posts: 264
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
I've also been experimenting with setting negative margins in epubs converted to azw3. This is the best I've been able to do, using the calibre ebook editor (which I use all the time to tweak css with anyway):

First in the calibre conversion settings, set the option to expand the "margin" css rules - so the css margins are set using margin-left, margin-right, etc instead of "margin:".

After conversion, open the converted azw3 in calibre's ebook editor. Open the css and use find/replace to delete all the "margin-left: 0;" and "margin-right: 0;" statements by replacing them with nothing (only in the css).

Then, add the negative margin to the css paragraph:

p {
margin-left: -30px;
margin-right: -30px;
}

That mostly just works. I had one book with a table this screwed up - the cells would overlay each other after doing this. I don't know of any easy way to figure out which classes are
Section8 is offline   Reply With Quote