Skip to main content

Hi,

I am using this HTML code shown below in trying to set up a Welcome Email, but not matter what I do, it is leaving a large space before the “Dear...” As if all this code is in the email body, but just not visible.

Someone helped me write this code, and I’m not sure why I’m having a problem.  Any help would be greatly appreciated.  Thanks.

 

<!DOCTYPE html>
<html>
<head>
<style>
@media only screen and (max-width: 600px) {
    .bodyClass {
        font-size: 18px; /* Adjust font size for mobile */
    }
}
</style>
</head>
<body style="font-size: 20px;" class="bodyClass">

<p style="text-align: justify; margin-right: 50px; margin: 0; padding: 0;" class="pClass">Dear {{205625425__name}},</p>

Hi @JF_1010 

Good question.

Try just using this HTML:

Dear {{205625425__name}},
<br>

 


Do you mean remove all the other code and just have the HTML you posted? If so, I’m confused...is the code I pasted not doing anything, just not sure why it is causing issues.


@JF_1010

Try doing some GSearches for tools that help generate the HTML for the body of an email.

Try asking ChatGPT to help write the HTML for the body of an email.


I think the issue was that the “Force Linebreak” setting was set to “True”

 

It appears as though this has to be set to “False” when using HTML