# Padding issue on emails help

**URL:** <https://community.hubspot.com/t/padding-issue-on-emails-help/46925>\
**Category:** CMS Development\
**Tags:** css, email, html, enterprise\
**Created:** [November 13, 2021, 11:43pm UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925 "2021-11-13T23:43:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZMunshi](https://avatars.discourse-cdn.com/v4/letter/z/3da27b/32.png) [@ZMunshi](https://community.hubspot.com/u/ZMunshi)\
**Post date:** [November 13, 2021, 11:43pm UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925/1 "2021-11-13T23:43:55Z")

</div>

Hi,

I’ve been working on this newsletter for my company and its a99% complete except for this one little issue which seems so simple yet, i can’t get it right. I’ve been trying to fix this for the last 2 days and i can’t get it right.

Basically i have an image on the left side and text on right. The problem is that the bottom lines are not on the same height. its 50/50 column built on mjml and running the tests on hubspot does not display it correctly. the content side is lower higher than the image side and its like this on email platforms when running on hubspot. the fixes i’ve tried do not make a diff

 ![ZMunshi_0-1636846813954.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/8/6887c7d93e72643eb69d85ccb4550443b4bf70be.jpeg)

here is the code for the table:

```lia-code-sample
<!--[if mso | IE]><tr><td class="" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" bgcolor="#F1F1F1" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
 <div style="background:#F1F1F1;background-color:#F1F1F1;margin:0px auto;max-width:600px;">
 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#F1F1F1;background-color:#F1F1F1;width:100%;">
 <tbody>
 <tr>
 <td style="direction:ltr;font-size:0px;padding:25px;padding-top:0px;text-align:center;">
 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:269.5px;" ><![endif]-->
 <div class="mj-column-per-50 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
 <tbody>
 <tr>
 <td style="background-color:#FFFFFF;vertical-align:top;padding-top:20px;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
 <tbody>
 <tr>
 <td align="center" style="font-size:0px;padding:10px 25px;padding-top:0px;padding-bottom:20px;word-break:break-word;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
 <tbody>
 <tr>
 <td style="width:219px;">
 <img src="{{ module.image_field.src }}" width="100%" height="240px" alt="{{ module.image_field.alt }}"> 
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </div>
 <!--[if mso | IE]></td><td class="" style="vertical-align:top;width:269.5px;" ><![endif]-->
 <div class="mj-column-per-50 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
 <tbody>
 <tr>
 <td style="background-color:#FFFFFF;vertical-align:top;padding-top:20px;padding-bottom:20px;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
 <tbody>
 <tr>
 <td align="left" style="font-size:0px;padding:10px 25px;padding-bottom:0px;word-break:break-word;">
 <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:10px;font-weight:bold;line-height:1;text-align:left;color:#5A2375;">{{module.content_type}}</div>
 </td>
 </tr>
 <tr>
 <td align="left" style="font-size:0px;padding:10px 25px;padding-bottom:5px;word-break:break-word;">
 <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:20px;font-weight:bold;line-height:1;text-align:left;color:#444444;">{{module.title}}</div>
 </td>
 </tr>
 <tr>
 <td align="left" style="font-size:0px;padding:10px 25px;padding-bottom:25px;word-break:break-word;">
 <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:9px;line-height:18px;text-align:left;color:#444444;">{{module.content}}</div>
 </td>
 </tr>
 <tr>
 <td align="left" vertical-align="middle" style="font-size:0px;padding:15px 30px;padding-top:0;padding-right:25px;padding-bottom:10px;padding-left:25px;word-break:break-word;">
 <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
 <tr>
 <td align="center" bgcolor="#4B1268" role="presentation" style="border:none;border-radius:0;cursor:auto;mso-padding-alt:10px 25px;background:#4B1268;" valign="middle">
 <a href="{{module.button_link}}" style="display:inline-block;background:#4B1268;color:#FFFFFE;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:8px;font-weight:bold;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:0;" target="_blank"> {{module.button_text}}</a>
 </td>
 </tr>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </td>
 </tr>
 </tbody>
 </table>
 </div>
 <!--[if mso | IE]></td></tr></table><![endif]-->
 </td>
 </tr>
 </tbody>
 </table>
 </div>
 <!--[if mso | IE]></td></tr></table></td></tr><![endif]-->

```

if more code or the whole template is needed please let know. i’d really like this fixed asap, as its just got to annoying, so all help is appreciated.

Best Regards

Zaki

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [November 15, 2021, 6:57am UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925/2 "2021-11-15T06:57:07Z")

</div>

Thank you for your post Zaki.

I wanted to tag in @Teun and @Anton who have shared great CMS knowledge in the Community before. Teun & Anton, would you be able to share your advice here?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [November 15, 2021, 7:24am UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925/3 "2021-11-15T07:24:23Z")

</div>

Hi @ZMunshi ,

Is this all the code there is? It seems as if a part of the styling is missing. I’m trying to recreate this, but can not get the same result with the code you shared.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 15, 2021, 1:21pm UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925/4 "2021-11-15T13:21:06Z")

</div>

Hi @ZMunshi ,  
You can remove the padding with the help of custom CSS and use ! important.

Hope this helps!

If we were able to answer your query, kindly help the community by marking it as a solution.  
Thanks and Regards.

---

<div class="post-metadata">

**Author:** ![John](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/john/32/43512_2.png) [@John](https://community.hubspot.com/u/John)\
**Post date:** [November 15, 2021, 4:12pm UTC](https://community.hubspot.com/t/padding-issue-on-emails-help/46925/5 "2021-11-15T16:12:02Z")

</div>

Not sure if you’re trying to bottom align the content or not, but if you want to get rid of that space at the bottom then make the wrapping table background color #ffffff and it will look uniform
