Reputation: 10971
I want to send some HTML in a mail message
I have a td that has a CssClass with background image.
when I checked the received mail I found that the background image didn't appear.
I tried to force the background image to the TD using the deprecated background attribute but nothing changed.
is there any workaround for this problem ?
thanks
Upvotes: 1
Views: 1847
Reputation: 49413
Take a look at Guide to CSS Support in Email Clients. HTML emails will likely be rendered VERY differently depending on the email client that is being used to view your email.
Outlook 2007/2010 does NOT render background images in HTML emails. I don't know which email client you are testing with but it is highly likely that the client is not displaying background images.
See the link above and test, test, test, test.
Upvotes: 1
Reputation: 10550
Most email clients do not read external css. So assuming your CssClass refers to an external css file it wont work in most email clients. Try putting the css inline is a style tag and see if that works.
Upvotes: 0