Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 11:28:22 AM

Pages: [1]   Go Down
  Print  
Author Topic: <p> </p> question  (Read 1035 times)
doh!
Intergalactic Superstar
*****
Offline Offline

Posts: 139


« 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)
Logged
Tracie
MR-Disabled
Master Jedi
*
Offline Offline

Posts: 1442


« Reply #1 on: February 22, 2006, 07:59:48 AM »

Using the br tag might work?
Logged
landing
PHP Addict
Intergalactic Superstar
*****
Offline Offline

Posts: 144


« Reply #2 on: February 22, 2006, 08:54:34 AM »

Code:
<br />

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

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

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


Cheers
Logged

Best regards
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« 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...
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

Turner's Lounge
doh!
Intergalactic Superstar
*****
Offline Offline

Posts: 139


« 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...
Logged
Nibbler
21st century digital boy
Master Jedi
*****
Offline Offline

Posts: 1178



WWW
« Reply #5 on: February 22, 2006, 05:51:20 PM »

Try setting the bottom padding or margin with your css.
Logged

Missing since 1983

doh!
Intergalactic Superstar
*****
Offline Offline

Posts: 139


« Reply #6 on: February 23, 2006, 06:12:16 PM »

great!
setting the margin to 0 worked!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: