View Full Version : Running headers


AlexBell
11-18-2011, 07:51 PM
Is there a way to have running headers in ePub? I can't find any thread on it.

I seem to remember that that Cybook Gen3 did that, but I think it was a function of the hardware.

DaleDe
11-18-2011, 08:38 PM
there is a way. It is in the idpf specification for ePub. It would look something like:

<div class="myhead" style="display: oeb-page-head">
The OEB Publication Structure: Introduction
</div>

This would set up the header and it would remain in place until another statement replaced it. There are no particular rules on how a reader needs to treat this statement. For example, it could treat it like a physical book and play the line at the top of each page or it could make it a menu item that only gets displayed when selected. Whether any book rendering tool actually supports this is a different question.

Dale

AlexBell
11-19-2011, 02:25 AM
Thanks, DaleDe, that's helpful.

Could you go one step further and tell me what goes in the class myhead? I presume there's a myhead entry in the the stylesheet?

Regards, Alex

Jellby
11-19-2011, 08:00 AM
The only important property is "display: oeb-page-head", which turns whatever it applies to into a header. DaleDe put it in-line, but it could have gone into the "myhead" definition.

That's the theory. But I know of no reader that makes anything with that, and worse, ADE just places the content inline as if it were normal text.

(The Gen3 headers is just a hardcoded function, and it's only the book title, cannot be changed.)

DaleDe
11-19-2011, 10:57 AM
Thanks, DaleDe, that's helpful.

Could you go one step further and tell me what goes in the class myhead? I presume there's a myhead entry in the the stylesheet?

Regards, Alex

Standard stuff like font size. As Jellby said, there is no known reader that supports this properly. However, if someone finds one please post it here! You can read about it in the spec (there is a link to it in the wiki under ePub). OEB specific CSS tags lack good support by reading tools.

Dale

AlexBell
11-20-2011, 03:41 AM
Thanks to you both.