So, you’ve designed a nice flowing email with full-width images that blend perfectly into background coloured text boxes. You’re now building it in MailChimp when you realise… oh, how do I remove the border from ‘boxed text’ containers? Frustratingly there currently is no option to turn off the padding. However, when we recently hit this problem, one of our awesome Dev guys accepted the challenge and found a solution.
Guide on removing the padding from MailChimp boxed text
Start by styling a ‘boxed text’ container exactly how you’d like it.
Preview the email, right click and select ‘Inspect Element’.
Click on the boxed text container which will reveal the HTML code.
Scroll up to find the start of the tag, right click and select ‘Edit as HTML’
Select all and copy.
Go back to the MailChimp template editor. Drag and drop a ‘Code’ block under your boxed text.
Remove the placeholder HTML code and paste in your copied code.
Now here is where we remove the padding. Find where it says padding-top: 9px;padding-left: 18px;padding-bottom: 9px;padding-right: 18px; and delete it.
The padding has gone! *Hands up in celebration*
Remove the original boxed text and finally preview and test.