3 ms·
This would also break the current approach for responsive emails. Usually the default/desktop styles are already compiled and inlined, then a style tag with me
by ketch 2y ago
This would also break the current approach for responsive emails.
Usually the default/desktop styles are already compiled and inlined, then a style tag with media query selectors is used in the `head` to improve readability for mobile devices.
- yosefk 2y agoThe horror! Is there a real need here though as opposed to just something people do, and where does such CSS come from in the case of emails? You could be "responsive" by not doing certain things instead of actively doing something and for email content it feels fitting.
- afavour 2y agoYou’re asking if email CSS ever needs to be tailored to mobile devices? It’s not any different than web pages needing to be tailored to mobile devices. The answer is yes, sometimes it is necessary.
- yosefk 2y agoThe answer is different because an email is not a standalone webpage and there are a lot of things you might want to do in a website that you won't expect to be able or need to do in an email. You probably don't want to control font sizes or page margins in an email, for instance; you probably do want to control color or override some overflow defaults. Maybe I'm off in the above but the point is that you expect to control a subset of things for an email (same as eg for RSS entries) and media selectors aren't obviously necessary for these kinds of things.
- afavour 2y agoWhat if you want to place two divs alongside each other on desktop but stacked vertically on a phone?
- bitvoid 2y agoHow about not placing two divs alongside each other in the first place? Every time I see that, I immediately start looking for the unsubscribe link or mark it as spam.
- afavour 2y agoYour preference is not everyone’s preference. It’s silly to suggest every email client disable media queries because you dislike seeing two elements side by side.
- bitvoid 2y agoThat's true, but is anyone going to be up in arms because things are not side by side in an email? I agree with others that emails should just be plain text. It has never bothered me or anyone else I've known to just have plain text and a link that sends them to an actual webpage if HTML is absolutely necessary.