View Single Post
Old 12-01-2014, 03:40 AM   #4
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Jellby View Post
It depends on what the "hidden" class does. I guess you have defined it with "display: none". In that case the behaviour is not unexpected. "display: none" removes the title from the flow, so the anchor is nowhere.

I'm not sure what the spec says about this, and it seems other renderers can access anchors with "display:none", but I wouldn't rely on that.

Since the title is probably only being used to create an automatic TOC, you can remove it once the TOC has been created (and put the id in some other element). Or you can try to make sure the title is not displayed, without using "display: none" (try "visibility: hidden", plus removing all height and margins, but this is not a required property in ePub 2 renderers).
Without seeing the relevant CSS, we're air-punching here.

Hitch
Hitch is offline   Reply With Quote