If you're struggling with spacing in your email layout, try incorporating font-size: 0px; to elements that don't contain text.
For example:
<td align="center" bgcolor="#FFFFFF" style="padding: 20px 0 20px 0; border-bottom: 1px solid #cccccc;font-size: 0px;"><img alt="Logo" src="images/logo.png" style="display: block;font-size: 0px;"></td>
In addition, implementing margin: 0px; and padding: 0px; can greatly improve the overall tightness of your email design.
Another useful tip is to enclose the entire layout within a table with a border and remove borders from individual elements inside it. Then, use a border-top for each section to create separation.
The issue with extra pixels may be due to the 2px border, so ensure that adjustments like font-size, margin, and padding are correctly applied to avoid unwanted spaces in textless sections of the email.
Email design can be challenging, especially when catering to clients who require compatibility with older platforms like Lotus Notes 7. Consider exploring Litmus for thorough testing across different email clients to ensure a seamless experience for all recipients.