View Single Post
Old 07-14-2023, 03:22 AM   #156
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I don't think there's a general solution. It depends on how the books is coded (and also Prince's behaviour has changed between versions in the past).

In many of my books I have something like:

Code:
/* specific code for the cover image */
@page cover {
  size: 600px 800px; /* hard-coded cover image size */
  margin: 0 -100px;  /* make virtual page width 800px */
}

body.cover {
  page: cover;
}
But this relies on:
* The cover image being in a <body class="cover"> tag.
* The cover image being 600x800 px exactly.
* The cover image being coded to use the full page.

At least at some point this worked fine for me.
Jellby is offline   Reply With Quote