html - how to apply print stylesheets in email templates as the <style> tag gets discarded by the email clients? -


i developing html email templates, page supports print feature. style of html document should differ, when 1 prints same. so, have added internal stylesheet print (only) , rest of styling being leveraged inline styles, using below:

<style type="text/css">     @media print {         /* print related styles */     } </style> 

i know @media print {..} , media="print" isn't supported email clients , have no issue them, issue -: the styles have added print, being removed entirely clients. unable target dom providing different styles print.

this done many emails google , others, remove style / script , other stuff...

you need figure away use inline styling instead


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -