Adjusting padding

新規ユーザー

Hi everyone; absolute beginner to coding here.

I'm trying to create an email template for press releases, and for some reason, both I and Hubspot's support team have been unable to adjust the padding within the main content section. http://info.harvestofaz.com/template-test

I honestly have no idea how to even add in all this code, since I'm limited to 20,000 characters. Any advice?

 

Let me know if any of you can help me add some respectable padding in here to make it a little more presentable.


Thank you!

 

 

返信
0 賛成の数
3件の返信3
Advisor | Platinum Partner

Hi @MacDonaldJE 

This article runs you through how to add CSS styling code to your email template: https://knowledge.hubspot.com/articles/kcs_article/email/can-i-add-css-to-the-head-section-of-my-ema...

try adding this:

 

<style>
table#contentTableInner td {
    padding: 0 30px;
    background-color: #323135;
}
</style>


If you want more or less padding on the left and right just increase or decrease the 30px.

(No need to to add the <style> and </style> tags again if they are already present in the additional head markup, just add the rest of the code between those tags)


Did my post help answer your query? Help the Community by marking it as a solution.

Matthew Shepherd

An Inbound Growth Agency
Platinum HubSpot Partner

Highlighted
新規ユーザー

Matthew, thanks for getting back to me!

 

I actually ended up adding:
padding-left: 20px;
and
padding-right: 20px;

 

to .bodycontent{

 

and it seems to have worked when I go to preview it; I'm able to see the padding I want. However, once I go to create an email from it, the correct padding disappears...

返信
0 賛成の数
Advisor | Platinum Partner

@MacDonaldJE 

Where did you add this CSS?

When I test adding padding to .bodyContent (tested in a browser not an email client - also note the capital C in bodyContent) it does work in the browser. Maybe if it doesn't work in your email give the code above a try?


Did my post help answer your query? Help the Community by marking it as a solution.

Matthew Shepherd

An Inbound Growth Agency
Platinum HubSpot Partner

返信
0 賛成の数