View Single Post
Old 08-09-2009, 06:34 AM   #5
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 340
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch, Pocketbook Touch HD
Quote:
Originally Posted by jgray View Post
I don't know what device you are reading on, but a proper epub renderer should start a new "page" (screen) at chapter headings. So, you can use normal <h1>, <h2>, etc. tags. I would suggest not forcing things with <br/> tags. That may cause problems and is not semantic.
I use a Bebook (as stated under my screenname) and I already use tags like <h1> and <h2> for new chapters. I convert my files with Calibre (the newest version, 0.6.5).

So far yekim was correct,
<br style="page-break-after:always"> works. It starts a new page at the beginning of the new chapter.

The only strange thing so far is: The book starts with <h1> author name and the next line says <h2> book name. Even though the page-break-after command comes later, the author name and the book name are on 2 different pages. So the ebook right now starts with the author name and the rest of the page is empty ...

Also, I have to check what is if there are pictures included. I don't want to start a new page just because of a picture. But right now I have no time to check.

As for br commands: so far I always used <br/> to start a new line (not page) is that wrong ? Should I use </p> instead ?
NASCARaddicted is offline   Reply With Quote