External CSS link in email? | Community
Skip to main content
March 21, 2017
Question

External CSS link in email?

  • March 21, 2017
  • 3 replies
  • 4084 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

SanfordWhiteman
Level 10
March 21, 2017

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
March 21, 2017

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

March 21, 2017

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

Casey_Grimes2
Level 10
March 22, 2017

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.