Rather than add empty elements (<td>) to get the spacing/alignment within the table you need, try using a &lt;td colspan="4"&gt; it should force the table cell to take up the room of 4 merged cells. (http://www.w3schools.com/tags/att_td_colspan.asp)