Outlook 14 iOS rendering issues - html

hello longtime lurker first time asker - im having an issue with outlook 14 on iOS. I send a test send and it begins to render the mobile view as it should look then it gets to a point and sizes everything down as if its desktop. coupla code blocks for reference:
<table align="center" border="0" cellpadding="0" cellspacing="0" class="wrapper" style="width:600px;" width="600">
<tr>
<td align="center" bgcolor="#EAE6DD" height="auto" style="background-size:cover;height:auto; background-position:center;" valign="middle">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- IMAGES AND TEXT SIT WITHIN THIS AREA -->
<tr>
<td align="center" class="hide" style="width:600px;" valign="top" width="600">
<img alt="Hey! you've earned this - enjoy a burg on us!" border="0" src="https://image.email.grilld.com.au/lib/fe3915707564067c721778/m/1/Taken_GIF_v2.gif" style="display:block;font-family:Arial, sans-serif;color:#ffffff;font-weight:bold;font-size:24px;max-width:600px;" width="600"></td><!--[if !mso 9]><!--><td align="center" valign="top">
<div class="mobile_show" style="display:none;width:0;overflow:hidden;max-height:0!important">
<table align="center" border="0" cellpadding="0" cellspacing="0" class="wrapper" width="100%">
<tr>
<td align="center" style="width:600px;" valign="top" width="600">
<img alt="Hey! you've earned this - enjoy a burg on us!" border="0" height="auto" src="https://image.email.grilld.com.au/lib/fe3915707564067c721778/m/1/Taken_GIF_mobile_v2.gif" style="display:block;font-family:Arial, sans-serif;color:#ffffff;font-weight:bold;font-size:24px;max-width:600px;" width="100%"></td></tr></table></div></td><!--<![endif]--></tr><!-- IMAGES AND TEXT SIT WITHIN THIS AREA --></table></td></tr></table><!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]--></td></tr></table>
<table align="center" border="0" cellpadding="0" cellspacing="0" class="wrapper" style="width: 600px;" width="600">
<tr>
<td align="center" bgcolor="#EAE6DD" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="width: 30px;" width="30">
</td><td align="center" valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" class="intro_width_mobile">
<tr>
<td height="20" style="height:20px; line-height:1px; font-size:1px;">
</td></tr><tr>
<td align="center" class="black" style="color:#000000; font-family:'Custom Font 1','Helvetica Neue',Helvetica, Arial, sans-serif; font-size:16px; line-height:21px; width:100%; max-width:464px; margin:0 auto; Margin:0 auto" valign="top" width="100%">
There's more where that came from, so stop by again soon.<br>
<br>
Burg apetit!<br>
</td></tr><tr>
<td height="20" style="height:20px; line-height:1px; font-size:1px;">
</td></tr></table></td><td style="width:30px;" width="30">
</td></tr></table></td></tr></table>
TIA for your help

Outlook apps try and 'fix' your large images by adding a max-width:100% to their CSS. But if you use e.g. max-width:600px as you are, it will be overridden. You can overwrite this by using max-width:600px!important inline (or an id on your body, e.g. #body .myimage {max-width:600px!important}).
Alternatively, you could rely on width:100%, which you don't have on your first image.
That's probably the trigger (big images or tables which it can't resize properly). Let us know if that doesn't solve it.

Related

Z-Index Text Over Image Outlook Email Client

