Bulletproof lists in HTML email

Sometimes <ul>, <ol> and <li> elements can behave weirdly in certain email clients. Your list alignment can be all over the place in every email client, and all in different ways.

The way to fix this is not to use a list at all.

The absolute best way to achieve bulletproof lists in HTML email is to create a table with an &bull; character (or your chosen marker) in one column, with the content in a column next to it.

Some sample code is below:

 

Outlook 2007/10 + Borders = Pain

I thought I had everything sorted when it comes to Outlook 2007 and 2010, but I forgot the fact that it can be so weird about borders.

The two things I learned today are:

1. Always remember to use border-collapse: collapse on your tables in Outlook, and

2. When Outlook is displaying a 2px border when you asked for a 0px border, remember that (weirdly) shorthand works better for borders in ALL email clients.

This page really helped me out — turns out that, unlike any other attributes, borders benefit from being written in shorthand, i.e:

border-top: 1px solid #000000;

So there you go. That eliminated all of my woes in Outlook, where I was trying to specify a border-bottom-width of 0px.

Hallelujah!