Coldfusion - using CSS in CFMAIL - specifically float:left
Posted on 2014-01-15
MS Outlook 2007
I know that using CSS within Cfmail tags work best if used inline as opposed to a linked style sheet, therefore I have all my CSS inline. I have tried both:
- type = "html" - in the cfmail tag
- <cfmailpart type="html">
- within 'body' and without these tags <html><head></head><body></body></html>
On my smart phone, all formatting seems to look fine. When I open the email on Outlook 2007 it all looks good, except 'float:left' seems to be ignored.
<div style="color:##CC0000;float:left;">Company Name</div>
<div style="clear:left;"> </div>
DISPLAYS AS (In Outlook):
Company Name: (in red)
INSTEAD OF (My Blackberry):
Company Name: (in red) ABC Company
Am I missing something, or do I need to use a <table> in the Cfmail.