Quote:
Originally Posted by Bronzato
Sometimes I have a title at the last line of a page (on my reader) and I have the paragraph at the next page. Is there a way to avoid this? Maybe edit this EPUB file in Calibre?
|
Every Epub is a zipped collection of a number of files, one of them has the name *.css (* -> insert the actual name of your file here). This is a style sheet and tells your reading device how to arrange your text.
You may insert there something like this:
h2 {
page-break-before: always;
page-break-inside: avoid;
page-break-after: avoid;
font-size: 150%;
text-align: center;
margin-top: 0em;
margin-bottom: 0.75em;
}
Tag all your titles as h2 in your html file. The first three lines tell your reader, to make a page break before every title, but never inside and never afterwards.
This is of course only an example, you can change everything there. Play around a little bit with the settings to see what's happening.