View Single Post
Old 10-18-2019, 10:13 AM   #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: 79,796
Karma: 146391129
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 Cepheus View Post
Hi RbnJrg and Hitch, thanks so much for your replies. I really appreciate it. Sorry to respond so late but we've been trying to refine our code over the last couple of days. Just to further clarify I am referring to the kf8 format although it might be possible that customers purchase the Mobi and view it on earlier devices. We have gotten the code to work for kf8 although we need to test on other devices besides the Kinlde Fire. I'm assuming we will have problems with kf7 devices but at least its nice to know we can get it to work. If you're curious I put the code we used below for the image. Seems the tag 'background-size: contain' got the image to fill the div tag.

div.toc {
text-align: center;
text-indent: 0;
margin-top: -3em;
padding-top: 2em;
page-break-after: always;
background-image: url(../images/TOC_pageArt_ebook.jpg);
background-position: center top;
background-size: contain;
min-width: 100%;
min-height: 100%;
background-repeat: no-repeat;
}


Again, thanks very much for your replies. It definitely helped us out alot.
I hope you do realize that having a background image can make it harder to read. I hope you ditch the background image as it gives nothing useful to your book.
JSWolf is offline   Reply With Quote