View Single Post
Old 08-02-2022, 04:43 PM   #25
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,988
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 Turtle91 View Post
That is certainly one way to do it - and it is better than using the <br/> tag... however, I think Wolfie's intent was to use the css on the paragraph that has text.

Instead of:
Code:
<p>This is a normal paragraph.</p>
<p>This is a normal paragraph.</p>
<p><br/></p>
<p>This is a normal paragraph with space above.</p>
<p>This is a normal paragraph.</p>

-OR-

<p>This is a normal paragraph.</p>
<p>This is a normal paragraph.</p>
<p class="space"></p>
<p>This is a normal paragraph with space above.</p>
<p>This is a normal paragraph.</p>
You could use this:
Code:
p.spacet {padding-top: 1em}

<p>This is a normal paragraph.</p>
<p>This is a normal paragraph.</p>
<p class="spacet">This is a normal paragraph with space above.</p>
<p>This is a normal paragraph.</p>
That provides clean HTML that can be consistently relied on.
We are thinking alike. See my post before yours and you'll see.
JSWolf is offline   Reply With Quote