View Single Post
Old 03-08-2008, 10:50 AM   #17
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by rpresser View Post
Here's how to do running headers in IMP books, entirely with HTML:
...
My apologies if this is already well known. I just couldn't find it explicitly mentioned anywhere, and the mobi2imp thread explicitly says that running headers aren't implemented. Maybe it could be incorporated into the perl script?
It is good to see example coding put into practical use. Thanks for sharing this.

The next release of mobi2imp should have this 'Running Headers' feature. I wanted to lessen the impact of loosing that space at the top, so I devised a way to elimante the following <hr> and use color to differentiate the header from the text

I will implement in mobi2imp, this additional style:
Code:
<style>
header {display:none; display:oeb-page-head; oeb-column-number:1}
</style>
Then will place this code after <body>, for the header to appear:
Code:
<header>
<table border="0" cellspacing="0" width="100%">
<tr>
<td align="left" bgcolor="#B0C4DE" style="font-family:smallfont">PUT_TITLE_HERE</td>
<td align="right" bgcolor="#B0C4DE" style="font-family:smallfont">PUT_AUTHOR_HERE</td>
</tr>
</table>
</header>
Please note that by placing this AFTER <body>, the margin settings are inherited and properly displayed. The 'smallfont' use may be optional.

It adds a bit of color (grayscale for 1150 owners ).

By the way, bgcolor="#B0C4DE" is LightSteelBlue, but I also like, bgcolor="#FFDAB9" (PeachPuff) and bgcolor="#F5DEB3" (Wheat) as being non-obtrusive.
nrapallo is offline   Reply With Quote