Easy way to add horizontal line to email body to break up sections of text? | Community
Skip to main content
August 29, 2013
Question

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

  • August 29, 2013
  • 4 replies
  • 19834 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

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

http://www.w3schools.com/tags/tag_hr.asp
Michelle_Tizian
Level 10
August 29, 2013
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). 
August 29, 2013
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.

August 29, 2013
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.