View Single Post
Old 12-01-2014, 02:59 AM   #1
Psymon
Chief Bohemian Misfit
Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.Psymon ought to be getting tired of karma fortunes by now.
 
Psymon's Avatar
 
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
Hidden headings/links don't work in iBooks?

Well, this is odd. In one of the books I'm working on, I have all my chapters set up as separate files, and the links in my ToC all work fine to go there, but I also wanted links to certain poems within each chapter. The poems don't have actual titles, though -- otherwise I would just mark those up as <h2> or whatever -- so it's basically the first line of each poem that they're "named" by. So I did those up with hidden <h2> coding, like this...

Code:
<h2 class="hidden" id="eastern">“Low in the eastern sky”</h2>

<p class="poem">Low in the eastern sky</p>

<p class="poem">Is set thy glancing eye;</p>

etc...
My ebook validates just fine (in case you're wondering), and all the links work just fine in ADE, taking you right to the poem in question, but in iBooks you're taken instead to just the beginning of the chapter (whichever chapter the poem in question is in).

Does iBooks have an issue with the "hidden" attribute, that anyone knows of? And is there a workaround for this? I've never seen this issue with anything similar that wasn't "hidden", so I can only assume it must have something to do with that.
Psymon is offline   Reply With Quote