View Single Post
Old 09-19-2017, 09:12 AM   #9
Kamikuza
Connoisseur
Kamikuza began at the beginning.
 
Posts: 62
Karma: 10
Join Date: May 2011
Location: Japan
Device: Kindle3
Uuuurgh zombie thread . . . brains . . .

My workflow: Sigil 0.8.1 --> KP 2.942 --> .mobi --> PW2

I've been experimenting with position:absolute and :fixed so my title pages look like the book's title pages, with the publisher name fixed to the bottom of the page (or the title in the exact center) regardless of the font size and no need for fudging things with tables and endless fiddling with margins. . . .

Seems to work fine, with the following caveats:

1. You MUST have a normal html/css thingy at the top, otherwise the whole page disappears. You gotta have something "above" it -- but not a space character.
eg.
<body>
<div style="background-color:none; bottom:0; height:min-height; left:0; padding:0; position:fixed; width:100%;"><p>Simon & Specter</p>
<p style="color:white;">.</p>
</body>

will display a page with a "hidden" full stop at the top and the publishers name at the bottom -- no matter what font size you select.

2. If you left- or right-align the absolute text, it seems to go to the absolute edge of the page -- past the margins the rest of the text will follow. I can't see a way around that except to set "left:70px" or whatever . . .

...

You can do something similar with vertically centering some text too.

I'm doing this for my own enjoyment, not publishing so they don't need to be compatible with . . . well, anything

If anyone has a better method, I'd be keen to hear it.
Kamikuza is offline   Reply With Quote