This works in the browser:
HTML Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Newsletter</title>
<style type="text/css">
@media only screen and (max-device-width: 639px) {
/* mobile-specific CSS styles go here */
/* Attribute selectors are being used to avoid an unusual glitch in Yahoo! Mail. */
table[class=contenttable] {
width: 100% !important;
}
table[class=innerTable] {
width: 100% !important; align: left !important;
}
img[class=largeImage] {
width: 100% !important;
}
}
@media only screen and (min-width: 640px) {
/* larger screen styles go here */
table[class=contenttable] {
width: 640px !important;
}
table[class=innerTable] {
width: 320px !important;
}
img[class=largeImage] {
width: 100% !important;
}
}
</style>
</head>
<body>
<!-- template based on http://www.campaignmonitor.com/guides/mobile/responsive/ -->
<table class="contenttable" border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tr>
<td bgcolor="#054281"><p style="text-align:center;font-family:Arial,Verdana,sans serif; color:#ffffff; font-weight:bold; letter-spacing:.2em; font-size:1.3em; vertical-align:middle;">
NEW PRODUCTS
</p>
</table>
<table class="contenttable" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td> <!-- encloses two 320px tables -->
<table class="innerTable" border="0" cellspacing="0" cellpadding="20" align="left">
<tr>
<td><p style="text-align:center; font-family:Arial,Verdana,sans serif;">
<span style="color:#9c120c; font-weight:bold;">NEW! </span><span style="color:#054281;font-weight:bold;">
Product Heading</span></p>
<img class="largeImage" src="product-image1.jpg" title="Product Heading" alt="Product Heading" style="width:350px; max-width:100%; border:0; display:block;align:center;">
<p style="font-family:Arial,Verdana,sans serif; font-size:1em;">
<em>May 2, 2013 - </em>Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here.
</p>
<p>
<a href="#"><img class="largeImage" align="center" src="click-here" alt="Right-click here to download images." style="width:250px; max-width:100%; "></a></p>
</td>
</tr>
</table>
<table class="innerTable" border="0" cellspacing="0" cellpadding="20" align="left">
<tr>
<td><p style="text-align:center; font-family:Arial,Verdana,sans serif;">
<span style="color:#9c120c; font-weight:bold;">NEW! </span><span style="color:#054281;font-weight:bold;">
Product Heading</span></p>
<img class="largeImage" src="product-image2.jpg" title="Product Heading" alt="Product Heading" style="width:350px; max-width:100%; border:0; display:block;align:center;">
<p style="font-family:Arial,Verdana,sans serif; font-size:1em;">
<em>May 2, 2013 - </em>Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here. Product copy goes here.
</p>
<p>
<a href="#"><img class="largeImage" align="center" src="click-here.jpg" alt="Right-click here to download images." style="width:250px; max-width:100%;"></a></p>
</td>
</tr>
</table>
</td> <!-- END encloses two tables -->
</tr>
</table>
</body>
</html>
Bookmarks