View Single Post
Old 03-23-2013, 10:57 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,162
Karma: 9984035
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by mrmikel View Post
Be careful with display:none when it is on a line with something else. It won't display but the space that it would have used is taken anyway, leaving blank spaces in the line. I ran into this with invisible page numbers that took up the space anyway.
Then that's a bug in the renderer, display:none should be completely removed from the flow. What could happen is that you see the space before and after the element, resulting in a double space, which is usually not seen in HTML. The behaviour you describe it what should happen with visibility:hidden, though.

Otherwise, I wonder if <span title="Dedication"> would work. In other words, does Sigil only consider <h1-6> tags when building the TOC or does it also consider anything with a "title" attribute? (You may also need to add an "id".)
Jellby is offline   Reply With Quote