Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: How do I single space in a HTML email.??


Message #1 by "David" <mcmahan@b...> on Wed, 18 Jul 2001 04:19:04
David,

You must be talking about line spacing - not spaces between a word. Right?

First of all, if you only need a single space in between a word, you don't 
have to do the  . All you do is "Hello World".

Now, if you want to space a line, use a <br> instead of your <p>. <p> = 
Paragraph - by using this you might be getting a double space. 

Example:

Dear User,<br>
<br>
How are you doing today! All your message will go here.<br>
<br>
Regards,<br>
David Someone<br>
etc.

Use the <br> as the "enter" button on your keyboard. Notice how I am not 
using the <p> - forget about the <p>. Use multiple <br> if you need 
multiple lines. You can use it as many times as you want and there is no 
closing tag needed. Just follow the example above and you should be fine. 
Good luck!

P.S - This will work for either a html e-mail or a html webpage.

Regards,
Elmer M.




> Where you require the space for example
> 
> Hello World
> 
> At 13:25 19/07/01 +0000, you wrote:
> >Put it where ?
> > > try  
> > >
> > > At 10:44 18/07/01 +0100, you wrote:
> > > >How do I single space  in a HTML email.
> > > >
> > > >I have tried:
> > > >   htmlText = htmlText & "<tr>"
> > > >         htmlText = htmlText & "<p style=word-spacing: -1; line-
height:
> > > >100%; margin-top: -1; margin-bottom: -1><b>City:</b>   " & Session
> >("city")
> > > >& "</p>"
> > > >         htmlText = htmlText & "</tr>"
> > > >         htmlText = htmlText & "<tr>"
> > > >         htmlText = htmlText & "<p style=word-spacing: -1; line-
height:
> > > >100%; margin-top: -1; margin-bottom: -1><b>County:</b>   " & Session
> > > >("county") & "</p>"
> > > >         htmlText = htmlText & "</tr>"
> > > >         htmlText = htmlText & "<tr>"
> > > >         htmlText = htmlText & "<p style=word-spacing: 0; line-
height:
> > > >100%; margin-top: 0; margin-bottom: 0><b>State:</b>   " & Session
> >("state")
> > > >& "</p>"
> > > >
> > > >Need Help... Please..
> 

  Return to Index