Search code examples
htmlcssgmail

Gmail screws up html emails that I send out


This code for a HTML email renders nicely in all clients except gmail. For some reason, the link is not underlined, so the reader doesn't realize its a link. Any ideas on how to overcome this?

Thanks!

<td align="center" bgcolor="#337711" style="color: #ffffff;"><a style="color: #ffffff; text-decoration:underline;" href = "http://www.example.com/">Click</a></td>

Solution

  • Try changing

    <td align="center" bgcolor="#337711" style="color: #ffffff;"><a style="color: #ffffff; text-decoration:underline;" href = "http://www.example.com/">Click</a></td>
    

    To

    <td align="center" bgcolor="#337711" style="color: #ffffff;"><a style="color:#ffffff;text-decoration:underline;" href="http://www.example.com/">Click</a></td>
    

    So remove the spaces between your href and the link.