Email

Can I add CSS to the head section of my email templates?

Last updated: September 22, 2017

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A
Service: N/A

Yes, you can add styling to the head section of your email templates by following the instructions below:

  • In your HubSpot Marketing account, navigate to Content > Design Manager.
  • Find and click on the name the email template you wish to modify.
  • Click the Edit dropdown menu at the top and select Edit head.
  • Add the data-hse-inline-css tag into the head section. This will allow you to style your header so it renders across email clients. Learn more here.

    The code should look something like this, but you can add your own styling as you see fit within this tag:
 <style type="text/css" data-hse-inline-css="true">
      td {
         font-family: Arial, sans-serif;
      }
 </style>
  • Click Save, then Publish to take your changes live.

Was this article helpful?