View Single Post
Old 02-28-2023, 07:57 AM   #15
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,197
Karma: 148951761
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 DrChiper View Post
Thats a great find

I had recently the same issue, but solved it in the CSS itself, so it also works on other devices:
Code:
body {
  font-family: serif;
  margin: 0 1%;
  orphans: 1;
  widows: 1;
}
p, div {
  font-size: 1em;
  text-align: justify;
  orphans: 1;
  widows: 1;
}
You don't need widows and orphans any other place in the CSS but body. Also, you don't need a font size of 1em. 1em is the default font size. And you don't need justify except in body. And don't use % for a margin as it changes based on the screen/window size.

Last edited by JSWolf; 02-28-2023 at 10:22 AM.
JSWolf is online now   Reply With Quote