Email list hosting service & mailing list manager

HTML Emails: Adding & Styling Text

Posted on Nov 18, 2015

In Part 4 of our video series on creating HTML emails we show you how to add text to the email using tables and also style the text using inline CSS.

We've included the code here so that you can copy it and use it to make your own HTML emails:

Demo Email

Hi Anne,
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vitae feugiat ex. Donec eleifend viverra justo. Nam velit arcu, imperdiet sed ante sed, bibendum finibus erat. Maecenas ut elementum odio.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Mauris est lectus, fermentum nec turpis at, dictum eleifend dolor.
Heading 1 Heading 2
Pellentesque dui magna, maximus ut diam eu, aliquam vehicula sapien. Suspendisse sed auctor libero. Integer id velit consectetur. Sed in euismod odio. Mauris pulvinar sem erat, vitae suscipit nisl tincidunt a. Vivamus sed tempus metus, at dignissim ligula.
Best regards,
John Doe


All the content of the email is contained within a table with each paragraph of text being placed in its own table row:

Where text is in two columns the table row contains two table data cells:

Each cell contains the column's text. The columns are given a width of 45% and floated left and right - note that a width of 50% wouldn't give any spacing between the columns and therefore a smaller width is used.


Inline CSS is used throughout - CSS stylesheets are never used for HTML emails.

The table width is set to 100% and the max-width is also set to 600 pixels. This allows the email to be responsive - on large screens the email will be 600 pixels wide while on small screens such as smart phones the email will adjust to fill the width of the screen.

The text is styled to make it look good - the font-family, font-size, text colour and padding are all set using inline styles. These styles are applied to all table data cells.

For a full explanation please see this short video: