Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HELP: Header/Footer Not Aligning with Border

New Here ,
Mar 21, 2018 Mar 21, 2018

Capture.JPG

Hello!

I am having issues getting my header aligned with my border, see image. I've made sure the pixel widths are the same, but for some reason it's not working. I've checked all of the padding, margins, alignments and everything is set to "0" and centered. It is also happening with the footer. HELP!

Thank you!

753
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 21, 2018 Mar 21, 2018

Below is a responsive email template. 

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Responsive Email Template</title>

<!-- CSS Reset -->

<style type="text/css">

html, body {

    margin: 0 !important;

    padding: 0 !important;

    height: 100% !important;

    width: 100% !important;

}

* {

    -ms-text-size-adjust: 100%;

    -webkit-text-size-adjust: 100%;

}

.ExternalClass { wi

...
Translate
LEGEND ,
Mar 21, 2018 Mar 21, 2018

Could you provide your code so we can see if there is anything there that might cause this?

It's helpful if you use Advanced Editor and highlight the code, then use >> Syntax Highlighting to encapsulate your code to make it easier to read.

Like this.

..

This is syntax highlighted

V/r,

^ _ ^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2018 Mar 21, 2018

Will this work? I do not have Advanced Editor. As an FYI - this is for an email, not a website.

.

.

.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>2018 NCAA March Madness Bracket</title>

<style type="text/css">

<!--

a:link {

color: #006098;

text-decoration: none;

}

a:visited {

text-decoration: none;

color: #184873;

}

a:hover {

text-decoration: underline;

color: #006098;

}

a:active {

text-decoration: none;

font-size: 12px;

color: #006098;

text-align: center;

}

.New {

text-align: center;

font-style: italic;

color: #5880a0;

font-size: 10px;

}

.new {

text-align: center;

font-style: normal;

position: fixed;

}

.New {

text-align: center;

}

.Footer {

text-align: justify;

}

.Subheader {

font-size: 14px;

}

.Footer1 { text-align: justify;

}

.Footer1 { text-align: justify;

}

.style446 {color: #003366; font-weight: bold; font-size: 14px; }

.style21 {

color: #4C6784;

font-size: 9px;

}

-->

</style></head>

<body bgcolor="#ffffff" text-align="center" style="background-color:#fff; margin:0 auto; padding:0; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif; font-size: 9px;">

<table align="center" cellpadding="0" cellspacing="0" style="padding:0; margin:0 auto; text-align:center;" width="800">

<table align="center" border="1" bordercolor="#f4f2ef" cellpadding="0" cellspacing="0" style="padding:0; margin:0 auto; text-align:center;" width="800">

<tbody>

<tr>

<td align="center" style="padding:0; margin:0; text-align:center; "width="800" class=""><a href="http://www.tmcapital.com"><img alt="TM Capital " border="0" height="128" src="http://web.tmcapital.com/tmc/tmc_img/tmcc/header/header_prism_800_plain.jpg" style="padding: 0px; margin: 0px; display: block; width: 803px; height: 128px; border-width: 0px; border-style: solid;" width="800"></img></a></td>

</tr>

<tr>

<td align="center" bgcolor="#ffffff" height="0" style="text-align:justify; padding:0; margin:0;">

<table align="center" border="0" cellpadding="0" cellspacing="0" width="800">

<tbody>

<tr bgcolor="#FFFFFF">

<td align="center" style="padding:0; margin:0; " valign="center" class="">

<div align="center">

<table align="center" border="0" cellpadding="0" cellspacing="0" style="color: rgb(61, 61, 61); font-family: &quot;lucida grande&quot;, &quot;lucida sans unicode&quot;, &quot;lucida sans&quot;, verdana, tahoma, sans-serif; font-size: 10px; font-stretch: normal; line-height: 16px; padding: 0px; text-align: center; width: 800px;" td="" valign="center" width="800">

<tbody>

<tr>

<td style="padding: 0px; margin: 0px; vertical-align: top; font-size: 12px; width: 260.2px; height: 800px;">

<table border="0" cellpadding="0" cellspacing="0" class="pd-table" style="width: 800px; border-width: 2px; border-style: solid; border-color: rgb(0, 96, 152);">

<tbody>

<tr>

<td style="width: 800px;">

<h1 style="text-align: center;"><img alt="2018 NCAA March Madness" border="0" height="800" src="http://web.tmcapital.com/tmc/2018_Firm_Events/MM18_Sweet16.jpg" style="width: 800px; height: 800px; border-width: 0px; border-style: solid;" width="800"></h1>

</td>

</tr>

</tbody>

</table>

</td>

</tr>

</tbody>

</table>

</div>

</td>

</tr>

</tbody>

</table>

</td>

</tr>

<tr>

<td style="padding:0; margin:0;">

<table cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td colspan="0" style="padding:0; margin:0;">

<table border="0" cellpadding="0" cellspacing="0" style="padding:0; margin:0; " width="652">

</table>

</td>

</tr>

<tr>

          <td colspan="0" style="padding: 0px; margin: 0px; "class=""><img src="http://web.tmcapital.com/tmc/tmc_img/tmcc/footer/footer_prism_800.jpg" alt="" border="0" style="padding:0; margin:0; display:block;"</img></td>

        </tr>

</tbody>

</table>

</td>

</tr>

</tbody>

</table>

</table>

<div align="center"><span style="color:#3d3d3d; font: 10px/16px 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Verdana, Tahoma, sans-serif; padding:0; margin:0 0px 0px 0px;"><font face="arial Unicode, sans-serif">This email was sent by TM Capital Corp.<br>

641 Lexington Avenue, 30th Floor, New York, NY, 10022<br>

<a href="%%email_preference_center%%">Manage Subscription Preferences Here</a><br>

<a href="%%unsubscribe%%">Unsubscribe from all TM Capital Mailings Here</a></font></span></div>

</body>

</html>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018
LATEST

Below is a responsive email template. 

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title>Responsive Email Template</title>

<!-- CSS Reset -->

<style type="text/css">

html, body {

    margin: 0 !important;

    padding: 0 !important;

    height: 100% !important;

    width: 100% !important;

}

* {

    -ms-text-size-adjust: 100%;

    -webkit-text-size-adjust: 100%;

}

.ExternalClass { width: 100%; }

div[style*="margin: 16px 0"] { margin: 0 !important; }

table, td {

    mso-table-lspace: 0pt !important;

    mso-table-rspace: 0pt !important;

}

table {

    border-spacing: 0 !important;

    border-collapse: collapse !important;

    table-layout: fixed !important;

    margin: 0 auto !important;

}

table table table { table-layout: auto; }

img { -ms-interpolation-mode: bicubic; }

.yshortcuts a { border-bottom: none !important; }

a[x-apple-data-detectors] { color: inherit !important; }

</style>

<style type="text/css">

/* What it does: Hover styles for buttons */

.button-td,  .button-a { transition: all 100ms ease-in; }

.button-td:hover,  .button-a:hover {

    background: #555555 !important;

    border-color: #555555 !important;

}

/* Media Queries */

@media screen and (max-width: 600px) {

.email-container { width: 100% !important; }

.fluid,  .fluid-centered {

    max-width: 100% !important;

    height: auto !important;

    margin-left: auto !important;

    margin-right: auto !important;

}

.fluid-centered {

    margin-left: auto !important;

    margin-right: auto !important;

}

.stack-column,  .stack-column-center {

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    direction: ltr !important;

}

.stack-column-center { text-align: center !important; }

.center-on-narrow {

    text-align: center !important;

    display: block !important;

    margin-left: auto !important;

    margin-right: auto !important;

    float: none !important;

}

table.center-on-narrow { display: inline-block !important; }

}

</style>

</head>

<body bgcolor="#e0e0e0" width="100%" style="margin: 0;" yahoo="yahoo">

<table bgcolor="#e0e0e0" cellpadding="0" cellspacing="0" border="0" height="100%" width="100%" style="border-collapse:collapse;">

<tr>

<td><center style="width: 100%;">

<!-- Visually Hidden Preheader Text : BEGIN -->

<div style="display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;font-family: sans-serif;"> (Optional) This text will appear in the inbox preview, but not the email body. </div>

<!-- Visually Hidden Preheader Text : END -->

<table align="center" width="600" class="email-container">

<tr>

<td style="padding: 20px 0; text-align: center"><img src="https://dummyimage.com/200x50" alt="alt_text" border="0"></td>

</tr>

</table>

<table cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="#ffffff" width="600" class="email-container">

<!-- Hero Image, Flush : BEGIN -->

<tr>

<td class="full-width-image"><img src="https://dummyimage.com/600x300"  alt="alt_text" border="0" align="center" style="width: 100%; max-width: 600px; height: auto;"></td>

</tr>

<tr>

<td style="padding: 40px; text-align: center; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555;"> Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat. <br>

<br>

<!-- Button : Begin -->

<table cellspacing="0" cellpadding="0" border="0" align="center" style="margin: auto">

<tr>

<td style="border-radius: 3px; background: #222222; text-align: center;" class="button-td"><a href="http://www.google.com" style="background: #222222; border: 15px solid #222222; padding: 0 10px;color: #ffffff; font-family: sans-serif; font-size: 13px; line-height: 1.1; text-align: center; text-decoration: none; display: block; border-radius: 3px; font-weight: bold;" class="button-a">

<!--[if mso]>    <![endif]-->A Button<!--[if mso]>    <![endif]-->

</a></td>

</tr>

</table>

</td>

</tr>

<!-- Background Image with Text -->

<tr>

<td bgcolor="#222222" valign="middle" style="text-align: center; background-position: center center !important; background-size: cover !important;"><!--[if gte mso 9]>

                    <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:175px; background-position: center center !important;">

                    <v:fill type="tile" src="assets/Responsive/Image_600x230.png" color="#222222" />

                    <v:textbox inset="0,0,0,0">

                    <![endif]-->

<div>

<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td valign="middle" style="text-align: center; padding: 40px; font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #ffffff;"> Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent laoreet malesuada cursus. Maecenas scelerisque congue eros eu posuere. Praesent in felis ut velit pretium lobortis rhoncus ut erat. </td>

</tr>

</table>

</div>

<!--[if gte mso 9]>

</v:textbox>

</v:rect>

<![endif]--></td>

</tr>

<!-- Two Even Columns-->

<tr>

<td align="center" valign="top" style="padding: 10px;"><table cellspacing="0" cellpadding="0" border="0" width="100%">

<tr>

<td class="stack-column-center"><table cellspacing="0" cellpadding="0" border="0">

<tr>

<td style="padding: 10px; text-align: center"><img src="https://dummyimage.com/270x270" width="270" height="270" alt="alt_text" border="0" class="fluid"></td>

</tr>

<tr>

<td style="font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding: 0 10px 10px; text-align: left;" class="center-on-narrow"> Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </td>

</tr>

</table></td>

<td class="stack-column-center"><table cellspacing="0" cellpadding="0" border="0">

<tr>

<td style="padding: 10px; text-align: center"><img src="https://dummyimage.com/270x270" width="270" height="270" alt="alt_text" border="0" class="fluid"></td>

</tr>

<tr>

<td style="font-family: sans-serif; font-size: 15px; mso-height-rule: exactly; line-height: 20px; color: #555555; padding: 0 10px 10px; text-align: left;" class="center-on-narrow"> Maecenas sed ante pellentesque, posuere leo id, eleifend dolor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

<!-- Email Footer-->

<table align="center" width="600" class="email-container">

<tr>

<td style="padding: 40px 10px;width: 100%;font-size: 12px; font-family: sans-serif; mso-height-rule: exactly; line-height:18px; text-align: center; color: #555555;"><webversion style="color:#cccccc; text-decoration:underline; font-weight: bold;">View as a Web Page</webversion>

<br>

<br>

Company Name<br>

<span class="mobile-link--footer">Adobe Systems Incorporated, 345 Park Avenue</span> <br>

<br>

<unsubscribe style="color:red; text-decoration:underline;">unsubscribe</unsubscribe></td>

</tr>

</table>

</center></td>

</tr>

</table>

</body>

</html>

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018

Could you please provide the code to your page?

The easiest way would be to post a link to your work in progress on a server you control in the forum so we could see it in our browsers.

A very distant second would be to post the entire html and css of the page in the forum itself. Don't use email for that though, it won't some through.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018

Is this "border" coming from HTML, CSS or an image?

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018

Headers and footers are block level elements.

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines