0

We have used Salesforce Marketing Cloud's own build-in layouts to build our first email in Marketing Cloud.

As for footer and header, in the Account Settings, we have added the Recommended (not Default, rather Custom and then adding the Recommended code using the blue button) snippet for both Header and Footer. This is, for example, the code for the header.

<html>
<table width="100%" cellspacing="0" cellpadding="0" border="0" style="background:#fff;"> 
    <!-- HEADER CONTENT -->
    <tr>
        <td align="center" valign="top" style="background:#fff;" width="100%">
        <table class="container" cellpadding="0" cellspacing="0" width="600">
            <tr>
                <td align="right" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 11px; color: #959595;" padding:10px 25px 25px 0px;">
            <a href="%%view_email_url%%" alias="Webb-Version" target="_blank" style="font-size:11px; color: #959595; text-decoration: none;">Webb-Version</a>
                </td>
            </tr>
        </table>
        </td>
    </tr>  
</table>

Once we save these settings and go back to the mail and do a test send, we realized that both the header and the footer take the entire width of the email with their white background.

enter image description here

How can we apply HTML so that the header and footer <table> fall within the boundaries of all the other blocks?

0

The Headers and Footers are composed outside of your email table so you can either:

  1. Use a Content Block for the header and footer and have to remember to manually add it to your email.
  2. Or you can change the table width in your headers and footers to pixels to match the table width in your email.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.