View Single Post
Old 03-24-2019, 08:48 AM   #52
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,061
Karma: 147983159
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 Robotech_Master View Post
So, I'm curious. Since I started this thread, and wrote these articles—

http://www.teleread.com/how-epubs-re...eak-standards/

http://www.teleread.com/blank-line-i...pub-standards/

—has anything changed?

Is there a better way to indicate section breaks that is honored by the majority of e-readers yet?
Yes there is...

Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em;
}
.spacebreak {
  padding-top: 2em;
  text-indent: 0;
}
Code:
<p>Some random line.,/p>
<p class="spacebreak">This is another section.</p>
Because you are using windows and orphans of 1, you don't have extra space at the bottom. And that means the padding of 2em shows up instead of getting lost with widows and orphans. The padding is used instead of margin because padding works better for a section break when it's at the bottom or top of the screen.
JSWolf is offline   Reply With Quote