Email template boilerplate - unable to set row height

Scott picture Scott · Feb 8, 2012 · Viewed 8k times · Source

I'm using this boilerplate: http://htmlemailboilerplate.com/

I want a table row to be 6px of height and one row to be 1px of height. No matter what I try the table rows wont go less than a height of 15px. Coincidently 15px is the font-size.

Code:

...
<tr>
    <td height="6" style="height: 6px;">&nbsp;</td>
</tr>
<tr>
    <td height="1" style="height: 1px;"><img src="images/bar.gif" width="220" height="1" /></td>
</tr>
...

Any way I can get this table rows to be the height I want?

Answer

greener picture greener · Feb 8, 2012

Did you try using CSS to set line-height:1px on your td?