Easy way to add horizontal line to email body to break up sections of text?

Anonymous
Not applicable

Easy way to add horizontal line to email body to break up sections of text?

For several email I create in Marketo, I'd like the ability to insert a horizontal line that expands the length of the email template automatically. The line help to break up content and make clearer sections. Currently, I just add dashes until I get to what I hope is the other sides of the email, but sometimes this doesn't work and the line appears to be an akward length in the actual email. Is there an easy way to insert a horizontal line that is the length of the email?

Thanks!
Alex
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: Easy way to add horizontal line to email body to break up sections of text?

Alex, try using a "<hr>" html tag.

http://www.w3schools.com/tags/tag_hr.asp
Michelle_Tizian
Level 10

Re: Easy way to add horizontal line to email body to break up sections of text?

Yes you can insert an <hr></hr> tag or hard rule. Or in the body of your email, find the spot where you want to insert the hard rule, and click on the icon in the text editor that's right next to the image icon that looks like a tree.  The icon is a blue line.  That's the horizontal rule. A pop up window will appear and just enter the width and height, then click insert. 

Another way you can do this is to insert an image spacer and give it a width and height (1 px). 
Anonymous
Not applicable

Re: Easy way to add horizontal line to email body to break up sections of text?

Yet another way you can accomplish this and keep consistent spacing above and below the line is to add in a table with 2 rows and add a border to the bottom of the first cell, like below:

<p>This is text above the break</p>
<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td style="border-bottom:1px solid #ccc;">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<p>This is text below the break</p>

You can also control the space between the above text/image and the below text/image by adjusting the height of each row.

Anonymous
Not applicable

Re: Easy way to add horizontal line to email body to break up sections of text?

Another way to use the text editor's horizontal rule function is to set to percentage instead of pixels. I use this all the time by setting my horizontal line to 100%, which means it will always stretch the length the email.