Download a free template from campaign monitor and then modify their templates using their structure and format.
You need to use tables and apply styles to the td using old school techniques and inline styles. The tables create the layout as positioning doesn’t work in emails and some don’t even apply margins or padding properly to other elements so create the layout with table cells.
The display: property is patch also so avoid using it and use the table cells and nested tables to create your design.
The best way to learn is to reverse engineer the free email templates from campaign monitor as they are pretty reliable but of course there is nothing that will work for all email clients apart from plain text.
Sitepoint has an old (and updated) article here that may be of use.
Thanks a lot Paul. These mails are for sure a pain. I’ve pretty much gone down the route you suggested. I got a template from somewhere else and edited it to my need, but still ran into the above two problems along with some alignment probs.
The second problem with MS Outlook / MS Mail I found the below solution for
For links you can try nesting a span inside the link and applying styles to the span to over-ride the link colours etc but some email clients don’t like you touching links at all and make them impossible to change.
I avoid heading tags in email and just style the td instead. If you keep it simple there’s more chance of getting a style to show.
It’s a real pain and I hate codeng emails and often turn them down when asked