Send email using css style without using inline css

I am trying to send an email that will contain a table with some CSS styling and I am unable to use inline css due to some selectors (after, before).

Is there a way to solve this problem?

+3


source to share


1 answer


Some email clients ignore <style>

header tags , so this is not a reliable option. Linked CSS files? Even more insecure styles like these are ignored by a large proportion of email clients.

Quite frankly, the only reliable method of styling your email is using inline CSS.



As a result, I'm afraid the answer to your question is that it is not possible to reliably erase your emails without using inline CSS.

You will need to figure out a way to use "normal" html elements to emulate the behavior of type selectors :before

.

+2


source







All Articles