Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditionally Target Outlook 2007/2010/2013, But Not Outlook.com

I know we can conditionally target Outlook '07-'13, but it seems that Outlook.com also matches my condition.

<!--[if !mso]><!--><br /><!--<![endif]-->

Is there a better code for this statement to where it does not match Outlook.com?

like image 550
Jake Avatar asked Nov 29 '12 20:11

Jake


1 Answers

Yes there is. Why post an answer with an "i dunno."?

Anyway, Outlook.com prepends all of your classes with ecx. What I like to do is make make the td 0 height (height="0" style="font-size:0px; line-height:0px;"), add your class class="outlookthing" and in your <style> correct for the 0 height with a td[class="ecxoutlookthing]{font-size:XXpx; line-height:XXpx; height:XXpx;}

like image 83
zazzyzeph Avatar answered Sep 29 '22 14:09

zazzyzeph