View Single Post
Old 08-02-2022, 04:39 PM   #23
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: 79,997
Karma: 147448039
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 salty-horse View Post
Much better, thanks.
I replaced all:
Code:
<p class="CLASSNAME"><br/></p>
with
Code:
<div class="CLASSNAME"></div>
and changed the styles of those classes from "margin: 0 0 0 0; line-height: X" to "margin: X 0 X 0", and added a rule for "div.br" with a 1em margin.
What I would use is the following so you don't have these extra lines that you don't really need.

Code:
<p class="spacet">Some Paragraph text.</p>
Code:
.spacet {
  padding-top: 1em;
}
The reason for the padding is that the 1em space doesn't get lost when the space is at the bottom or top of the screen.

Last edited by JSWolf; 08-02-2022 at 04:42 PM.
JSWolf is online now   Reply With Quote