View Single Post
Old 07-22-2014, 09:45 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,009
Karma: 147977995
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Jellby View Post
There's no sure way to center stuff vertically. This is because there's no sure way (according to the specification) to get the screen height. There are some tricks around that apparently work in some or even most epub readers, but that's more by chance than by design. The best solution is simply add some top margin (and if you add it in %, note that it refers to a percentage of the width, not of the height).
I disagree. Using an h1, the following css code works fine.
Code:
.half {
margin-top: 48%;
font-weight: bold;
text-align: center;
text-indent: 0
}
JSWolf is online now   Reply With Quote