Lunarpages Web Hosting Forum

Author Topic: <p> </p> question  (Read 2725 times)

Offline doh!

  • Intergalactic Superstar
  • *****
  • Posts: 139
<p> </p> question
« on: February 22, 2006, 07:50:26 AM »
when I use the <p> </p> (paragraph) tags, it automatically adds the blank line space at the bottom of the paragraph.
how do I change the size of this blank line? for example, if I want two line spaces, half a line space, or no line space?

like this

paragraph 1
(normal space)
paragraph 2
(two lines)
(two lines)
paragraph 3
paragraph 4
(no lines)

Offline Tracie

  • MR-Disabled
  • Master Jedi
  • *
  • Posts: 1429
Re: <p> </p> question
« Reply #1 on: February 22, 2006, 07:59:48 AM »
Using the br tag might work?

Offline landing

  • PHP Addict
  • Intergalactic Superstar
  • *****
  • Posts: 141
Re: <p> </p> question
« Reply #2 on: February 22, 2006, 08:54:34 AM »
Code: [Select]
<br />

Is the way to go if you don't want any space at all. Other wise CSS is your best friend:

Code: [Select]
<p style="height:10px">Hello</p>

Obviously you can change the height to whatever value you please.


Cheers
Best regards

Offline GMTurner

  • Berserker Poster
  • *****
  • Posts: 7479
    • Turner's Lounge
Re: <p> </p> question
« Reply #3 on: February 22, 2006, 04:06:14 PM »
and by having different classes defined, you can have different heights for each class... so you can have a single space, double-space, triple-space, etc... so my vote would be for a CSS approach...
The above information may or may not reflect current policy, opinions, or views since it was likely made almost 10 years ago.

Offline doh!

  • Intergalactic Superstar
  • *****
  • Posts: 139
Re: <p> </p> question
« Reply #4 on: February 22, 2006, 05:40:33 PM »
I'm using a css file defining p

p  {text-indent:2em; align:justify; line-height:1.5;}

the space I want, is not the space between the lines in the paragraph, but from one paragraph to the next, there shouldn't be such a big space.

For example, I want the paragraphs to have 1.5 line space, but I don't want the blank space between two paragraphs. I just want the indent.

<br/> didn't create the indent, but it did start on the next line which is close to what I want...

Offline Nibbler

  • 21st century digital boy
  • Master Jedi
  • *****
  • Posts: 1168
    • Coppermine
Re: <p> </p> question
« Reply #5 on: February 22, 2006, 05:51:20 PM »
Try setting the bottom padding or margin with your css.
Missing since 1983


Offline doh!

  • Intergalactic Superstar
  • *****
  • Posts: 139
Re: <p> </p> question
« Reply #6 on: February 23, 2006, 06:12:16 PM »
great!
setting the margin to 0 worked!