News for hackers. Stuff that matters.
Re:Transactional HTML Email Templates by e0 on Wednesday August 13, 2014 @01:56PM (#8174142)
Why is it better to use inline CSS here? Isn't inline CSS usually frowned-upon?
Re:Transactional HTML Email Templates by ceejayoz on Wednesday August 13, 2014 @02:41PM (#8174378)
> Isn't inline CSS usually frowned-upon?

Yes, but not in the 1990s, which is the era HTML email finds itself stuck in.

Re:Transactional HTML Email Templates by 23andwalnut on Wednesday August 13, 2014 @02:05PM (#8174194)
Email clients strip external css and often the style tag. Therefore you have to use inline css to style html emails.
Re:Transactional HTML Email Templates by sundance0 on Wednesday August 13, 2014 @02:06PM (#8174200)
Most browser-based email clients (Gmail, Yahoo, etc.) strip out the head and body tags from HTML emails. You never really know what's going to be removed, so the safest thing is to inline all of your styles.
Re:Transactional HTML Email Templates by mtdewcmu on Thursday August 14, 2014 @06:10AM (#8176762)
Yes. But generally when things are frowned-upon, it's because they have something going for them. (If everyone agrees that something is dumb, there's no point in belaboring it.) Inlining is the simplest and most fool-proof way to apply CSS, which helps explain why it works in email where all else fails.