Breaking lines, expected end of statement

Status
Not open for further replies.

molonlabe

Member
Outlook version
Outlook 2016 32 bit
Email Account
IMAP
strBody = "<p style='font-family:calibri;font-size:14.5'><br><br><br><br>paragraph goes here. Next paragraph goes here</p>"

I want to break and have a new paragraph before "Next" and I want to break that code so it splits into two lines. How do I do that?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
strBody = "<p style='font-family:calibri;font-size:14.5'><br><br><br><br>paragraph goes here. Next paragraph goes here</p>"
With html, you need to use <p> or two <br>.

I would do it this way, repeating the<p> block if you need more space (or use style='margin-top:30px;' in the <p> - you can try padding-top:30px; too.) -
<p>&nbsp;</p><p style='font-family:calibri;font-size:14.5'>paragraph goes here. </p><p style='font-family:calibri;font-size:14.5'>Next paragraph goes here</p>"
 
Status
Not open for further replies.
Top