Custom CSS referenced in an Email Template

Posted by jsniemi79 on 13-Aug-2014 13:14

Is it possible to created a hosted file css that can be referenced in email templates to control the style on the html template? I've tried several different ways to get it going, but haven't been able to come up with anything that worked.

Posted by pvorobie on 13-Aug-2014 13:24

You can embed CSS in the body of email message by using [tag:text] suffix for Hosted file's token:

{!#HOSTED_FILE.323765[tag:text]}

All Replies

Posted by pvorobie on 13-Aug-2014 13:24

You can embed CSS in the body of email message by using [tag:text] suffix for Hosted file's token:

{!#HOSTED_FILE.323765[tag:text]}

Posted by jsniemi79 on 18-Aug-2014 09:14

Where in the html on the email template am I supposed to put this reference?  My customer is trying to change the style of some header values and drop some background images.  Every way I've tried to do this has not worked.  Once I click update in the html popup, the line of code I put in is removed.

I tried to add this line of code and when I hit update it disappears.  I'm not a web programmer, so any help would be appreciated.

Posted by Godfrey Sorita on 18-Aug-2014 11:01

Hi,

Can you also include the content of your hosted file? 

The solution worked in my environment. I created an email template with this code:

The hosted file contains the below code and it was uploaded as a CSS file.

<style>
p {
	color: red;
}
</style>

Regards,

Godfrey

This thread is closed