View Single Post
Old 09-26-2015, 09:48 PM   #34
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by Nick_1964 View Post
I hope I don't offend you because I know how much time you spend on it, but, and that is a big but, this only works with sideloaded epubs..

Yes it only works properly if the book has zero left/right body margin and padding, and the only way you can be sure of that is to edit the book.

It might be possible to make a patch to override the body margin and padding in ePubs, but this would not work for all books, in particular it would not work for most books created or converted by Calibre because of the way that Calibre mangles the structure of the CSS. Nevertheless it might be worth trying to create a patch anyway, since most publishers don't use Calibre.

Edit: Actually, thinking about this a bit more, perhaps adding the following to the ePub stylesheet (either by patching the device's stylesheet or by adding it automatically when sideloading via Calibre's kobo_extra.css mechanism) would work, at least for the vast majority of the books I have seen:
Code:
body, body.calibre {
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
The main problem with creating a patch for the device's styesheet is making enough room to squeeze it in to the existing stylesheet.

Last edited by GeoffR; 09-26-2015 at 10:39 PM. Reason: style to force zero left/right margin and padding
GeoffR is offline   Reply With Quote