0

For some reason, line spacing is not working for separating paragraphs, when sending e-mails with this code to my yahoo mail account, or any yahoo mail account. How can I fix this?

Here's what I'm using, but isn't working:

<p style="line-height:150%">
<span style="font-family:Helvetica, Arial, sans-serif; font-size:10.5pt; line-height:150%; color:#333333; margin-bottom: 1em;">Caro [Membro],</span>
</p>
<p style="line-height:150%">
<span style="font-family:Helvetica, Arial, sans-serif; font-size:10.5pt; line-height:150%; color:#333333; margin-bottom: 1em;">Estou escrevendo com uma atualização importante para os membros de N sobre o Programa de Garantia de Obrigações CDFI.</span>
</p>

Looks like this:

line-spacing e-mail problem

How do I fix this? Hell, I even put a margin-bottom on it, and that doesn't even seem to work!

Solomon Closson
  • 6,111
  • 14
  • 73
  • 115

2 Answers2

0

I would advise you not to use <p> in HTML email. In general I would use <tr><td> instead. Optionally you may wish to use <br>, but I don't.

<p> varies quite a lot in each web based email/email client, and is much harder to standardise than <td>.

To perfectly line up the space between paragraphs, I think the most consistent option is to use a transparent image to control the height of the <tr><td>. It should look something like this:

<tr>
  <td>Lorum Ipsum</td>
</tr>
<tr>
  <td height=3px"><img src="http://www.example.com/img/3px.png" alt="" height="3px" />
  </td>
</tr>
<tr>
  <td>Lorum Ipsum</td>
</tr>
<tr>
  <td>Lorum Ipsum</td>
</tr>

3px.png would be a 3px transparent image. If you create emails often enough you will end up with a collection of heights of transparent pngs.

Eoin
  • 1,413
  • 2
  • 17
  • 32
0

The problem is in the Line Height Setting in your Word Processor. To fix this problem:

1) Open your Word Processing program. 2) Open your Document. 3) Go to Edit. 4) Go to Select All. 5) Go to Format. 6) Go to Paragraph. 7) Go to Line Spacing 8) Select Proportional 9) Set to 150% 10) Click OK 11) Paste the Text into your Email Program.

Dave
  • 1