View Full Version : Header Support with oeb-page-head Tag Working/Examples?


EatingPie
12-22-2010, 07:02 PM
I am a Sony Reader user, and have been unable to create an ePUB with headers using the oeb-page-head tag. At least one that appears in the Reader Library application.

I have tried two examples.

http://www.idpf.org/2007/ops/OPS_2.0_final_spec.html#Section3.3


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


I created an ePUB that passed epubcheck, but did not display a header on each page.

http://wiki.mobileread.com/wiki/EBook_Publisher


<html>
<head>

<style type="text/css">
header {display:none; display:oeb-page-head}
</style>

</head>

<body>

<header>
<table border="0" width="100%">
<tr>
<td align="left"><small>PUT_TITLE_HERE</small></td>
<td align="right"><small>PUT_AUTHOR_HERE</small></td>
</tr>
</table>
<hr>
</header>

<p>EBOOK_TEXT_HERE</p>

</body>
</html>


This seems like the more desirable solution, but it fails epubcheck and completely destroys the page I put the header on... I get a header, but nothing else on the page, until the next xml document.

I am exceptionally inexperienced with ePUB, so I'm wondering if anyone has an ePUB already functioning with the oeb-page-head tag. (There is a workaround to get headers on the Sony Readers, but I'd rather use an ePUB tag).

-Pie

Jellby
12-23-2010, 05:31 AM
I know of no ePUB reader that supports oeb-page-head (or foot), although it would be the proper way to create running headers.

But, anyway, if you are using a class, you need not specify a style, i.e., you should do:

<div class="myhead">
The OEB Publication Structure: Introduction
</div>

and, in the CSS:

div.myhead { display: oeb-page-head }

(but it won't work, as I said).