View Single Post
Old 09-19-2021, 10:46 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,828
Karma: 169712582
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I made a couple of minor modifications on your scrambled epub. One was to the stylesheet.css

Original:
Code:
@page {
  margin-bottom: 5pt;
  margin-top: 5pt;
}
body {
  display: block;
  font-size: 1em;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 5pt;
  margin-right: 5pt;
  padding-left: 0;
  padding-right: 0;
  text-align: justify;
}
Modified:

Code:
body {
  display: block;
  font-size: 1em;
  line-height: 1.2;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  text-indent: 0;
  widows: 1;
  orphans: 1;
}
This removed the 5pt margins being set in the @page and body entries and added my preferred text-indent and widows/orphans settings. I also removed text-align: justify. Let the user set their preference.

The other item was to set the ' preserveAspectRatio="none" ' in the cover and backcover files to ' preserveAspectRatio="xMidYMid meet" ' which preserves the cover/backcover aspect ratio though this did give a margin on the left right edges. A personal choice.

Last edited by DNSB; 09-19-2021 at 10:53 PM.
DNSB is offline   Reply With Quote