The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

the line-hights between paragraph

Code:

<p>This is title1. This is title1. This is title1. This is title1. This is title1. This is title1. This is title1.
This is title1. This is title1. This is title1. <span class="textGray">[2004-08-25]</span></p>
<p>This is title2. This is title2. This is title2. This is title2. This is title2. This is title2. This is title2.
This is title2. This is title2. This is title2. <span class="textGray">[2004-08-25]</span></p>
<p>This is title3. This is title3. This is title3. This is title3. This is title3. This is title3. This is title3.
This is title3. This is title3. This is title3. <span class="textGray">[2004-08-25]</span></p>

How can I make a little bit more smaller the line-heights between paragraphs?

Simply specify either top-margin, bottom-margin, or both on your p. Where there is no specification in the CSS, the browser default will apply, so you'll need to specify these margins if you want to change them.

It will mean a bit of trial and error to get the exact look you want.

I recommend making sure your text size is set in a relative unit (e.g. em) and then using this unit for your margins as well, so that when the text is re-sized the space between paragraphs will remain relative to the text size.

For e.g., your style sheet might say:

Code:

p {
margin-top: 0;
margin-bottom: 1.5em;
}

Just play with it till it looks right to you. :-)

If you want to change the line height within the paragraph, set the line-height under p as well. Again, tweak it till it looks right in proportion to the paragraph spacing and text size. I find 1.3em-1.4em works well but diff'rent strokes...

Basically what we're doing is adding space to the bottom of the paragraph but not the top. Otherwise the top and bottom spacing would combine to create even more space.

Em is a relative measurement of the font. I believe it stands for the height of the capital M of that font. So as the font changes the relative measurement changes (for instance from size 12px to size 14px but also between Times to Arial, which have different heights).