Essential Style Sheet (CSS) for responsiveness in Email

body {
-webkit-text-size-adjust: none;
-ms-text-size-adjust: 100%;
}
table {
border-spacing: 0;
border-collapse: collapse;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
table td {
border-collapse: collapse;
}
.desktophide {
display: none !important;
}
.gmailfix {
display: block !important;
height: auto !important;
max-height: 450px!important;
overflow: visible !important;
}
* img[tabindex="0"] + div {
display: none !important;
a[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
 @media only screen and (max-width: 480px) {
body .hide {
display: none !important;
}
body .sizelimiter {
width: 100% !important;
max-width: 300px !important;
display: block !important;
}
body .fullwidthimg {
height: 49% !important;
}
body .desktophide {
display: block !important;
width: 300px !important;
height: auto !important;
overflow: visible !important;
}
.mobileSwap {
display: block!important;
width: auto!important;
overflow: visible!important;
float: none !important;
height: inherit!important;
max-height: inherit!important;
}
}

Comments

Popular posts from this blog

How to select and cut out an image in Krita

Transform and Stretch an image in Krita

Joomla error: Your site may not have been upgraded completely