View Single Post
Old 01-02-2018, 07:43 PM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
Epubs need to use xhtml (or html5 for epub3). Mbp: is not valid xhtml (or html5). It sounds like your html contains raw mobi markup to me.
I agree. Better to just remove that non-standard <mbp> code and stick with normal XHTML.

Quote:
Originally Posted by jray9242 View Post
Thank you both for the information.I used mbp:pagebreak for formatting based on Notjohn's blog on posting to Amazon.
If you were trying to get page breaks, it would probably be best to use CSS.

HTML:

Code:
<p class="pagebreak">* * *</p>
CSS:

Code:
p.pagebreak {
	page-break-before: always;
}
Or just split each individual piece into its own HTML file (the only real universal solution to guarantee it will be on their own pages).

Quote:
Originally Posted by jray9242 View Post
I don't use the <H1> so I will look at the TOC error again.

[...]

Now I have to figure out why my TOC links are not working. They work in HTML and in Sigil but not with the Kindle viewer.
What's the code?

Side Note: Instead of using something like:

Code:
<p class="part">Part 1</p>
<p class="chapter">Chapter 1</p>
it is better to use <h1-h6> for chapters/subchapters:

Code:
<h1>Part 1</h1>
<h2>Chapter 1</h2>
Marking documents with headings will allow Sigil to generate a correct TOC very easily for you. It also brings many other long-term benefits.

Last edited by Tex2002ans; 01-02-2018 at 08:22 PM.
Tex2002ans is offline   Reply With Quote