View Single Post
Old 02-28-2023, 10:26 AM   #17
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
Yes, you do as otherwise it does not work in kobo devices. The <body> setting is not inherited by <p> and <div> (which it should, but is not), otherwise I would not have this construct.


I like to make my defaults visible, thank you. Old programming habit. YMMV.


I like to justify just my paragraphs, thank you. YMMV.


That was what I intended: bigger screen, more margin. YMMV.

Boy, that were a lot of "don't-s", don't you think?
This is all you need.
Code:
body {
  margin-left: 0.5em;
  margin-right: 0.5em;
  orphans: 1;
  widows: 1;
  text-align: justify;
}
I have a Libra 2 and I know it works. Oh and the serif, you also don't need it.

It's a lot of don't because it's a lot of you don't need. It can all be done in body. And yes, it does work.
JSWolf is offline   Reply With Quote