Horizontal spaces in outlook - outlook

I'm using all the usual tricks: border="0" on img, style:display: block on img ... nothing seems to work. I'll not that I'm slicing up the images in photoshop and exporting with "save for web", save as "HTML and Images." This happens all the time, everytime I use this slicing method. The PS feature writes table-based markup which is ideal for emails (as you can't use divs and expect them to work in email templates).
Sometime I will reslice everything using different areas and it works but that is a lot of work. I'd like to get it right the first time I slice up everything! And yes, I've read all the topics on here about horizontal spaces in outlook and nothing seems to work.
Here's the markup (image locations removed):
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices -->
<table id="Table_01" width="600" height="1093" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="8">
<img border="0" style="display: block;" src="" width="600" height="98" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img border="0" style="display: block;" src="" width="600" height="119" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img border="0" style="display: block;" src="" width="182" height="442" alt=""></td>
<td colspan="6">
<img border="0" style="display: block;" src="" width="418" height="442" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img border="0" style="display: block;" src="" width="182" height="51" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="140" height="51" alt=""></td>
<td colspan="5">
<img border="0" style="display: block;" src="" width="278" height="51" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img border="0" style="display: block;" src="" width="600" height="128" alt=""></td>
</tr>
<tr>
<td>
<img border="0" style="display: block;" src="" width="150" height="91" alt=""></td>
<td colspan="3">
<img border="0" style="display: block;" src="" width="315" height="91" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="38" height="91" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="42" height="91" alt=""></td>
<td colspan="2">
<img border="0" style="display: block;" src="" width="55" height="91" alt=""></td>
</tr>
<tr>
<td colspan="8">
<img border="0" style="display: block;" src="" width="600" height="79" alt=""></td>
</tr>
<tr>
<td colspan="7">
<img border="0" style="display: block;" src="" width="599" height="84" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="1" height="84" alt=""></td>
</tr>
<tr>
<td>
<img border="0" style="display: block;" src="" width="150" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="32" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="140" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="143" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="38" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="42" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="54" height="1" alt=""></td>
<td>
<img border="0" style="display: block;" src="" width="1" height="1" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>

It is really bad practice to build an entire email of of images. It doesn't render by default in most email clients, takes a long time to download and also triggers some spam filters because your image to text ratio is so low.
That being said, you are getting the vertical gaps because Outlook doesn't know how wide to make each of your cols when you use a colspan in the first row. See this answer for more information on how to enforce the col widths.
Update - Because you want to vary the widths of your cells, you need to use nested tables instead. You can not change the widths of tables from row to row. Here is an example of how you can construct this entire email with nested tables and without a single colspan:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices -->
<table id="Table_01" width="600" height="1093" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="600" height="98" alt="">
</td>
</tr>
<tr>
<td>
<img border="0" style="display: block;" src="" width="600" height="119" alt="">
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="150" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="315" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="38" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="42" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="55" height="91" alt="">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="182" height="442" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="418" height="442" alt="">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img border="0" style="display: block;" src="" width="600" height="128" alt="">
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="150" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="315" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="38" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="42" height="91" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="55" height="91" alt="">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img border="0" style="display: block;" src="" width="600" height="79" alt="">
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="599" height="84" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="1" height="84" alt="">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img border="0" style="display: block;" src="" width="150" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="32" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="140" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="143" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="38" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="42" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="54" height="1" alt="">
</td>
<td>
<img border="0" style="display: block;" src="" width="1" height="1" alt="">
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
As I mentioned before, you should avoid images and use text where text is, not an image of text. Here is an example of how your middle section should look like (the part with the images stacked on the left and text on the right):
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="182" style="padding-bottom:20px;">
<img border="0" style="display: block;" src="" width="182" height="120" alt="">
</td>
<td width="418" valign="top" align="left" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; padding:20px;">
Text 1
</td>
</tr>
<tr>
<td width="182" style="padding-bottom:20px;">
<img border="0" style="display: block;" src="" width="182" height="120" alt="">
</td>
<td width="418" valign="top" align="left" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; padding:20px;">
Text 2
</td>
</tr>
<tr>
<td width="182" style="padding-bottom:20px;">
<img border="0" style="display: block;" src="" width="182" height="120" alt="">
</td>
<td width="418" valign="top" align="left" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; padding:20px;">
Text 3
</td>
</tr>
</table>

I was able to fix the issue by adding widths on each of the TDs.

Related

