View Single Post
Old 05-08-2018, 03:39 PM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Calibre's Check Book tool shows display:hidden as an error, perhaps it appeared in a later version of CSS than is typically supported by ADE-style renderers on eink devices, such Kobo's renderer for standard epubs.

I must admit I don't use any special CSS or markup for footnotes, I just use simple anchors which seem to work as expected on the Kobo, i.e.
- kepub: choice of pop-up or link-to-endnotes page
- epub: link-to-endnotes page only

They work no matter whether the book is epub/kepub and no matter whether the kepub was created from an EPUB2 or an EPUB3. For example:

Chapter HTML file:
Code:
<p>... a rule instituted hundreds of years ago to prevent this branch of the Church becoming too big for its boots.<sup><a id="back02" href="endnotes.xhtml#fn02">[2]</a></sup> But ...</p>
Endnotes HTML file:
Code:
<p class="footnote"><a id="fn02" href="chapter1.xhtml#back02">[2]</a><br/>Which were of the one-size-fits-all, tighten-the-screws variety.</p>
CSS is very simple:
Code:
.footnote {
    margin: 0 0 0 2em;
    padding-top: 3em;
    text-indent: -1em;
}
sup {
    font-size: 0.9em;
    line-height: 0;
    vertical-align: super;
}
ETA: I'm not saying that the above is the best way or the right way of doing footnotes, just that it is a way which seems to work trouble-free on a Kobo.

Last edited by jackie_w; 05-08-2018 at 04:07 PM. Reason: ETA
jackie_w is offline   Reply With Quote