PDA

View Full Version : CSS goes strange in HTML email - appends ecx to html ids


MeltingDog
22-07-2011, 09:44 AM
Hi all,

I am trying to make an HTML email. For whatever reason some letters are being appended to some of my code. The letters ecx are being appended to my id tags in the HTML. So:

Instead of what I wrote eg: <tr id="headerrow">

I see in FireBug: <tr id="ecxheaderrow">


I have the CSS in my header and am using tables. The CSS looks like this:

#title {
text-align:center;
padding-top: 15px;
}

#headerrow {
text-align:center;
}

Which I think is fine

Any one know whats going on here? Am I better using inline CSS or even and external?

MeltingDog
22-07-2011, 09:49 AM
Tried to be cheeky and change the CSS in the header to have ecx but no luck

heist
22-07-2011, 01:23 PM
my knowledge of html email coding isn't great, but first thing i'd try would be in-line style

MeltingDog
22-07-2011, 02:53 PM
Yeah inline css did it. Also I found out you cannot have background images which is a great shame.

Web-Designer-Perth
23-07-2011, 05:00 PM
Yes you can have background images. There are a few tricks. Check over at Campaign Monitor.

zeroedin
27-07-2011, 10:18 AM
Yes you can have background images. There are a few tricks. Check over at Campaign Monitor.

except they won't appear in Outlook 2007/2010, Gmail, or Hotmail :(when using CSS. Back to using tables...hello 1992, long time no see...

http://www.campaignmonitor.com/css/

Yaheed
27-07-2011, 01:43 PM
except they won't appear in Outlook 2007/2010, Gmail, or Hotmail :(when using CSS. Back to using tables...hello 1992, long time no see...

http://www.campaignmonitor.com/css/

This is true, but with the following technique it is apparently do-able! At least to a table cell anyway.

http://www.campaignmonitor.com/blog/post/3192/add-a-background-image-to-individual-table-cells/

zeroedin
27-07-2011, 08:41 PM
This is true, but with the following technique it is apparently do-able! At least to a table cell anyway.

http://www.campaignmonitor.com/blog/post/3192/add-a-background-image-to-individual-table-cells/

You, my friend deserve a cookie! Filing that one under 'useful to know'.

Yaheed
28-07-2011, 09:54 AM
Haha, glad to be of service :P.

I haven't tested it before but I guess you go by the comments on the post to how successful the technique is.