I am trying to make this piece work properly in outlook. I have text over an image that sits over a light blue background. I adjusted the z-index for each piece and played around with the positioning of each piece by setting them as relative and absolute. The background sits over the image just fine, but the text does not show. Below is the code. Any idea what is going wrong?
`
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="mobile-hide-outlook wrap-outlook" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
<div class="mobile-hide wrap" style="background:#F3F8FA;background-color:#F3F8FA;margin:0px auto;max-width:600px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
<tbody>
<tr>
<td style="direction: ltr; font-size: 0px; text-align: center; padding: 10px 30px;" align="center">
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
<tbody>
<tr>
<td style="vertical-align:top;padding:0;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:480px;" width="480"><tr><td style="line-height:0;font-size:0;mso-line-height-rule:exactly;"><v:image style="border:0;height:220;mso-position-horizontal:center;position:absolute;top:0;width:480px;z-index:-1;" src="https://go.covetrus.com/l/935183/2022-10-10/c8dlg/935183/1665413087E22V6ADi/booth_photo.png" xmlns:v="urn:schemas-microsoft-com:vml" /><![endif]-->
<div style="margin:0 auto;max-width:600px;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
<tr style="vertical-align:top;">
<td style="background:url('https://go.covetrus.com/l/935183/2022-10-10/c8dlg/935183/1665413087E22V6ADi/booth_photo.png') no-repeat right center / cover;background-position:center;background-repeat:no-repeat;padding:0px 0px;vertical-align:top;background-size:contain;">
<!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" style="width:480px;" width="480" ><tr><td style="z-index:0;position:absolute;"><![endif]-->
<div class="mj-hero-content" style="margin:0px auto;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;margin:0px;">
<tr>
<td style="padding: 40px 0;">
<table border="0" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td align="center" style="font-size:0px;padding:0px 340px 0px 50px;word-break:break-word;">
<div class="keep-white" style="font-family:'Mulish', Arial;font-size:24px;font-weight:500;line-height:28px;text-align:left;color:#FFFFFF;">Connect with us at the Covetrus<sup style="font-size:10px;line-height:10px">®</sup> <span style="color:#27BDBE">Booth #10059</span></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<!--[if mso | IE]></td></tr></table><![endif]-->
</td>
</tr>
</table>
</div>
<!--[if mso | IE]></td></tr></table><![endif]-->
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--[if mso | IE]></td></tr></table><![endif]-->
</td>
</tr>
</tbody>
</table>
</div>
`
I tried giving the background color the lowest z-index and then the background image the middle z-index and the text, the highest index. I also tried adjusting the position as absolute, fixed and relative. All to no avail. I cannot get the text to show up. This error is only in relation to outlook.

How to make an image size responsive within a td tag?

I've got an image within a relatively complex table structure and inside a td tag. I'm trying to make the image response so that when the page is viewed on mobile, the image is slightly scaled down vs. when viewed on a desktop i.e. ideally, I want it to be 50% of the width page.
I've tried adding a max-width on the img tag as well as the tg tag outside it and neither appeared to work.
My code:
<html>
<table bgcolor="#efefef" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<!--[if (gte mso 9)|(IE)]>
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<![endif]-->
<table width="100%" class="maxW" style="max-width: 600px; margin: auto;" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="center">
<table width="94%" border="0" cellpadding="0" cellspacing="0" style="padding-bottom:10px">
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="94%" border="0" cellpadding="0" cellspacing="0" style="padding-bottom:10px">
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="middle" style="font-family:Helvetica, Arial, sans-serif; font-size: 12px; color: #353535; padding:3%; padding-top:5px; padding-bottom:5px;">
.........
</td>
</tr>
<tr>
<td align="center" valign="middle" style="padding:1%; padding-top:10px; padding-bottom:5px;"><img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" style="max-width: 50%"></img></td>
</tr>
</table>
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</td>
</tr>
</table>
</html>
You can try display:inline-block for every column in your table. It will make the columns shift below each column when width of the screen decreases and make tr text-align: center;

Random Lines Appearing in HTML Email on outlook 2016

