Forum Moderators: open

Message Too Old, No Replies

Alternative to <p>&nbsp;

If you want to add a couple blank lines

         

elklabone

4:07 am on Jan 18, 2005 (gmt 0)

10+ Year Member



OK, learned HTML from FrontPage, and I'm sure I've learned a few bad habits.

Sometimes, when I'd like to add some extra white space to the bottom of a paragraph or page I'll add

<p>&nbsp;
<p>&nbsp;
<p>&nbsp;
<p>&nbsp;

Is there a cooler, more CSS-ish or W3C-ish way to do this?

Just curious. ;)

--Mark

mikec

4:20 am on Jan 18, 2005 (gmt 0)



eeeeeekkk good god, no! hahah even if you're going to do something as bad as that at least close each paraphraph tag.

there can be many solutions to your problem. you can simply use a line break

 <br> or for xhtml <br /> 

or if you need alot of space you can do something like..

<div style="height: 250px;"></div>

or you can simply style it into your original paragraph like so:

<p style="margin-bottom: 35px;">your paragraph here</p> <!-- Your Empty Space Should Appear Below -->