Search code examples
emailoutlooknewsletter

<hr> tag not working in email template for outlook 2013


I have developed an email template. Everything is working fine in my email template except the hr tag in Outlook 2013.

I have attached images

Result which i am getting:

Result which i am getting

Result which i want:

Result which i want

Please help me with suitable codes.


Solution

  • The <hr> is inconsistently supported in email clients. It's easier to do a horizontal rule in email by using a <table> tag, something like this:

     <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="background:black; height:1px;>
          <tr>
               <td style="font-size:0; line-height:0;">
                    &nbsp;
               </td>
          </tr>
     </table>
    

    It might seem like a lot of code for simple <hr>, but you'll get the best email client coverage by using <table>s.