css - How do I include conditional formatting within a style attribute? -


right i'm coding email , need apply specific padding outlook 2007 , higher. @ moment have conditional formatting applied @ end of style attribute override "default" padding, this:

<table cellpadding="0" cellspacing="0" border="0" width="211" align="left" class="ending_soon_table" style="float: left; padding: 0 10px; <!--[if gte mso 12]>padding: 0 7px;<![endif]-->">  

any tips on how should formatting differently?

can more specific? fiddle this?

good practice use whole statement padding:

<table style="padding: top right bottom left;"></table> 

not top-bottom && right-left declaration.

also try !important make sure override existing css (note: use !important testing.)

than statement used greater mso(ffice) 12. want or need above 2007 version?

in case need above 2007, change to:

<!--[if gte mso 7]>padding: 0 7px;<![endif]--> 

more on got here: http://templates.mailchimp.com/development/css/outlook-conditional-css/

it's bad practice have elements styling email. thing used table elements it. can make little snippet example please?


Comments

Popular posts from this blog

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -