View Single Post
Old 12-15-2021, 05:06 PM   #11
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 413Michele View Post
Ok, after a lot of testing I finally found the problem, and I can't believe what it was...

[...]

Kindle's renderer decided that the spaces and newlines between </p> and </div> are important, and they should be shown as margins.
Hmmmm... Good detective work.

But it definitely isn't normal.

And what happened if you removed that <div class="endnote">?

And are you using anything like a "CSS reset" (like Blitz)? (For more information on why that's a horrible idea in ebooks, see the 2021 thread: "Revolutionary code? Need feedback")

Quote:
Originally Posted by 413Michele View Post
That is also the preferred method in Amazon's Kindle Publishing Guidelines, but if it doesn't work with EPUB2 I'd rather avoid it. I'll read the discussion anyways, as it seems semantically better.
Oh. Well, if you wanted to stick with EPUB2, then you can't go wrong with the super basic:

Code:
<p>This is an example.<a href="#fn1" id="ft1">[1]</a></p>

<hr />

<p class="footnote"><a href="#ft1" id="fn1">[1]</a> An example footnote.</p>
It works everywhere on everything.

Heuristics should also detect that simple link back/forth, so you'd get popup footnotes across many readers.

Quote:
Originally Posted by 413Michele View Post
I love his humour and characters This has become one of my favourite adages:

Give a man a fire and he's warm for the day. But set fire to him and he's warm for the rest of his life.
That's a good one.
Tex2002ans is offline   Reply With Quote