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
|