We've been using mailchimp for creating simple email templates then exporting the code and using it in other clients to send those ones out. The problem im having are these random lines under certain tables and between others. I've tried adding a blank <td> with black background colour and specific width and heights but that doesn't seem to get rid of the white lines. Here is what the part at the bottom looks like in office 2016:
Ignore the yellow highlight text
This is what it looks like on other email clients and browsers:
Apologies for the poor quality but as you can see there are white lines under the text tables and between the text and buttons. Here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> <head><!--[if gte mso 15]> <xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gt mso 15]> <style type="text/css" media="all"> /* Outlook 2016 Height Fix */ table, tr, td{border-collapse: collapse;}tr{font-size:0px; line-height:0px; border-collapse: collapse;}</style><![endif]--> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>An Athena for Every Situation</title> <style type="text/css"> p{margin:10px 0; padding:0;}table{border-collapse:collapse;}h1,h2,h3,h4,h5,h6{display:block; margin:0; padding:0;}img,a img{border:0; height:auto; outline:none; text-decoration:none;}body,#bodyTable,#bodyCell{height:100%; margin:0; padding:0; width:100%;}.mcnPreviewText{display:none !important;}#outlook a{padding:0;}img{-ms-interpolation-mode:bicubic;}table{mso-table-lspace:0; mso-table-rspace:0;}.ReadMsgBody{width:100%;}.ExternalClass{width:100%;}p,a,li,td,blockquote{mso-line-height-rule:exactly;}a[href^=tel],a[href^=sms]{color:inherit; cursor:default; text-decoration:none;}p,a,li,td,body,table,blockquote{-ms-text-size-adjust:100%; -webkit-text-size-adjust:100%;}.ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{line-height:100%;}a[x-apple-data-detectors]{color:inherit !important; text-decoration:none !important; font-size:inherit !important; font-family:inherit !important; font-weight:inherit !important; line-height:inherit !important;}#bodyCell{padding:10px;}.templateContainer{max-width:600px !important;}a.mcnButton{display:block;}.mcnImage{vertical-align:bottom;}.mcnTextContent{word-break:break-word;}.mcnTextContent img{height:auto !important;}.mcnDividerBlock{table-layout:fixed !important;}body,#bodyTable{background-color:#ffffff;}#bodyCell{border-top:0;}.templateContainer{border:0;}h1{color:#202020; font-family:Helvetica; font-size:26px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; text-align:left;}h2{color:#202020; font-family:Helvetica; font-size:22px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; text-align:left;}h3{color:#202020; font-family:Helvetica; font-size:20px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; text-align:left;}h4{color:#202020; font-family:Helvetica; font-size:18px; font-style:normal; font-weight:bold; line-height:125%; letter-spacing:normal; text-align:left;}#templatePreheader{background-color:#ffffff; background-image:none; background-repeat:no-repeat; background-position:center; background-size:cover; border-top:0; border-bottom:0; padding-top:9px; padding-bottom:9px;}#templatePreheader .mcnTextContent,#templatePreheader .mcnTextContent p{color:#656565; font-family:Helvetica; font-size:12px; line-height:150%; text-align:left;}#templatePreheader .mcnTextContent a,#templatePreheader .mcnTextContent p a{color:#656565; font-weight:normal; text-decoration:underline;}#templateHeader{background-color:#ffffff; background-image:none; background-repeat:no-repeat; background-position:center; background-size:cover; border-top:0; border-bottom:0; padding-bottom:0;}#templateHeader .mcnTextContent,#templateHeader .mcnTextContent p{color:#000000; font-family:Helvetica; font-size:16px; line-height:150%; text-align:left;}#templateHeader .mcnTextContent a,#templateHeader .mcnTextContent p a{color:#2BAADF; font-weight:normal; text-decoration:underline;}#templateBody{background-color:#000000; background-image:none; background-repeat:no-repeat; background-position:center; background-size:cover; border-top:0; border-bottom:0; padding-top:0; padding-bottom:0;}#templateBody .mcnTextContent,#templateBody .mcnTextContent p{color:#202020; font-family:Helvetica; font-size:16px; line-height:150%; text-align:left;}#templateBody .mcnTextContent a,#templateBody .mcnTextContent p a{color:#2BAADF; font-weight:normal; text-decoration:underline;}#templateColumns{background-color:#000000; background-image:none; background-repeat:no-repeat; background-position:center; background-size:cover; border-top:0; border-bottom:2px solid #EAEAEA; padding-top:0; padding-bottom:9px;}#templateColumns .columnContainer .mcnTextContent,#templateColumns .columnContainer .mcnTextContent p{color:#FFF; font-family:Helvetica; font-size:12px; line-height:150%; text-align:left;}#templateColumns .columnContainer .mcnTextContent a,#templateColumns .columnContainer .mcnTextContent p a{color:#2BAADF; font-weight:normal; text-decoration:underline;}#templateFooter{background-color:#000000; background-image:none; background-repeat:no-repeat; background-position:center; background-size:cover; border-top:0; border-bottom:0; padding-top:9px; padding-bottom:9px;}#templateFooter .mcnTextContent,#templateFooter .mcnTextContent p{color:#656565; font-family:Helvetica; font-size:12px; line-height:150%; text-align:center;}#templateFooterSage .mcnTextContent a,#templateFooter .mcnTextContent p a{color:#656565; font-weight:normal; text-decoration:underline;}#templateFooterSage .mcnTextContent,#templateFooter .mcnTextContent p{color:#656565; font-family:Helvetica; font-size:12px; line-height:150%; text-align:center;}#templateFooter .mcnTextContent a,#templateFooter .mcnTextContent p a{color:#656565; font-weight:normal; text-decoration:underline;}</style></head> <body> <span class="mcnPreviewText" style="display:none; font-size:0px; line-height:0px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; visibility:hidden; mso-hide:all;">An Athena for Every Situation</span> <center> <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable"> <tr> <td align="center" valign="top" id="bodyCell"><!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="600" style="width:600px;"><![endif]--> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer"> <tr> <td valign="top" id="templatePreheader"><table class="mcnTextBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnTextBlockOuter"> <tr> <td class="mcnTextBlockInner" style="padding-top:9px;" valign="top"><!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr><![endif]--><!--[if mso]> <td valign="top" width="210" style="width:210px;"><![endif]--> <table style="max-width:210px;" class="mcnTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left" > <tbody><tr> <td class="mcnTextContent" style="padding-top:0; padding-left:18px; padding-bottom:9px; padding-right:18px;" valign="top"> </td></tr></tbody></table><!--[if mso]> </td><![endif]--><!--[if mso]> <td valign="top" width="390" style="width:390px;"><![endif]--> <table style="max-width:390px;" class="mcnTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnTextContent" style="padding-top:0; padding-left:18px; padding-bottom:9px; padding-right:18px;" valign="top"> View this email in your browser </td></tr></tbody></table><!--[if mso]> </td><![endif]--><!--[if mso]> </tr></table><![endif]--> </td></tr></tbody> </table></td></tr><tr> <td valign="top" id="templateHeader"><table class="mcnImageBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnImageBlockOuter"> <tr> <td style="padding:0px" class="mcnImageBlockInner" valign="top"> <table class="mcnImageContentContainer" style="min-width:100%; border-collapse: collapse;" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnImageContent" style="padding-right: 0px; padding-left: 0px; padding-top: 0; padding-bottom: 0; text-align:center;" valign="top"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/2dc82f25-c77f-4372-a010-f0788c2f0d37.jpg" style="max-width:900px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" class="mcnImage" width="600" align="middle"> </td></tr></tbody></table> </td></tr></tbody> </table></td></tr><tr> <td valign="top" id="templateBody"><table class="mcnBoxedTextBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"><!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"><![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td class="mcnBoxedTextBlockInner" valign="top"><!--[if gte mso 9]> <td align="center" valign="top" "><![endif]--> <table style="min-width:100%; border-collapse: collapse;" class="mcnBoxedTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table class="mcnTextContentContainer" style="min-width: 100% !important;background-color: #000000;border: 20px none;" width="100%" cellspacing="0" cellpadding="18" border="0"> <tbody><tr> <td class="mcnTextContent" style="color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;line-height: 100%;text-align: center;" valign="top"> <span style="font-size:27px"><span style="color: #FFFFFF;"><span style="font-family:merriweather sans,helvetica neue,helvetica,arial,sans-serif">An Athena for <strong>EVERY</strong> situation</span></span></span> </td></tr></tbody></table> </td></tr></tbody></table><!--[if gte mso 9]> </td><![endif]--><!--[if gte mso 9]> </tr></table><![endif]--> </td></tr></tbody> </table><table class="mcnTextBlock" style="min-width:100%; border-collapse: collapse;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnTextBlockOuter"> <tr> <td class="mcnTextBlockInner" style="padding-top:9px;" valign="top"><!--[if mso]> <table align="left" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100%;"> <tr><![endif]--><!--[if mso]> <td valign="top" width="600" style="width:600px;"><![endif]--> <table style="max-width:100%; min-width:100%;" class="mcnTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnTextContent" style="padding-top:0; padding-right:18px; padding-bottom:9px; padding-left:18px;" valign="top"> <div style="text-align: center;"><span style="color:#FFFFFF">NEW RELEASES OUT NOW</span></div></td></tr></tbody></table><!--[if mso]> </td><![endif]--><!--[if mso]> </tr></table><![endif]--> </td></tr></tbody> </table><table class="mcnImageBlock" style="min-width:100%; border-collapse: collapse;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnImageBlockOuter"> <tr> <td style="padding:9px" class="mcnImageBlockInner" valign="top"> <table class="mcnImageContentContainer" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnImageContent" style="padding-right: 9px; padding-left: 9px; padding-top: 0; padding-bottom: 0; text-align:center;" valign="top"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/c0528a15-f340-4211-bb27-530086ff99ca.png" style="max-width:1087px; padding-bottom: 0; display: inline !important; vertical-align: bottom;" class="mcnImage" width="564" align="middle"> </td></tr></tbody></table> </td></tr></tbody> </table></td></tr><tr> <td valign="top" id="templateColumns"><!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> <tr> <td align="center" valign="top" width="200" height="95" style="width:200px; height:95px;"><![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="200" height="95" class="columnWrapper"> <tr> <td valign="top" class="columnContainer"><table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionBottomContent" style="border-collapse: collapse;" width="false" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnCaptionBottomImageContent" style="padding:0 9px 9px 9px;" valign="top" align="center"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/1810cbf7-1d5c-4fbb-901c-ba3394c2bad0.jpg" style="max-width:106px;" class="mcnImage" width="106"> </td></tr><tr> <td class="mcnTextContent" style="padding:0 9px 0 9px; height:95px;" width="164" height="95" valign="top"> <span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><span style="color:#cc0033"><strong>Athena™ 850</strong></span><br><span style="color:#FFFFFF"><span style="font-size:12px">- Travels while raised<br>- Transportable by trailer<br>- Non marking tracks as standard</span></span></span><br></td></tr><tr><td></td></tr></tbody></table> </td></tr></tbody> </table></td></tr></table><!--[if gte mso 9]> </td><td align="center" valign="top" width="200" style="width:200px;"><![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="200" class="columnWrapper"> <tr> <td valign="top" class="columnContainer"><table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionBottomContent" style="border-collapse: collapse;" width="false" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnCaptionBottomImageContent" style="padding:0 9px 9px 9px;" valign="top" align="center"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/1810cbf7-1d5c-4fbb-901c-ba3394c2bad0.jpg" style="max-width:106px;" class="mcnImage" width="106"> </td></tr><tr> <td class="mcnTextContent" style="padding:0 9px 0 9px;" width="164" valign="top"> <span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><span style="color:#cc0033"><strong>Athena™ HE- New release</strong></span><br><span style="color:#FFFFFF"><span style="font-size:12px">- Fits through a door<br>- Indoor and outdoor use<br>- Self-levels on up to 20 degrees<br>- Transportable by trailer</span></span></span><br> </td></tr></tbody></table> </td></tr></tbody> </table></td></tr></table><!--[if gte mso 9]> </td><td align="center" valign="top" width="200" style="width:200px;"><![endif]--> <table align="left" border="0" cellpadding="0" cellspacing="0" width="200" class="columnWrapper"> <tr> <td valign="top" class="columnContainer"><table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionBottomContent" style="border-collapse: collapse;" width="false" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnCaptionBottomImageContent" style="padding:0 9px 9px 9px;" valign="top" align="center"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/1810cbf7-1d5c-4fbb-901c-ba3394c2bad0.jpg" style="max-width:106px;" class="mcnImage" width="106"> </td></tr><tr> <td class="mcnTextContent" style="padding:0 9px 0 9px;" width="164" valign="top"> <span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><span style="color:#cc0033"><strong>Athena™ EVO 10.90 - New release</strong></span><br><span style="color:#FFFFFF"><span style="font-size:12px">- New 10 metre working height<br>- Dynamic and Proactive Levelling capabilities<br>- Drives and self levels while in the air<br>- New larger basket design</span></span></span> </td></tr></tbody></table> </td></tr></tbody> </table></td></tr></table><!--[if gte mso 9]> </td></tr></table><![endif]--> </td></tr><tr> <td valign="top" id="templateFooter"><table class="mcnBoxedTextBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"><!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"><![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td class="mcnBoxedTextBlockInner" valign="top"><!--[if gte mso 9]> <td align="center" valign="top" "><![endif]--> <table style="min-width:100%; border-collapse: collapse;" class="mcnBoxedTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table class="mcnTextContentContainer" style="min-width: 100% !important;background-color: #000000;" width="100%" cellspacing="0" cellpadding="18" border="0"> <tbody><tr> <td class="mcnTextContent" style="color: #F2F2F2;font-family: Helvetica;font-size: 14px;font-weight: normal;text-align: center;" valign="top"> <span style="font-size:16px"><strong><span style="color: #CC0033;"><span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif">CLICK THROUGH TO DOWNLOAD A SPEC SHEET OR TO WATCH THE ATHENA™ IN ACTION</span></span></strong></span> </td></tr></tbody></table> </td></tr></tbody></table><!--[if gte mso 9]> </td><![endif]--><!--[if gte mso 9]> </tr></table><![endif]--> </td></tr></tbody> </table><table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionLeftContentOuter" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td class="mcnCaptionLeftContentInner" style="padding:0 9px ;" valign="top"> <table class="mcnCaptionLeftImageContentContainer" cellspacing="0" cellpadding="0" border="0" align="right"> <tbody><tr> <td class="mcnCaptionLeftImageContent" valign="top"> <img alt="" src="athena.jpg" style="max-width:709px;" class="mcnImage" width="264"> </td></tr></tbody></table> <table class="mcnCaptionLeftTextContentContainer" width="264" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnTextContent" valign="top"> <div style="text-align: center;"><span style="font-size:14px"><span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><span style="color: #FFFFFF;">For a full range of ASPAC Specialist Access equipment</span></span></span></div></td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody> </table><table class="mcnDividerBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width:100%; padding:18px;"> <table class="mcnDividerContent" style="min-width: 100%;border-top: 2px solid #FFFFFF;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td> <span></span> </td></tr></tbody></table> </td></tr></tbody> </table><table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionLeftContentOuter" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody><tr> <td class="mcnCaptionLeftContentInner" style="padding:0 9px ;" valign="top"> <table class="mcnCaptionLeftImageContentContainer" cellspacing="0" cellpadding="0" border="0" align="right"> <tbody><tr> <td class="mcnCaptionLeftImageContent" valign="top"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/d733278d-2c92-4a9f-9be1-4f0c6b5266a8.jpg" style="max-width:709px;" class="mcnImage" width="264"> </td></tr></tbody></table> <table class="mcnCaptionLeftTextContentContainer" width="264" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td class="mcnTextContent" valign="top"> <div style="text-align: center;"><span style="font-size:14px"><span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><span style="color: #FFFFFF;">For a full range of ASPAC Specialist Access equipment</span></span></span></div></td></tr></tbody></table> </td></tr></tbody></table> </td></tr></tbody> </table><table class="mcnBoxedTextBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"><!--[if gte mso 9]> <table align="center" border="0" cellspacing="0" cellpadding="0" width="100%"><![endif]--> <tbody class="mcnBoxedTextBlockOuter"> <tr> <td class="mcnBoxedTextBlockInner" valign="top"><!--[if gte mso 9]> <td align="center" valign="top" "><![endif]--> <table style="min-width:100%;" class="mcnBoxedTextContentContainer" width="100%" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody><tr> <td style="padding-top:9px; padding-left:18px; padding-bottom:9px; padding-right:18px;"> <table class="mcnTextContentContainer" style="min-width: 100% !important;background-color: #DA2127;" width="100%" cellspacing="0" cellpadding="18" border="0"> <tbody><tr> <td class="mcnTextContent" style="color: #F2F2F2;font-family: "Helvetica Neue",Helvetica,Arial,Verdana,sans-serif;font-size: 14px;font-weight: normal;text-align: center;" valign="top"> <div style="text-align: center;"><span style="color:#FFFFFF"><span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif"><strong>After Sales Service: </strong></span></span></div><span style="color:#FFFFFF"><span style="font-family:helvetica neue,helvetica,arial,verdana,sans-serif">Maintenance agreements available 24 hour phone support</span></span> </td></tr></tbody></table> </td></tr></tbody></table><!--[if gte mso 9]> </td><![endif]--><!--[if gte mso 9]> </tr></table><![endif]--> </td></tr></tbody> </table></td></tr><tr> <td valign="top" id="templateFooterSage"> <table class="mcnDividerBlock" style="min-width:100%;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnDividerBlockOuter"> <tr> <td class="mcnDividerBlockInner" style="min-width:100%;padding:18px;"> <table class="mcnDividerContent" style="min-width:100%;border-top:2px solid #EAEAEA;" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td> <span></span> </td></tr></tbody> </table> </td></tr></tbody> </table> <table class="mcnCaptionBlock" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody class="mcnCaptionBlockOuter"> <tr> <td class="mcnCaptionBlockInner" style="padding:9px;" valign="top"> <table class="mcnCaptionRightContentOuter" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td class="mcnCaptionRightContentInner" style="padding:0 9px;" valign="top"> <table class="mcnCaptionRightImageContentContainer" cellspacing="0" cellpadding="0" border="0" align="left"> <tbody> <tr> <td class="mcnCaptionRightImageContent" valign="top"> <img alt="" src="https://gallery.mailchimp.com/ea957616d7790e5fcf5872a25/images/0d9da147-38d0-4b35-b132-9798550e40f9.jpg" style="max-width:60px;" class="mcnImage" width="60"> </td></tr></tbody> </table> <table class="mcnCaptionRightTextContentContainer" width="396" cellspacing="0" cellpadding="0" border="0" align="right"> <tbody> <tr> <td class="mcnTextContent" valign="top"> <br>info#sagemedia.com.au +61 8 6336 6430 www.sagemedia.com.au <tr> <td style="width:100px; height:20px;"></td></tr><tr class="unsub"> <td valign="top" align="center">click here to unsubscribe</td></tr></tr></td></tr></tbody> </table> </td></tr></tbody> </table> </td></tr></tbody> </table> </td></tr></table><!--[if gte mso 9]> </td></tr></table><![endif]--> </td></tr></table> </center> </body> </html>
Here is a JSFiddle with formatted html: https://jsfiddle.net/025ox8tp/1/
Thanks for the help. PS I had to minify the code in order to fit everything in.
Problem Solved!!! It turns out it was just one computer that had an issue with this email. Other computers using outlook didnt seem to have the problem and after re-installing outlook on his computer. Problem solved
This is only a workaround that works if it fits your template layout but I thought it would worth sharing.
I find out that the lines appearing are the same color as the background. Therefore setting the background color on the body would hide those imperfections ...
<style>
body { background: #000000; }
</style>

Block of code with no spacing or indentation

I have received a html block of code (email template so lots of tables) that I have to work with that has no spacing or indentation aand is essentially all on one line. It's a nightmare to try and edit it.
Does anyone know of any online tools or applications that you can copy and paste code into where it organises it for you?
olor="#e5e5e5" alink="#000000" class="yfix" leftmargin="0" rightmargin="0" topmargin="0"> <!--//--> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="100%" valign="top" bgcolor="#e5e5e5" align="center"> <table width="698" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="5"><img hspace="0" height="1" width="5" src="http://info.page7media.ie/img/trans.gif" /></td> <td align="left"> <table width="688" cellspacing="0" cellpadding="0" border="0"> <tr> <td height="10"><a name="top_of_mail"></a></td> </tr> <tr> <td align="center"><font face="Arial, Helvetica, sans-serif" size="2" color="red" style="font-size: 12px; line-height: 17px;">If you are unable to see this message, click <a target="_blank" href="http://info.page7media.ie/u/gm.php?UID=JJ20yz3nz2&ID=279438389_478447_36061" style="text-decoration: underline;"><font face="Arial, Helvetica, sans-seri
Try Dirty Markup, it cleaned this markup up nicely
http://www.dirtymarkup.com/
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
olor="#e5e5e5" alink="#000000" class="yfix" leftmargin="0" rightmargin="0"
topmargin="0"> <!--//-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" style="background-color: #E5E5E5" valign="top"
width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="698">
<tr>
<td width="5"><img height="1" hspace="0" src=
"http://info.page7media.ie/img/trans.gif" width=
"5"></td>
<td align="left">
<table border="0" cellpadding="0" cellspacing="0"
width="688">
<tr>
<td height="10">
<a id="top_of_mail" name=
"top_of_mail"></a>
</td>
</tr>
<tr>
<td align="center">
If you are unable to see this message,
click <a href=
"http://info.page7media.ie/u/gm.php?UID=JJ20yz3nz2&ID=279438389_478447_36061"
style="text-decoration: underline;"
target="_blank"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
You're looking for something called a "beautifier".
Here's an online beautifier that supports HTML: http://ctrlq.org/beautifier/
I beautified it for you but noticed the beginning of your code sample is missing.
olor="#e5e5e5" alink="#000000" class="yfix" leftmargin="0" rightmargin="0" topmargin="0">
<!--//-->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="100%" valign="top" bgcolor="#e5e5e5" align="center">
<table width="698" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="5">
<img hspace="0" height="1" width="5" src="http://info.page7media.ie/img/trans.gif" />
</td>
<td align="left">
<table width="688" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="10">
<a name="top_of_mail">
</a>
</td>
</tr>
<tr>
<td align="center">
<font face="Arial, Helvetica, sans-serif" size="2" color="red" style="font-size: 12px; line-height: 17px;">
If you are unable to see this message, click
<a target="_blank" href="http://info.page7media.ie/u/gm.php?UID=JJ20yz3nz2&ID=279438389_478447_36061" style="text-decoration: underline;">
<font face="Arial, Helvetica, sans-seri
Use an online code formatter.
http://ctrlq.org/beautifier/
I grabbed the first one that looked interesting. There are others out there.
http://bit.ly/1Eqgeqr

HTML- Table is wider than specified and content contained inside of it

I will post my HTML, but I'm not sure how the first table (which contains all subsequent tables) is always an additional 2-3 pixels wider than the rest of the content. I have spent the last 2 hours troubleshooting what I believe should be an easy fix... but I can't seem to find any other areas that may be causing the problem. I apologize if the solution is obvious, I haven't designed a website since I was in high school so my skills are a little rusty/aged.
<html>
<head>
<title>Piedmont Wealth Solutions</title>
<style type="text/css"><!--
a:link {
color:000000; font-face:arial; font-size:10pt; text-decoration:none
}
a:visited {
color:000000; font-face:arial; font-size:10pt; text-decoration:none
}
a:active {
color:000000; font-face:arial; font-size:10pt; text-decoration:none
}
a:hover {
color:000000; font-face:arial; font-size:10pt; text-decoration:underline
}
body {
color:Body; font-size:10pt; font-family:Arial;
}
td {
color:Body; font-size:10pt; font-family:Arial
}
--></style>
</head>
<body bgcolor="e9e9e9" background="page_bg.gif" font face="arial" size="10" valign="top" topmargin="0" leftmargin="180">
<table width="537" cellspacing="0" cellpadding="0" valign="top" align="left" height="100%" border="0" bgcolor="265b78">
<tr width="537" valign="top" align="left">
<td valign="top" align="left" width="36" background="table_bg_left.gif">
</td>
<td width="501" valign="top" align="left">
<!------banner/nav----->
<table width="501" valign="top" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="c5c5c5">
<tr valign="top" align="left" border="0">
<img src="banner_nav.jpg" border="0" valign="top" align="left">
<img src="content_top_spacer.jpg" border="0" valign="top" align="left">
</td>
</tr>
</table>
<!------content------>
<table width="501" height="350" cellspacing="0" cellpadding="0" border="0" align="left">
<tr valign="top" align="left">
<td valign="top" align="left" width="356" bgcolor="f5F8Fa">
<img src="aboutus_header.jpg" border="0" valign="top">
<br>
<br>
Content
</td>
<td valign="top" width="144" bgcolor="f0f3f5">
<img src="news_header.jpg" border="0" align="left" valign="top"> <br><br>
google news feed
</td>
</tr>
</table>
<!------address/disclaimer------>
<table width="501" cellspacing="0" cellpadding="0" height="45%" border="0" valign="top" align="left" bgcolor="265b78">
<tr valign="top" align="left">
<td valign="top" align="left" height="15" bgcolor="aac6d5">
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" height="15" bgcolor="7da6bc">
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left">
<img src="bottom_disclosure.jpg" align="left" valign="top" border="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Tables should not be used for layout purposes, that's what CSS is for. Tables are for tabular data. With CSS you have a very nice control over the positioning and dimensions of your content.
Here's a collection of reasons why you should opt for CSS.
This is (IMHO) the best book for a head start.