midlifec, a stylesheet is what the various html files in an epub will refer back to for determining formatting and style. It is usually called stylesheet.css but sometimes it will have another name. But it will always have the css file extension.
There are various free ways to get at the stylesheet to edit it. None of them are ideal. You can use Sigil, but that sometimes messes up an existing TOC and some text formatting. You can use tweakepub from Atlantis but it has a very small and limiting GUI interface. However, if all you want to do is tweak the css, then that is what I recommend for you.
You can also simply unzip the epub and open up the css in a text editor. Or, you can use pdfxml inspector, which is what I use most often as it also lets me delete pages in a book and make other edits.
I read that Calibre will be adding some epub editing functions in the near future, so I hope that will allow me to do away with some of the other editing tools I have been using. Right now I use Calibre for managing all my ebooks and it is an awesome piece of software.
Anyway, before editing the stylesheet, look at the html file for the chapter or part of the book that is being cut off on the bottom. Then look for a "div" class style that is governing that page/section. It will say something like div class="calibre10"
Then you just go look up calibre 10 in the stylesheet and change the margin settings. It will probably say margin-top: 4em or something like that. Meanwhile the margin-bottom will have a 0 or small value. Just reduce the margin-top value to something like 1 or 2 and that usually fixes it.
Always make a backup of your epub before attempting to edit it as things can easily go wrong.
|