Thread: Clara 2E Strange line-height issue
View Single Post
Old 07-01-2023, 04:26 PM   #33
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,077
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 Quoth View Post
Nothing should use rem or pica

Edit:
Text, margins or padding should not use px or %
The px or % are for images on ebooks.
I agree that rem should never be used even in cases where it works because there are too many cases where it doesn't work.

As for px or % for margins or padding, there is one case where I use % for margins and it's OK that the line changes size based on the screen. I use this code for section breaks. It gives a 2px 20% wide line.

But for things like chapter headers, I see a lof of nonsense such as a 15% top margin. For places where you don't want the space to change based on the screen size, you don't want % or px.

Code:
hr {
  margin-top: 0.9em;
  margin-right: 40%;
  margin-bottom: 0.9em;
  margin-left: 40%;
  border-top: 2px solid;
}
JSWolf is offline   Reply With Quote