Outlook to Gmail horizontal gaps

After a couple days of trying to figure this out via my own research, I've officially given up and have come to you experts for help.
I have a client who is requesting the following image be used for their email signature with phone number, email and website clickable, so I've resorted to slicing it up and going that route because image mapping isn't working when being sent from his Mac, although it works on his Mac when I send it via Gmail.
They are using Outlook on a Mac for their business. I'm testing this on Outlook via PC and on other clients via EmailOnAcid before delivering the end-product and having the following problems:
Outlook sent to Outlook
Outlook to Gmail
Outlook to Outlook w/ Line-Height: 0
Outlook to Gmail w/ Line-Height: 0
So essentially, everything initially looks great when sent from Outlook to Outlook, but those annoying horizontal gaps occur in Outlook to Gmail.
When I do the line-height trick, Outlook to Outlook now collapses upon itself while Gmail is now looking good.
I've tried all the tricks here - https://www.emailonacid.com/blog/article/email-development/12_fixes_for_the_image_spacing_in_html_emails - and elsewhere to no avail.
FYI The code might not be very consistent anymore because I've tried a bunch of different things, but it should give you an idea. Also, the resulting image is a bit over twice the size as what I need due to making things high-resolution in the end.
Any help would be super-appreciated... Thanks!
<!DOCTYPE html>
<html>
<head>
<meta>
<title>Untitled Document</title>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="980">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_01.jpg" style="display: block;"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="49px"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_02.jpg" style="display: block;"></td>
<td height="49px"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_03.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_04.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_05.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_06.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_07.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_08.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_09.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_10.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_11.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Try style="border-collapse: collapse !important;" on every TD element and table. That will be your first step.
<!DOCTYPE html>
<html>
<head>
<meta>
<title>Untitled Document</title>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="980">
<tr>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_01.jpg" style="display: block;"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td height="49px" style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_02.jpg" style="display: block;"></td>
<td height="49px" style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_03.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_04.jpg" style="display: block;"></td>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_05.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_06.jpg" style="display: block;"></td>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_07.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_08.jpg" style="display: block;"></td>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_09.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse !important;">
<tr>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_10.jpg" style="display: block;"></td>
<td style="border-collapse: collapse !important;"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_11.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
I have had some luck with this template in Outlook before. Frankly, I am not sure why. What I do to make it work is to open this in Word, copy and paste into Outlook. Dunno, Give it a try?
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Email Signature</title>
<style type="text/css">
body {
background-color: #ffffff;
margin: 0;
padding: 0;
color: #000;
font-family: Arial, Helvetica, sans-serif;
font-size: 75%;
line-height: 5px;
top: auto;
}
/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0; /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
padding-right: 15px;
padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}
a img {
border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
color: #42413C;
text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
color: #6E6C64;
text-decoration: underline;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
text-decoration: none;
}
/* ~~ this fixed width container surrounds all other elements ~~ */
.container {
background-color: #FFF;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}
/* ~~ This is the layout information. ~~
1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
*/
.content {
padding: 0px 0;
}
/* ~~ miscellaneous float/clear classes ~~ */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the overflow:hidden on the .container is removed */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
.container .content div center a {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<blockquote>
<table border="0" cellpadding="0" cellspacing="0" width="980">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_01.jpg" style="display: block;"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="49px"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_02.jpg" style="display: block;"></td>
<td height="49px"><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_03.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_04.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_05.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_06.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_07.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_08.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_09.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_10.jpg" style="display: block;"></td>
<td><img alt="Example Image" border="0" src="https://makalla.com/wp-content/uploads/2017/10/Rebuilt-Signature-v4_11.jpg" style="display: block;"></td>
</tr>
</table>
</td>
</tr>
</table>
</blockquote>
</div>
</div>
</body>
</html>

Issue with EDM Template making

My code:
<td bgcolor="#0096d6">
<table cellspacing="0" cellpadding="0" border="0" width="393" align="center">
<tr>
<td>
<img src="images/x.gif" width="30" height="1" style="display:block;"/>
</td>
<td>
<font style="font-family:'HP Simplified';font-size:28px;color:#ffffff;font-weight:bold;">New Platforms to Elevate ProTrain to the next level in February</font>
</td>
<!--space problem-->
<td>
<img src="images/x.gif" width="30" height="1" style="display:block;"/>
</td>
</tr>
</table>
</td>
How can anybody help to solve this? Here 1 px space is coming after the end of the text <td> in outlook 2016 only.

Anchor around table - NOT working in outlook

I'm developing a newsletter for Mailchimp with below HTML structure for one of the block -
<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td valign="top" class="complete-block">
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Amazon </td>
</tr>
</table>
</a>
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Apple iBooks </td>
</tr>
</table>
</a>
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Nook </td>
</tr>
</table>
</a>
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Google </td>
</tr>
</table>
</a>
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Kobo </td>
</tr>
</table>
</a>
<a href="#" target="_blank">
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton display-inline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent"> Sony </td>
</tr>
</table>
</a>
</td>
</tr>
The problem is that when I tested the template on Outlook, I found that my buttons [Amazon, google, nook etc] don't have LINK.
What am I missing? Can't we wrap a table in anchor tag?
HTML emails still lack the features that browsers makeup for on websites, it's like developer in HTML for IE 5. The anchor tag will not work around tables and sometimes will not even work around divs, however obviously webpages do not have these problems. This is due to the standards not really being recognised by mail clients as they are in browsers.
Try wrapping the content in the cells in just the anchor tag, around your button:
<table border="0" cellpadding="9" width="100%" align="center" cellspacing="0" class="templateButton displayinline" mc:hideable>
<tr>
<td align="center" valign="middle" class="templateButtonContent">
Sony
</td>
</tr>
</table>
I know it's not ideal, however it is a way around this problem.

Having issue in outlook for newsletter

I have problem for extra spacing in outlook and you can see on attached image i highlighted in red color. I used p for this image
the code is for this image
<p style=" width:125; height:125; margin:0px; padding:0px 10px 0px 10px; float:right; line-height:125px; "><img src="http://hmsdesignz.com/newsletter/6of6/images/icon.jpg" alt="" width="125" height="125" hspace="0" vspace="0" border="0" align="right" style="display:block;"/></p>
!
Please advice me how can I remove this extra spacing
Need more of the code to see how it is interacting with the html around it.
You are using a <p> tag, which I'd avoid. The image should be in a table cell by itself.
Something like this:
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="70" bgcolor="#959595">
your sign-off text here
</td>
<td width="100" height="70" bgcolor="#757575">
<img src=""... style="display:block;">
</td>
</tr>
<tr>
<td width="600" height="70" colspan="2" bgcolor="#252525">
footer
</td>
</tr>
</table>

Content Wont Scroll With Footer And Header Fixed

I have set both the header and the footer to fixed but still cannot get the content to adjust in IPhone.
Here is my layout code
<body>
<div data-role="page" #(Page.Id == null ? string.Empty : "id=" + Page.Id) data-fullscreen="false">
#* #RenderSection("MoreCode", false)*#
#if (IsSectionDefined("Header"))
{
<div data-role="header" data-position="fixed">
#RenderSection("Header", false)
</div><!-- /header -->
}
<div data-role="content">
#RenderBody()
</div><!-- /content -->
<div data-role="footer" data-tap-toggle="false" data-position="fixed">
<div class="center-wrapper">
<table border="0">
<tr>
<td>
<label for="basic">
Place Of Interest
</label>
</td>
</tr>
<tr>
<td>
<table border="0">
<tr>
<td>
Terms of Use
</td>
<td>
<label for="basic">
|
</label>
</td>
<td>
Privacy Policy
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
Here is my View
<h3 style='color:#4FA600; font-weight:bold;'>#ViewBag.Number</h3>
<table border="1" width="100%">
<tr>
<td align="center" valign=middle style=' font-weight:bold; color:#FFFFFF; background:#4FA600; '>
<label for="basic">Available Documents</label>
</td>
</tr>
<tr>
<td>
<table width="100%" height="100%">
<tr>
<td align="left" valign="middle" style=' font-weight:bold;'>
Type
</td>
<td align="center" valign="middle" style=' font-weight:bold;'>
Description
</td>
</tr>
#{
foreach(var row in Model)
{
<tr>
<td align="left" valign="middle">
#row.DocType
</td>
<td align="center" valign="middle">
#row.Description
</td>
</tr>
}
}
</table>
</td>
</tr>
</table>
Isnt jquerymobile suppose to manually adjust? It renders fine in firefox. What can I do to make the content fully display?
\The issue was I had this in my css:
[data-role=page]{height: 100% !important; position:relative !important;}
I got this code from use theme roller not sure why this messed it up. Maybe someone can clarify would be appreciated

Resources