Recent searches
No recent searches
CSS classes available in email actions?
Answered
Posted Feb 25, 2022
Apologies if this is documented somewhere, but I couldn't find info about this. Is there some documentation about what CSS classes are available in emails sent as an action from Triggers or Automations? In the email (channel) template, I see that there are "styles" injected. I'm thinking there might be something similar to the placeholder reference document.
0
2
2 comments
Daniel Dobrzensky
I don't think Zendesk has a similar reference doc for CSS in emails, but they do go over some good info here:
Customizing your templates for email notifications
I'm also not sure if you'll be able to apply classes inside of triggers and automations (if that's what you meant). Zendesk intentionally limits what you can do there.
I suggest you stay away from adding too much code in your triggers and update your email template instead if possible. There's so much more flexibility there.
0
Ryan P.
Thanks, that article actually led me to Help center CSS cookbook, which is more of what I was looking for. It doesn't list available CSS classes explicitly but you can gather what some of the classes are. Additionally, I could look at the email source code and figure out all the classes too.
0