I am new to html and in fact just today figured out the concept behind making tables and combining cells and columns to place things correctly.
A little backstory, I am creating a newsletter header that goes out from our newsletter system to emails. This is meant to be viewed in email and from what I am told our Email Newsletter system does not support divs, so I have to use Table. Secondly our newsletter system does not accept what i am calling (probably wrongfully so) "Global Css Styles" and so everything has to be in line. For instance when this is fixed, I will have to go align each element to center individually for whatever reason.
Now for my problem, The company logo is all the way to the left, and the other elements are all the way to the right. Except, the facebook, twitter, and linkedin logo all have a very small space between them. Now I have tried and tried and tried to search for a solution.
"Space between elements in a table cell HTML"
"Space between elements within a table cell html"
"remove space between html elements" (turned up results but couldn't get it to work for me)
and many others...
Please help me, I don't understand this at all....
<table id="Header" width="700" height="75" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="2">
<a href="https://www.linktechs.net/productcart/pc/home.asp" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderLTILogoWeb.png" height="75" width="250">
</a>
</td>
<td valign="top" align="right" width="" height="36">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_01.png" width="135" height="36">
<a href="https://www.facebook.com/linktechnologiesinc/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_02.png" width="42" height="36">
</a>
<a href="https://twitter.com/linktechsdotnet" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_03.png" width="38" height="36">
</a>
<a href="https://www.linkedin.com/company-beta/9211300/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_04.png" width="41" height="36">
</a>
</td>
</tr>
<tr align="right">
<td colspan="3" align="right" valign="top">
<a href="tel:314-7350270" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_05.png" width="113" height="39">
</a>
<a href="mailto:sales#linktechs.net" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_06.png" width="143" height="39">
</a>
</td>
</tr>
</table>
<!--LINKS TO HEADER FILES IN ORDER
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderLTILogoWeb.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_01.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_02.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_03.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_04.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_05.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_06.png
-->
The actual spaces in your HTML code between the <img> and <a> elements are becoming visible gaps between each of the icons. There are a few ways you could go about fixing this:
Eliminate spaces and line breaks in the HTML itself in this area. You could still space out elements using HTML comments (<!-- -->) for organization, and put line breaks in there.
Put style="font-size: 0;" inline on the <td> holding those images, to see if it eliminates the size of the gaps.
Use CSS float to have the links/images flush up against one another, by putting style="float: left;" on each link.
Here's solution #2 implemented (font-size: 0) on the social media button section for demonstration:
<table id="Header" width="700" height="75" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="2">
<a href="https://www.linktechs.net/productcart/pc/home.asp" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderLTILogoWeb.png" height="75" width="250">
</a>
</td>
<td valign="top" align="right" width="" height="36" style="font-size: 0;">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_01.png" width="135" height="36">
<a href="https://www.facebook.com/linktechnologiesinc/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_02.png" width="42" height="36">
</a>
<a href="https://twitter.com/linktechsdotnet" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_03.png" width="38" height="36">
</a>
<a href="https://www.linkedin.com/company-beta/9211300/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_04.png" width="41" height="36">
</a>
</td>
</tr>
<tr align="right">
<td colspan="3" align="right" valign="top">
<a href="tel:314-7350270" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_05.png" width="113" height="39">
</a>
<a href="mailto:sales#linktechs.net" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_06.png" width="143" height="39">
</a>
</td>
</tr>
</table>
<!--LINKS TO HEADER FILES IN ORDER
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderLTILogoWeb.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_01.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_02.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_03.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_04.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_05.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeaderSlice2_06.png
-->
I am programming a HTML Email to be sent out and can not figure out why its going crazy like this.
I have sent out emails in the past using the same pieces of code ( the footer sections) and it worked fine then and wont work this time around. The code seems to render just fine in chrome via the Dreamworks "real-time Preview" but does not render correctly when opened in Internet Explorer or Edge, or more importantly the outlook mail system. I am new to HTML still and have racked my brain over this to no avail. I spent hours adding in "align="center"" and trying many other things to fix not only the insane footer placement but also the fact it wont center!
Image of what i want it to look like when done
Thanks for the help!
<html>
<head>
<title>8,22,17 eNewsleter 477 and mikrotik</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="width: 700" align="center">
<table id="Header" width="700" height="75" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="2">
<a href="https://www.linktechs.net/productcart/pc/home.asp" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_01.png" height="78">
</a>
</td>
<td valign="top" align="right" height="36">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_03.png" width="130">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_04.png" height="48">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_05.png" height="48">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_06.png" height="48">
</td>
</tr>
<tr align="right">
<td colspan="3" align="right" valign="top">
<a href="tel:314-7350270" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_07.png" width="120"></a><img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_08.png" width="170">
</td>
</tr>
</table>
<!--LINKS TO HEADER FILES IN ORDER
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_01.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_03.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_04.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_05.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_06.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_07.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_08.png
-->
<!-- Save for Web Slices (8,22,17 eNewsleter 477 and mikrotik.psd) -->
<table id="Table_01" width="700" height="923" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_01.png" width="700" height="420" alt="Caution: 477 Section 5.3 data your billing system provides is wrong! Don’t understate your actual coverage area by 90+% using data provided by your billing system. You must have accurate RF propagation maps to get this data correct!">
</td>
</tr>
<tr>
<td>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_02.png" width="700" height="305" alt="Mikrotik Sale at Link Technologies Inc." style="display: block;">
</td>
</tr>
<tr>
<td>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_03.png" width="700" height="198" alt="Link Technology Offers Support" style="display: block;">
</td>
</tr>
</table>
<!-- End Save for Web Slices -->
<!-- BEGIN OF FOOOTER -->
<table id="Footer" align="center" style="width:700px" cellspacing="0" cellpadding="0">
<!--insert additional parts below this line-->
<!-- Start of PowerLink Ad -->
<tr style="position: relative;display: block; padding:0;margin: 0;">
<td colspan="4">
<a href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2251&idcategory=0" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/5th-Power-Link-Footer.png" alt="PowerLink is a battery powered PoE injector with built-in Wi-Fi access point. No more running test cable! 8 watt or 15 watt options available." width="700" height="168" usemap="#Map2" border="0" style="display: block">
</a>
<map name="Map2" style="z-index: 50">
<area shape="rect" coords="344,113,446,155" href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2233&idcategory=0" target="_blank" alt="8 Watt">
<area shape="rect" coords="495,114,594,155" href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2251&idcategory=0" target="_blank" alt="15 watt">
</map>
</td>
</tr>
<!-- End of PowerLink Ad -->
<!--insert additional parts above this line-->
<tr style=";display: block;">
<td>
<a href="https://www.towercoverage.com//" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_01.png" width="175" height="88" alt="TowerCoverage.com">
</a>
</td>
<td>
<a href="http://www.ispradio.com/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_02.png" width="175" height="88" alt="ISP Radio Network" style="display: block">
</a>
</td>
<td>
<a href="https://www.linktechs.net/productcart/pc/viewContent.asp?idpage=33" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_03.png" width="175" height="88" alt="Hotspot Network Manager" style="display: block" align="center">
</a>
</td>
<td>
<a href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2046&idcategory=0" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_04.png" width="175" height="88" alt="Power Router v4" style="display: block" align="center">
</a>
</td>
</tr>
<tr style="position: relative;display: block; padding:0;margin: 0;">
<td>
<a href="##HTMLNewsletterURL##" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_05.png" width="233" height="25" alt="View as HTML">
</a>
</td>
<td style="padding: 0">
<a href="http://news.linktechs.net/members.aspx?Task=FF&S=1&N=54&Format=HTML&E=support%40linktechs.net">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_006.png" width="234" height="25" alt="Forward to a Freind">
</a>
</td>
<td>
<a href="##OptOutURL##">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_07.png" width="233" height="25" alt="Opt Out">
</a>
</td>
</tr>
</table>
<!--LINKS FOR THE IMAGES IN ORDER!
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_01.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_02.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_03.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_04.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_05.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_06.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_07.png
-->
<!-- END OF FOOTER -->
</body>
</html>
I was able to answer my own question for anyone who happens across this. I do not understand why, but adding a second table to the bottom most part of the page fixed the issue.
here is the code fixed this way.
Even though i answered myself, and this is a solution to the problem. I do not understand as to why this is the solution. I just threw things at it until i figured something out that worked. If you know why feel free to answer again and get credit for the true answer.
<html>
<head>
<title>8,22,17 eNewsleter 477 and mikrotik</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Header" width="700" height="75" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td rowspan="2">
<a href="https://www.linktechs.net/productcart/pc/home.asp" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_01.png" height="78">
</a>
</td>
<td valign="top" align="right" height="36">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_03.png" width="130">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_04.png" height="48">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_05.png" height="48">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_06.png" height="48">
</td>
</tr>
<tr align="right">
<td colspan="3" align="right" valign="top">
<a href="tel:314-7350270" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_07.png" width="120"></a>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_08.png" width="170">
</td>
</tr>
</table>
<!--LINKS TO HEADER FILES IN ORDER
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_01.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_03.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_04.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_05.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_06.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_07.png
http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewHeader_08.png
-->
<!-- Save for Web Slices (8,22,17 eNewsleter 477 and mikrotik.psd) -->
<table id="Table_01" height="923" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="699">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_01.png" width="700" height="420" alt="Caution: 477 Section 5.3 data your billing system provides is wrong! Don’t understate your actual coverage area by 90+% using data provided by your billing system. You must have accurate RF propagation maps to get this data correct!">
</td>
</tr>
<tr>
<td>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_02.png" width="700" height="305" alt="Mikrotik Sale at Link Technologies Inc." style="display: block;">
</td>
</tr>
<tr>
<td>
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,22,17_477_MikroTik_Sale/8,22,17-eNewsleter-477-and-mikrotik_03.png" width="700" height="198" alt="Link Technology Offers Support" style="display: block;">
</td>
</tr>
</table>
<!-- End Save for Web Slices -->
<!-- BEGIN OF FOOOTER -->
<table id="Footer" align="center" style="width:700px" cellspacing="0" cellpadding="0">
<!--Add extras below this line-->
<!-- Start of PowerLink Ad -->
<tr style="position: relative;display: block; padding:0;margin: 0;">
<td colspan="4">
<a href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2251&idcategory=0" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/5th-Power-Link-Footer.png" alt="PowerLink is a battery powered PoE injector with built-in Wi-Fi access point. No more running test cable! 8 watt or 15 watt options available."
width="700" height="168" usemap="#Map2" border="0" style="display: block">
</a>
<map name="Map2" style="z-index: 50">
<area shape="rect" coords="344,113,446,155" href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2251&idcategory=0" target="_blank" alt="8 Watt">
<area shape="rect" coords="495,114,594,155" href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2251&idcategory=0" target="_blank" alt="15 watt">
</map>
</td>
</tr>
<!-- End of PowerLink Ad -->
<!--Add extras above this line-->
<tr style="position: relative;display: block; padding:0;margin: 0;">
<td>
<a href="https://www.towercoverage.com//" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/Footer-1-TowerCoverage.png" width="175" height="88" alt="TowerCoverage.com" style="display: block">
</a>
</td>
<td>
<a href="http://www.ispradio.com/" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/Footer-2-ISP-Radio.png" width="175" height="88" alt="ISP Radio Network" style="display: block">
</a>
</td>
<td>
<a href="https://www.linktechs.net/productcart/pc/viewContent.asp?idpage=33" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/Footer-3-HSNM.png" width="175" height="88" alt="Hotspot Network Manager" style="display: block" align="center">
</a>
</td>
<td>
<a href="https://www.linktechs.net/productcart/pc/viewPrd.asp?idproduct=2046&idcategory=0" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/2017/002_August/8,8,2017_Surveillance/Footer-4-PR4.png" width="175" height="88" alt="Power Router v4" style="display: block" align="center">
</a>
</td>
</tr>
</table>
<table id="Footer2" align="center" style="width:700px" cellspacing="0" cellpadding="0">
<tr>
<td>
<a href="##HTMLNewsletterURL##" target="_blank">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_05.png" width="233" height="25" alt="View as HTML">
</a>
</td>
<td style="padding: 0">
<a href="http://news.linktechs.net/members.aspx?Task=FF&S=1&N=54&Format=HTML&E=support%40linktechs.net">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_006.png" width="234" height="25" alt="Forward to a Freind">
</a>
</td>
<td>
<a href="##OptOutURL##">
<img src="http://news.linktechs.net/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_07.png" width="233" height="25" alt="Opt Out">
</a>
</td>
</tr>
</table>
<!--LINKS FOR THE IMAGES IN ORDER!
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_01.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_02.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_03.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_04.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_05.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_06.png
/uploadedimages/000002/Newsletter/00-Permanent-Assets/NewFooterSliced_07.png
-->
<!-- END OF FOOTER -->
</body>
</html>
I am formatting an HTML email and it seems to work on several browsers - but it seems like Outlook is not playing nice on Chrome and IE. I have done a bit of research and know this is something I am missing - I have included the <border="0" style="display: block;"> on all of my images and included the table collapse command in the head:
{
border-collapse: collapse;
}
Yet it is still not working in Outlook on the above browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>SSTM-PSD_email- FINAL</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">
body{
width:100%;
background-color:#ffffff;
margin:0;
padding:0;
}
table{
border-collapse:collapse;
}
table,td,th{
border:0;
}
</style></head>
<body yahoo="fix" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="600" border="0" cellpadding="0" cellspacing="0" style="height:1424px;">
<tr>
<td colspan="2" rowspan="2">
<a href="http://www.southernsoils.com" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email_01_uhhway.png" width="112" height="77" border="0" style="display: block;" alt="SSTM-PSD_email_01_uhhway.png">
</a>
</td>
<td colspan="3" rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email-FINAL_02_zhnbtq.jpg" width="234" height="77" border="0" alt="" style="display: block;">
</td>
<td>
<a href="http://www.southernsoils.com/about.html" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email_03_im3rnp.jpg" width="59" height="53" border="0" alt="" style="display: block;">
</a>
</td>
<td rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_04_bc73iu.jpg" width="17" height="77" border="0" alt="" style="display: block;">
</td>
<td>
<a href="http://www.southernsoils.com/services-and-solutions.html" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807285/SSTM-PSD_email_04_nn4m6d.jpg" width="72" height="53" border="0" alt="" style="display: block;">
</a>
</td>
<td rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_06_zvyubc.jpg" width="20" height="77" border="0" alt="" style="display: block;">
</td>
<td>
<a href="http://www.southernsoils.com/contact.html" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email_05_xzvndy.jpg" width="71" height="53" border="0" alt="" style="display: block;">
</a>
</td>
<td rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_08_a5kwvf.jpg" width="15" height="77" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td>
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_09_yg0who.jpg" width="59" height="24" border="0" alt="" style="display: block;">
</td>
<td>
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_10_zjyaqu.jpg" width="72" height="24" border="0" alt="" style="display: block;">
</td>
<td>
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email-FINAL_11_iniomw.jpg" width="71" height="24" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="11">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_12_g6gbdk.jpg" width="600" height="291" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="11">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807285/SSTM-PSD_email-FINAL_13_dcksnd.jpg" width="600" height="33" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="11">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807285/SSTM-PSD_email-FINAL_14_xigxsd.jpg" width="600" height="410" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="11">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email-FINAL_15_se2wpq.jpg" width="600" height="16" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807285/SSTM-PSD_email-FINAL_16_ataaen.jpg" width="100" height="478" border="0" alt="" style="display: block;">
</td>
<td colspan="7">
<a href="http://www.southernsoils.com/curfewpromo.html" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/LandingPage_nztzrz.jpg" width="394" height="64" border="0" alt="" style="display: block;">
</a>
</td>
<td colspan="3" rowspan="2">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email-FINAL_18_r3kia6.jpg" width="106" height="478" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="7">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/SSTM-PSD_email-FINAL_19_txmwcl.jpg" width="394" height="414" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="11">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_20_js5p6s.jpg" width="600" height="90" border="0" alt="" style="display: block;">
</td>
</tr>
<tr>
<td colspan="3">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807284/SSTM-PSD_email-FINAL_21_kx0vci.jpg" width="177" height="28" border="0" alt="" style="display: block;">
</td>
<td>
<a href="http://www.southernsoils.com" target="_blank">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807285/WebAddress_eeisgv.jpg" width="134" height="28" border="0" alt="" style="display: block;">
</a>
</td>
<td colspan="7">
<a href="mailto:salesadmin#southernsoils.com">
<img src="http://res.cloudinary.com/marketingmaven/image/upload/v1485807283/Email_d4crmz.jpg" width="289" height="28" border="0" alt="" style="display: block;">
</a>
</td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
Looks like you need a few more resets for Outlook. Try adding this to CSS in your <style> tag:
/* What it does: Stops Outlook from adding extra spacing to tables. */
table,
td {
mso-table-lspace: 0pt !important;
mso-table-rspace: 0pt !important;
}
/* What it does: Fix for Yahoo mail table alignment bug. */
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
table-layout: fixed !important;
margin: 0 auto !important;
}
I have a string HTML code like
<table id='topInfoBar' style=" width: 100%;" cellspacing='0' border='0'>
<Tr>
<td id='lockOrder' clientidmode='static' style="text-align:Right;color:black;font-weight:bold">
<img src='.../images/locked.gif' alt='This order is locked' title='This order is locked!' />
</td>
</Tr>
</table>
I want to check if id 'lockOrder' exists in the string and if yes, want to replace img node i.e
<img src='.../images/locked.gif' alt='This order is locked' title='This order is locked!' />
with
<i class="fa fa-search fa-2x cursorpointer" title="This order is locked"></i>
want to do it in c#.
Use property Visible and change it in if
HTML
<table id='topInfoBar' style="width: 100%;" cellspacing='0' border='0'>
<Tr>
<td id='lockOrder' clientidmode='static' style="text-align: Right; color: black; font-weight: bold">
<img src='.../images/locked.gif' alt='This order is locked' title='This order is locked!' runat="server" id="img"/>
<i class="fa fa-search fa-2x cursorpointer" title="This order is locked" runat="server" id="i" Visible="False"></i>
</td>
</Tr>
</table>
CodeBehind C#
if (true)
{
img.Visible = false;
i.Visible = true;
}
I am trying to add a scroll bar on my table but its not showing up on the table. I have tried to put my table in div as well. Here is my code:
<table class="table-condensed table-hover table-bordered" id="EligibiltyAndAccountingReportsTable" cellpadding="0" cellspacing="0" style="width: 45% !important; position: absolute;left: 52px;Top:100px">
<thead>
<tr>
<th>Eligibility Reports</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.duplicateAndOverlappingCoveragesReportPath}}">Duplicate And Overlapping Coverages</a>
<br/>
<p align="left">This report provides a list of SR IDs where<br/> duplicated or overlapping coverage is present.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.openBatchReportPath}}">Open Batches </a>
<br />
<p align="left">This report provides a list of Open Batches<br/> for a given date range by Batch Type.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.refundReportPath}}">Refund</a>
<br />
<p align="left">This report provides a list of Refund Details<br/> for a given Bid Year and Client Number.</p>
</td>
</tr>
</tbody>
</table>
I have tried to put overflow property in CSS
You need to do two things. First, you have to wrap your table in a container that will do the scrolling, like this:
<div style="height: 200px; overflow: auto;">
<table>
...
</table>
</div>
And you have to remove position: absolute from the style of the table.
Here's an example: http://jsfiddle.net/qbkfbrwd/
Hope that helps!
Edit If instead you only want the body of the table to be able to scroll, it's as simple as adding the following CSS:
tbody {
display: block;
height: 200px; //or whatever you want the height to be
overflow: auto;
}
Example: http://jsfiddle.net/f91pzj6d/
Create a div with:
<div id="myTable">
and in css:
myTable {
overflow:auto;
}
I add a div as container and use overflow: auto. You have also to set a height for your table:
#tableContainer {
overflow: auto;
height: 200px;
position: relative;
width: 300px;
}
<div id="tableContainer">
<table class="table-condensed table-hover table-bordered" id="EligibiltyAndAccountingReportsTable" cellpadding="0" cellspacing="0" style="width: 45% !important; position: absolute;left: 52px;Top:100px">
<thead>
<tr>
<th>Eligibility Reports</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.duplicateAndOverlappingCoveragesReportPath}}">Duplicate And Overlapping Coverages</a>
<br/>
<p align="left">This report provides a list of SR IDs where
<br/>duplicated or overlapping coverage is present.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.openBatchReportPath}}">Open Batches </a>
<br />
<p align="left">This report provides a list of Open Batches
<br/>for a given date range by Batch Type.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.refundReportPath}}">Refund</a>
<br />
<p align="left">This report provides a list of Refund Details
<br/>for a given Bid Year and Client Number.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.refundReportPath}}">Refund</a>
<br />
<p align="left">This report provides a list of Refund Details
<br/>for a given Bid Year and Client Number.</p>
</td>
</tr>
<tr>
<td>
<img src="images/reports.png" class="icon" style="margin: 1px;" />
<a target="_blank" data-ng-href="{{vm.refundReportPath}}">Refund</a>
<br />
<p align="left">This report provides a list of Refund Details
<br/>for a given Bid Year and Client Number.</p>
</td>
</tr>
</tbody>
</table>
</div>