Note that there are some explanatory texts on larger screens.

plurals
  1. POOutlook not respecting table cell width in html email
    primarykey
    data
    text
    <p>I am trying to create an HTML email that uses gradients that will render properly in all email clients. I initially tried a vertically repeating 1px by 13px image background using a TD property and CSS but Outlook said "no." Now I have gone to making 13 TD's with a width of 1px and background colors that make up the gradient, but outlook is rending them as about 3px wide with 1px borders.</p> <p>Here is the code. How can I please Outlook, or is there a way to please Outlook? </p> <pre><code>&lt;table width="730px" cellpadding="0px" cellspacing="0" border="0" style="border-collapse:collapse; font-size: 12px; line-height: 1.2; font-family: Arial; margin-left:auto; margin-right:auto; margin-bottom:0;" bgcolor="#fbebd8"&gt; &lt;tr valign="top"&gt; &lt;td bgcolor="#fff" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#fff" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#fdfcfa" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#fcf8f5" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#f7f2ee" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#f2e7e1" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#efded4" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#e9d3c5" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#dfc8b6" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#d9bba3" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#e4cab3" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#ddc7b0" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#ebd9c3" width="1px"&gt; &lt;/td&gt; &lt;td bgcolor="#f9e7d1" width="1px"&gt; &lt;/td&gt; &lt;td&gt; &lt;!-- embedded half-left table --&gt; &lt;table width="348px" cellpadding="5px" cellspacing="0" border="0" style="border-collapse:collapse; font-size: 12px; line-height: 1.2; font-family: Arial;"&gt; &lt;tr&gt; &lt;td colspan="3" valign="top"&gt; &lt;p&gt;&lt;strong&gt;Lorem Ipsum&lt;/strong&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt; &lt;/td&gt; &lt;td &gt; &lt;img width="4px" src="CaseNotes/greenbox.jpg" /&gt; &lt;/td&gt; &lt;td valign="top"&gt; &lt;img src="CaseNotes/archive/20120815-honors-college.jpg" alt="" height="81" width="100" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- end half-left table --&gt; &lt;/td&gt; &lt;td bgcolor="#999999" &gt; &lt;img width="2px" src="CaseNotes/greybox.jpg" /&gt; &lt;/td&gt; &lt;td&gt; &lt;table width="348px" cellpadding="5px" cellspacing="0" border="0" style="border-collapse:collapse; font-size: 12px; line-height: 1.2; font-family: Arial;" &gt; &lt;!-- half-right table --&gt; &lt;tr valign="top"&gt; &lt;td valign="top" colspan="3"&gt; &lt;p&gt;&lt;strong&gt;Lorem Ipsum&lt;/strong&gt;&lt;/p&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt; &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.&lt;/p&gt; &lt;/td&gt; &lt;td &gt; &lt;img width="4px" src="CaseNotes/greenbox.jpg" /&gt; &lt;/td&gt; &lt;td&gt; &lt;img src="CaseNotes/superman.jpg" alt="" height="150px" width="150px" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- end half-right table --&gt; &lt;/td&gt; &lt;td bgcolor="#f9e8d4" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#e7cfb8" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#ead2bb" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#e5c8b0" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#b17853" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#b88460" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#c29371" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#cca385" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#d5b39a" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#ddc2ad" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#e5cfbe" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#ebdbce" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#f1e5dc" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#f6efe9" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#faf5f2" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#fdfaf9" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#fefefd" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;td bgcolor="#fffefe" width="1px"&gt; &lt;img src="http://greenandgold.uaa.alaska.edu/chancellor/casenotes/images/clear1x1.png" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;!-- end super table --&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload