View Single Post
Old 08-02-2022, 04:39 PM   #24
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
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.
Turtle91 is offline   Reply With Quote