Re: External CSS link in email?

Anonymous
Not applicable

External CSS link in email?

Hi, I uploaded our css stylesheet as such <link rel="stylesheet" href="http//www.externalcsslink..."> to the header in the html code of the email template. I also tried adding it to the 'replace html' section of the email itself. Neither renders when a certain class is called. Has anyone else encountered this problem?

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: External CSS link in email?

It's not a "problem" -- as there's no reason to think this would work. Mail clients don't even reliably support local <style> elements, let alone remote-included styles.

Grégoire_Miche2
Level 10

Re: External CSS link in email?

HI Lin,

In email, both techniques are not valid. All CSS classes need to be defined in the email itself and furthermore, many of the css styles will have to be inlined.

-Greg

Anonymous
Not applicable

Re: External CSS link in email?

Yeah...I figured ...worth a shot = /

Casey_Grimes
Level 10

Re: External CSS link in email?

Just a bit of a footnote here: you can use external CSS spreadsheets in emails if (and only if) you want to target email clients that do, in fact, support external CSS—most commonly this is done for webfont support (as it's basically a 1:1 overlap of those who support <link> in <head> and those who support webfonts), but this is also a nice workaround for adding SVG to supported clients, advanced animations, etc.

Then again, this is pretty advanced email design stuff for the vast majority of folks.