I've a doubt: Is correct to leave empty a heading? Could it be ignored for some readers or in the transformation to another formats (.mobi, etc.)?
I show you what I want to use:
<h3 title="Author"></h3>

Thank you very much!!!

Jellby

04-28-2012, 06:14 AM

Yes, it's possible. But what do you want it for, just for creating an automatic TOC with Sigil? In that case, I'd suggest adding "display: none" to its style, so it is not displayed at all.

Elle518

05-01-2012, 05:44 AM

Yes, it's possible. But what do you want it for, just for creating an automatic TOC with Sigil? In that case, I'd suggest adding "display: none" to its style, so it is not displayed at all.

Yes, it is for creating an automatic TOC. Thank you very much for the display:none tip! I haven't thought about it...

mrmikel

05-01-2012, 06:52 AM

With the Sony, display:none can be tricky. In the text it doesn't display but it does cause extra space in the line. I know this because Project Gutenberg Canada inserts page numbers, then marks them as display:none.

So just be sure when you have used it, your text is still displayed as you want.

Jellby

05-01-2012, 11:24 AM

Probably does not insert space, but causes surrounding spaces not to collapse:

Usually, two spaces should display as a single one:

two spaces

but if there is anything between those two spaces, even if it's something with "display: none", then they are not two consecutive spaces anymore, and they are displayed as a wider space:

two <span class="pagenum">123</span> spaces
(where "span.pagenum" is set to "display: none").

In this case, it would be better to include one of the spaces inside the span:

two <span class="pagenum">123 </span>spaces

But it may still affect searching. If you search "two words" you may find no match. I'm not sure what the specifications say, if they say anything, about these things.