Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Email: Hide images in all desktop clients
table[class="mob-show"],
tr[class="mob-show"],
td[class="mob-show"],
span[class="mob-show"],
a[class="mob-show"],
img[class="mob-show"] {
display: none !important;
font-size: 0 !important;
width: 0 !important;
height: 0 !important;
max-height: 0 !important;
line-height: 0 !important;
padding: 0 !important;
visibility: hidden !important;
mso-hide: all !important;
}
@media (max-width: 480px) {
table[class="mob-hide"],
tr[class="mob-hide"],
td[class="mob-hide"],
span[class="mob-hide"],
a[class="mob-hide"],
img[class="mob-hide"] { display: none !important; }
table[class="mob-show"],
tr[class="mob-show"],
td[class="mob-show"],
span[class="mob-show"],
a[class="mob-show"],
img[class="mob-show"] {
display: block !important;
font-size: auto !important;
width: 100% !important;
height: auto !important;
max-height: 999px !important;
line-height: auto !important;
padding: 0 !important;
visibility: visible !important;
mso-hide: none !important;
}
}
class="mob-show" style="display: none; font-size: 0; width: 0; height: 0; max-height: 0; line-height: 0; padding: 0; visibility: hidden; mso-hide: all;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.