I've encountered something that bugged me while testing my email marketing campaigns.
So here goes:
I use the following code so that images and some other bits won't print when a user prints the e-mail (It is for a hotel group so emails are printed often, with booking numbers and all).
<style media="print">
body { background-color:#FFFFFF; }
.no-print { display:none; }
</style>
Now, outlook 2007/10/13, aol mail and some other clients seem to consider themselves as printed media and apply the display:none rule on every no-print element, leaving the email in a dire state of emptiness.
I could remove it all completely, but that wouldn't be good practices for ecology.
Do any of you guys know of a work around? Like a way to force outlook to consider itself as a screen media?
Thanks a lot.
Now that I have a better understanding of the question I think I found the beginning of a possible solution for you. This should ensure the printer style sheets CSS still work, but aren't displayed by clients, like Outlook 2007, when they shouldn't be.
.no-print
doesn't displayCode Excerpt:
Email Testing Link: https://litmus.com/pub/49bfd3b