As I delve into customizing my very first (woocommerce) email template, I am considering the option of concealing data using CSS display: none
.
However, a few questions arise regarding the compatibility and support of CSS and display: none
:
- Do all email clients have the capability to interpret basic CSS like
display: none
, or is this pushing it too far? - In cases where recipients view emails solely in text format (non-HTML), does the email client convert the HTML content to plain text, rendering the
display: none
invisible, or will the email client display any available plain text from the HTML without conversion, possibly revealing thedisplay: none
content? - Is there a reliable platform for testing how emails appear across various email clients such as Outlook, Gmail, Yahoo, Spark, and Mac?
I understand these are somewhat elementary inquiries, but any assistance would be greatly appreciated!
Thank you very much.
Update:
This link offers insights on hiding elements:
Currently, I am implementing the following techniques in an attempt to conceal content across multiple email clients:
font-size: 0; /* in case display-none isn't effective */
max-height: 0px; overflow: hidden; /* optimized for Gmail */
opacity: 0;
visibility: hidden;
display: none;
mso-hide: all; /* tailored for Outlook */