Struggling to center align an image at the top of an email due to code that hides it when the browser is larger than 520px. Is there a way to exempt this specific image and keep it centered?
.mobile {
display: none !important;
font-size 0 !important;
max-height: 0 !important;
line-height: 0 !important;
margin: 0 !important;
mso-hide: all !important;
overflow: hidden !important;
}
.mobile img {
max-height: 0 !important;
width: 0 !important;
}
@media only screen and (max-width: 520px) {
*[class=hide] {
display: none !important;
}
[class=mobile] {
display: block !important;
max-height: none !important;
margin: 0px !important;
overflow: visible !important;
}
*[class=mobile] img {
display: block !important;
width: 100% !important;
height: auto !important;
max-height: none !important;
max-width: 100% !important;
}
}
.
<td class="mobile" style="font-size: 0; mso-hide: all; width:120px; height:24px;"><div align="center"><a href="~PROBE(201)~"><img border="0" height="24" width="120" src="images/MH-logo.png" /></a></div></td>