css - Rendering HTML emails depending which client opens it -


html emails fickle bunch. problem lies superscripting.

my code required work in desktop clients:

  • outlook 2000
  • outlook 2003
  • outlook 2007
  • outlook 2010

as in web-based email clients (firefox, chrome, explorer):

  • gmail
  • yahoo
  • aol
  • internet explorer 7 browser (lol)

currently best cross-browser code i've come across is:

<sup style="font-size:11px; line-height:0; vertical-align:3px;">

this works wonderful in except outlook 2007 , 2010 font-size shrunk become non-legible. other code such as:

<sup style="position:relative; vertical-align:baseline; bottom:4px;">

this code works great in everything, except gmail strips out positioning causing superscript sit on baseline.

after trying several dozens different combinations of styling above 2 ones provide consistent font size , line height.

the question

is there snippet of code can place in head tell email use code or class depending on client email opened in? know gmail prefers inline styling on classes perhaps apply gmail pretty code inline, if it's opened outside of gmail cancel out inline styling , fall on class.

you can target outlook conditional comments:

<!--[if gte mso 9]>     /* outlook-specific css goes here. */ <![endif]--> 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -