<tr> error in Outlook 2010 for PC HTML email - css

I am developing an HTMl email for a client. Seems standard and straightforward, and nowhere near complicated. I used nested tables and all of (what I think) are the correct CSS rules and perameters. However, when the email is sent to someone who has Outlook 2009 - 2013 a strange thing happens to the second row of nested tables (see image).
Outlook nested table error
If I switch the blocks from row 1 to row 2 and so on, the error still occurs. I have thrown hard heights into every <td> and all of the necessary inlines, yet I cannot fix the error. It seems no matter what I do that second row breaks.
Does anyone see perhaps something that I do not in my code?
#outlook a{
padding:0;
}
.ReadMsgBody{
width:100%;
}
body{
width:100% !important;
min-width:100%;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%;
-webkit-font-smoothing: antialiased;
}
v*{
behavior:url(#default#VML);
display:inline-block;
}
td{
border-collapse: separate !important;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div{
line-height:100%;
}
a img{
border:none;
}
a {
text-decoration:none !important;
}
img{
display:block;
outline:none;
text-decoration:none;
border:none !important;
-ms-interpolation-mode: bicubic;
}
table, table td{
border-spacing:0;
border-collapse: separate;
mso-table-lspace:0pt;
mso-table-rspace:0pt;
padding: 0;
margin: 0;
}
table[class=full] {
width: 100%;
clear: both;
}
div {
padding: 0;
margin: 0;
}
p{
margin:0;
padding:0;
margin-bottom: 0;
line-height:1.4em;
font-size:100%;
font-family: Helvetica, Arial, sans-serif;
}
h1{
margin:0;
padding:0;
border:0;
font-size:100%;
line-height:1.4em;
font-family: Helvetica, Arial, sans-serif;
}
#wrappertable{
margin:0;
padding:0;
width:100% !important;
line-height:100% !important;
}
br[class=show]{
display: none !important;
max-height: 0px;
font-size: 0px;
overflow: hidden;
mso-hide: all;
}
#media screen and (max-width:600px){
table{
width:100% !important;
}
table[class=content]{
width:95% !important;
}
td[class=hide]{
display: none !important;
max-height: 0px !important;
font-size: 0px !important;
overflow: hidden !important;
mso-hide: all !important;
width: 0 !important;
}
td[class=fullwidth]{
width:100% !important;
float:left !important;
}
/*replace image with mobile version*/
td#pic1 img{
content:url("http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/header-mobile.jpg") !important;
}
div[class=height]{
height: auto !important;
}
/*repeat ID as necessary*/
img[class=fullwidth]{
width:100% !important;
height:auto !important;
}
img[class=threequarters]{
float: none !important;
width: 75% !important;
height: auto !important;
margin: auto !important;
}
img[class=twothirds]{
float: none !important;
width: 66.6666% !important;
height: auto !important;
margin: auto !important;
}
img[class=halfwidth]{
float: none !important;
width: 50% !important;
height: auto !important;
margin: auto !important;
}
img[class=onethird]{
width: 33.3333% !important;
height: auto !important;
margin: auto !important;
padding-top: 5px !important;
padding-bottom: 5px !important;
}
img[class=quarterwidth]{
width: 25% !important;
height: auto !important;
margin: auto !important;
padding-top: 5px !important;
padding-bottom: 5px !important;
}
img[class=hide]{
display: none !important;
max-height: 0px !important;
font-size: 0px !important;
overflow: hidden !important;
mso-hide: all !important;
width: 0 !important;
}
div[class=fullwidth]{
max-width: 95% !important;
}
p,h1,h2[class=centered]{
text-align: center !important;
}
br[class=show]{
display: inline !important;
}
br[class=hide]{
display: none !important;
max-height: 0px;
font-size: 0px;
overflow: hidden;
mso-hide: all;
}
span[class=hide]{
display: none !important;
max-height: 0px;
font-size: 0px;
overflow: hidden;
mso-hide: all;
}
}
<tr>
<td width="718" align="center">
<!--THIS IS THE CONTENT TABLE-->
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="THIS IS YOUR IMAGE PATH" color="#FFFFFF"/>
</v:background>
<![endif]-->
<table cellpadding="0" cellspacing="0" border="0" width="700">
<tr>
<td align="center"><img src="http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/AP_LPG_BANNER_ENG.png" width="700" height="102" alt="Lowest Price Guarantee" class="fullwidth"/>
</td>
</tr>
<tr>
<td align="center" bgcolor="#1e8de6" style="background-color: #1e8de6">
<table cellpadding="0" cellspacing="0" border="0" class="content" width="95%" height="70">
<tr><td colspan="2" height="14" style="line-height: 14px"></td></tr>
<tr>
<td class="fullwidth">
<img src="http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/AP-Logo_clear.png" width="250" height="42" alt="Advantage Program" class="twothirds" vspace="10"/>
</td>
<td class="fullwidth">
<p style="font-size: 21px; text-align: right; color: #FFFFFF; line-height: 32px;" class="centered"><strong>FEATURED</strong> <span style="font-weight: lighter !important">LOCATIONS</span></p>
</td>
</tr>
<tr><td colspan="2" height="14" style="line-height: 14px"></td></tr>
</table>
</td>
</tr>
<tr>
<td align="center" id="pic1">
<img src="http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/header.jpg" width="700" height="470" alt="" class="fullwidth"/>
</td>
</tr>
<tr>
<td align="center"><br />
<p style="text-align: center; color: #1e8de6; font-size: 26px; font-weight: light"><font style="color: #1e8de6; text-align: center; font-size: 26px; font-weight: light"><strong>Find your favorite Wyndham and book today!</strong></font></p>
<br />
</td>
</tr>
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" border="0" width="640">
<tr>
<td class="fullwidth" align="center">
<table cellpadding="0" cellspacing="0" border="0" width="320">
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
<tr>
<td width="10" style="width: 10px !important;" align="center"> </td>
<td align="center" width="300" valign="top">
<!--property table-->
<table cellpadding="0" cellspacing="0" border="0" width="300" style="width: 300px; border: solid 1px #1e8de6; border-radius: 5px;" >
<tr>
<td style="border-top-left-radius: 5px; border-top-right-radius: 5px; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt; line-height: 168px;" class="fullwidth" align="center">
<img src="http://www.immediatefill.com/SendyImages/HLL/testing/Property3.jpg" width="300" height="168" alt="" class="fullwidth" style="display: block !important;"/>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" height="60" style="line-height: 60px; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;">
<p style="color: #1e8de6; font-size: 19px; font-weight: lighter; line-height: 24px;">Wyndham Ocean Boulevard</p>
<p style="color: #1e8de6; font-size: 15px; font-weight: bolder; line-height: 19px;">Myrtle Beach, SC</p>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" class="fullwidth">
<table cellpadding="0" cellspacing="0" border="0" width="300" class="content">
<tr>
<td width="10" style="width: 10px !important;"></td>
<td align="center" valign="top" height="260" style="line-height: 260px !important; height: 260px !important; width: 280px !important; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;" width="280" class="fullwidth">
<p style="color: #666666; font-size: 13px; line-height: 21px !important; font-family: Arial, 'sans-serif'; mso-line-height-rule: exactly;" >A stay at the stylish Wyndham Ocean Boulevard will certainly be one to remember. Enjoy award-winning accommodations and amenities surrounded by gentle waves of North Myrtle Beach. This spectacular high-rise, beachfront property is where retro-flavor meets a stylish, contemporary finish. You will certainly love returning to these one and two private bedroom vacation condos complete with full kitchen, washer and dryer and spacious living areas.</p></td>
<td width="10" style="width: 10px !important;"></td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
<tr>
<td align="center" height="42" style="line-height: 42px;">
<div><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.advantageprogram.net" style="height:40px;v-text-anchor:middle;width:180px;" arcsize="10%" stroke="f" fillcolor="#1e8de6">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://www.advantageprogram.net"
style="background-color:#1e8de6;border-radius:5px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:lighter;line-height:40px;text-align:center;text-decoration:none;width:180px;-webkit-text-size-adjust:none;">Book Now!</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
</table>
</td>
<td width="10" style="width: 10px !important;" align="center"> </td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
</table>
</td>
<td class="fullwidth" align="center">
<table cellpadding="0" cellspacing="0" border="0" width="320">
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
<tr>
<td width="10" style="width: 10px !important;" align="center"> </td>
<td align="center" width="300" valign="top">
<!--property table-->
<table cellpadding="0" cellspacing="0" border="0" width="300" style="width: 300px; border: solid 1px #1e8de6; border-radius: 5px;" >
<tr>
<td style="border-top-left-radius: 5px; border-top-right-radius: 5px; border-collapse: collapse; line-height: 168px; mso-table-lspace:0pt;mso-table-rspace:0pt;" class="fullwidth" align="center">
<img src="http://www.immediatefill.com/SendyImages/HLL/testing/Property4.jpg" width="300" height="168" alt="" class="fullwidth" style="display: block !important;"/>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" height="60" style="line-height: 60px; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;">
<p style="color: #1e8de6; font-size: 19px; font-weight: lighter; line-height: 24px;">Wyndham Resort at Avon</p>
<p style="color: #1e8de6; font-size: 15px; font-weight: bolder; line-height: 19px;">Avon, Colorado</p>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" class="fullwidth">
<table cellpadding="0" cellspacing="0" border="0" width="300" class="content">
<tr>
<td width="10" style="width: 10px !important;"></td>
<td align="center" valign="top" height="260" style="line-height: 260px !important; height: 260px !important; width: 280px !important; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;" width="280" class="fullwidth">
<p style="color: #666666; font-size: 13px; line-height: 21px !important; font-family: Arial, 'sans-serif'; mso-line-height-rule: exactly;" >Right in the heart of Rocky Mountain ski country, friendly alpine villages welcome visitors from around the world. Tucked across the Eagle River from Beaver Creek's famous slopes, this resort houses an array of apartment-style suites for up to 10 guests. Each features a full kitchen, fireplace, and private balcony. It's a dreamy place to call home, no matter the time of year.</p></td>
<td width="10" style="width: 10px !important;"></td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
<tr>
<td align="center" height="42" style="line-height: 42px;">
<div><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.advantageprogram.net" style="height:40px;v-text-anchor:middle;width:180px;" arcsize="10%" stroke="f" fillcolor="#1e8de6">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://www.advantageprogram.net"
style="background-color:#1e8de6;border-radius:5px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:lighter;line-height:40px;text-align:center;text-decoration:none;width:180px;-webkit-text-size-adjust:none;">Book Now!</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
</table>
</td>
<td width="10" style="width: 10px !important;" align="center"> </td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="718" align="center">
<!--THIS IS THE CONTENT TABLE-->
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="THIS IS YOUR IMAGE PATH" color="#FFFFFF"/>
</v:background>
<![endif]-->
<table cellpadding="0" cellspacing="0" border="0" width="700">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" border="0" width="640">
<tr>
<td class="fullwidth" align="center" height="570" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="320">
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
<tr>
<td width="10" style="width: 10px !important;" align="center"> </td>
<td align="center" width="300" valign="top">
<!--property table-->
<table cellpadding="0" cellspacing="0" border="0" width="300" style="width: 300px; border: solid 1px #1e8de6; border-radius: 5px;" >
<tr>
<td style="border-top-left-radius: 5px; border-top-right-radius: 5px; border-collapse: collapse; line-height: 168px;" class="fullwidth" align="center" height="168">
<img src="http://www.immediatefill.com/SendyImages/HLL/testing/Property1.jpg" width="300" height="168" alt="" class="fullwidth" style="display: block !important;"/>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" height="60" style="line-height: 60px;">
<p style="color: #1e8de6; font-size: 19px; font-weight: lighter; line-height: 24px;">Wyndham at Waikiki Beach Walk</p>
<p style="color: #1e8de6; font-size: 15px; font-weight: bolder; line-height: 19px;">Waikiki Beach, Hawaii</p>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" class="fullwidth">
<table cellpadding="0" cellspacing="0" border="0" width="300" class="content">
<tr>
<td width="10" style="width: 10px !important; height: 400px;" height="400"> </td>
<td align="center" valign="top" height="400" style="line-height: 400px !important; height: 400px !important; width: 280px !important; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;" width="280" class="fullwidth">
<p style="color: #666666; font-size: 13px; line-height: 21px !important; font-family: Arial, 'sans-serif'; mso-line-height-rule: exactly;" >Wyndham at Waikiki Beach Walk offers a premium location just one block from Oahu's famous Waikiki Beach. Guests have easy access to shopping, dining, and live entertainment. The resort offers guests planned activities, classes, and games for adults, children and families. You will find yourself in a paradise where you can relax on a sandy beach, enjoy swimming in the Pacific Ocean, or find excitement just steps away!</p>
</td>
<td width="10" style="width: 10px !important; height:400px;" height="400"> </td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
<tr>
<td align="center" height="42" style="line-height: 42px;">
<div><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.advantageprogram.net" style="height:40px;v-text-anchor:middle;width:180px;" arcsize="10%" stroke="f" fillcolor="#1e8de6">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://www.advantageprogram.net"
style="background-color:#1e8de6;border-radius:5px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:lighter;line-height:40px;text-align:center;text-decoration:none;width:180px;-webkit-text-size-adjust:none;">Book Now!</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
</table>
</td>
<td width="10" style="width: 10px !important;" align="center"> </td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
</table>
</td>
<td class="fullwidth" align="center" height="570" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="320">
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
<tr>
<td width="10" style="width: 10px !important;" align="center"> </td>
<td align="center" width="300" valign="top">
<!--property table-->
<table cellpadding="0" cellspacing="0" border="0" width="300" style="width: 300px; border: solid 1px #1e8de6; border-radius: 5px;" >
<tr>
<td style="border-top-left-radius: 5px; border-top-right-radius: 5px; border-collapse: collapse" class="fullwidth" align="center">
<img src="http://www.immediatefill.com/SendyImages/HLL/testing/Property2.jpg" width="300" height="168" alt="" class="fullwidth" style="display: block !important;"/>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" height="60" style="line-height: 60px;">
<p style="color: #1e8de6; font-size: 19px; font-weight: lighter; line-height: 24px;">Wyndham Bonnet Creek Resort</p>
<p style="color: #1e8de6; font-size: 15px; font-weight: bolder; line-height: 19px;">Orlando, Florida</p>
</td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10"></td></tr>
<tr>
<td align="center" class="fullwidth">
<table cellpadding="0" cellspacing="0" border="0" width="300" class="content">
<tr>
<td width="10" style="width: 10px !important; height:400px;" height="400"> </td>
<td align="center" valign="top" height="400" style="line-height: 400px !important; height: 400px !important; width: 280px !important; border-collapse: collapse; mso-table-lspace:0pt;mso-table-rspace:0pt;" width="280" class="fullwidth">
<p style="color: #666666; font-size: 13px; line-height: 21px !important; font-family: Arial, 'sans-serif'; mso-line-height-rule: exactly;" >Located adjacent to Walt Disney World Resort, Wyndham Bonnet Creek Resort is the perfect home base in Lake Buena Vista for all kinds of Orlando adventures, and is just a few minutes' drive to Universal Orlando Resort and Wet 'n Wild. Guests have a blast with all the fun and exciting activities available at Wyndham Bonnet Creek Resort, designed to enhance family vacations with unexpected pleasures.</p></td>
<td width="10" style="width: 10px !important;"></td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
<tr>
<td align="center" height="42" style="line-height: 42px;">
<div><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://www.advantageprogram.net" style="height:40px;v-text-anchor:middle;width:180px;" arcsize="10%" stroke="f" fillcolor="#1e8de6">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://www.advantageprogram.net"
style="background-color:#1e8de6;border-radius:5px;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:lighter;line-height:40px;text-align:center;text-decoration:none;width:180px;-webkit-text-size-adjust:none;">Book Now!</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
</td>
</tr>
<tr><td style="height: 20px; line-height: 20px;" height="20"></td></tr>
</table>
</td>
<td width="10" style="width: 10px !important;" align="center"> </td>
</tr>
<tr><td style="height: 10px; line-height: 10px;" height="10" colspan="3"></td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="718" align="center">
<table cellpadding="0" cellspacing="0" border="0" width="700">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td height="25" style="line-height: 25px;"></td></tr>
<tr>
<td align="center">
<p style="font-size: 28px; text-align: center; color: #666666;">Promo Code: <span style="color: #1e8de6; font-size: 40px; font-weight: bold">S9496ROW</span></p>
</td>
</tr>
<tr><td height="25" style="line-height: 25px;"></td></tr>
</table>
</td>
</tr>
<tr>
<td align="center" bgcolor="#1e8de6" style="background-color: #1e8de6">
<img src="http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/numbers.png" width="550" height="118" alt="" class="fullwidth"/></td>
</tr>
<tr>
<td align="center" bgcolor="#1e8de6" style="background-color: #1e8de6">
<img src="http://www.immediatefill.com/SendyImages/AP/S9496ROW/images/email.png" width="350" height="45" alt="email: Service#Advantageprogram.net" class="fullwidth"/></td>
</tr>
<tr><td height="10" style="line-height: 10px;"></td></tr>
<tr>
<td align="center" >
<p style="font-size:11px; color:#626262; line-height: 22px;">Advantage Program • P.O. Box 35076 • Las Vegas, NV 89133-5076 • USA</p>
<p>Unsubscribe from this list</p>
</td>
</tr>
</table>
</td>
</tr>

Related

I want to display footer Template Page Number to Right of Page

I am adding some styling to what ultimately ends up being printed as a footer section of a PDF. All I'm trying to do is align the page number display to the right of the page - currently it's displaying on the left:
<table style="margin: 0 30px; position: absolute; float: right">
<tr style="font-size: 10px; color: #333; font-family: 'Helvetica Neue', 'Helvetica'; line-height: normal; width: 500px">
<td style="width: 2px">Page</td>
<td style="width: 2px" class='pageNumber'></td>
<td style="width: 2px">of</td>
<td style="width: 2px" class='totalPages'><td>
</tr>
</table>
I also tried this (with 100% not in quotes):
<table style="margin: 0 30px; position: absolute; float: right; width: 100%;">
And this with it in quotes:
<table style="margin: 0 30px; position: absolute; float: right; width: '100%';">
But none of the above work. The page number display is still on the far left.
What do I need to adjust to get this to float to the far right of the page?
Check this solution. I have removed the position, flex and the margin attribute.
<table style="width: 100%;">
<tr
style="font-size: 10px; color: #333; font-family: 'Helvetica Neue', 'Helvetica'; line-height: normal; width: 500px">
<td></td>
<td style="width: 2px">Page</td>
<td style="width: 2px" class='pageNumber'>5</td>
<td style="width: 2px">of</td>
<td style="width: 2px" class='totalPages'>10
</tr>
</tr>
</table>
There is no need to add the width aswell if you wish. Just add margin-left: auto to the table.
<table style="margin-left: auto;">
<tr
style="font-size: 10px; color: #333; font-family: 'Helvetica Neue', 'Helvetica'; line-height: normal; width: 500px">
<td style="width: 2px">Page</td>
<td style="width: 2px" class='pageNumber'>5</td>
<td style="width: 2px">of</td>
<td style="width: 2px" class='totalPages'>10
</tr>
</tr>
</table>
Please try below updated code.
<table style="margin: 0 30px; float: right">
<tr style="font-size: 10px; color: #333; font-family: 'Helvetica Neue', 'Helvetica'; line-height: normal; width: 500px">
<td style="width: 2px">Page</td>
<td style="width: 2px" class='pageNumber'></td>
<td style="width: 2px">of</td>
<td style="width: 2px" class='totalPages'><td>
</tr>
</table>

Content is breaking with each other when forwarding

I'm creating an email templates using Marketo app. Once created, I tried sending a sample mail to myself and it all looks good:
As you can see all the elements [table] shows fine, all together and neat, but when I try forwarding the same email, this happens:
As you can see the header is broken from the body. This also happens for the footer. Why is this happening?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mizona</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<style type="text/css">
#logo img {
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
width: auto;
float: none !important;
clear: both;
display: block;
}
td {
word-break:break-word; -webkit-hyphens:auto; -moz-hyphens:auto; hyphens:auto; border-collapse:collapse !important; font-family:'Verdana', 'Arial', sans-serif; font-weight:normal; line-height:19px; font-size:12px; margin:0; padding:0;
}
#content-subsection-right-img td, #content-subsection-plain td, #content-subsection-left-img td {
color: #555555;
}
.desktop-only {
display: block;
}
.mobile-only {
display: none;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.no-spacing {
padding:0px;
margin: 0px;
}
.pad-cell5 td{
padding: 5px !important;
}
.mobile-center {
text-align: left !important;
}
#socialicons img {
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
width: auto;
float: none !important;
clear: both;
display: inline-block !important;
border: none;
}
img {
max-width: 100%;
}
#graphic img {
outline: none;
text-decoration: none;
-ms-interpolation-mode: bicubic;
width: auto;
max-width: 100%;
float: none !important;
clear: both;
display: inline-block !important;
}
table[class="body"] .columns td.one {
width: 8.333333% !important;
}
table[class="body"] .column td.one {
width: 8.333333% !important;
}
table[class="body"] .columns td.two {
width: 16.666666% !important;
}
table[class="body"] .column td.two {
width: 16.666666% !important;
}
table[class="body"] .columns td.three {
width: 25% !important;
}
table[class="body"] .column td.three {
width: 25% !important;
}
table[class="body"] .columns td.four {
width: 33.333333% !important;
}
table[class="body"] .column td.four {
width: 33.333333% !important;
}
table[class="body"] .columns td.five {
width: 41.666666% !important;
}
table[class="body"] .column td.five {
width: 41.666666% !important;
}
table[class="body"] .columns td.six {
width: 50%;
}
table[class="body"] .column td.six {
width: 50%;
}
table[class="body"] .columns td.seven {
width: 58.333333% !important;
}
table[class="body"] .column td.seven {
width: 58.333333% !important;
}
table[class="body"] .columns td.eight {
width: 66.666666% !important;
}
table[class="body"] .column td.eight {
width: 66.666666% !important;
}
table[class="body"] .columns td.nine {
width: 75% !important;
}
table[class="body"] .column td.nine {
width: 75% !important;
}
table[class="body"] .columns td.ten {
width: 83.333333% !important;
}
table[class="body"] .column td.ten {
width: 83.333333% !important;
}
table[class="body"] .columns td.eleven {
width: 91.666666% !important;
}
table[class="body"] .column td.eleven {
width: 91.666666% !important;
}
table[class="body"] .columns td.twelve {
width: 100% !important;
}
table[class="body"] .column td.twelve {
width: 100% !important;
}
.pad-right-5 {
padding-right: 5px;
}
.pad-right-10 {
padding-right: 10px;
}
.pad-top-10 {
padding-top: 10px;
}
#media only screen and (max-width: 600px) {
.pad-right-10 {
padding-right: 0px;
}
.desktop-only {
display: none !important;
}
.mobile-only {
display: block;
}
#logo img {
width: 100% !important;
}
#logo-mobile img {
width: 80% !important;
}
#graphic img {
width: 100% !important;
height: auto !important;
}
*[class].center {
text-align:center !important;
margin:0 auto !important;
}
*[class].bottom-pad{ padding-bottom:35px !important;}
table[class="body"] table.columns td {
width: auto !important;
}
.social-icon td img {
width: 40px !important;
height: 40px !important;
}
}
</style>
</head>
<body style="width:100% !important; min-width:100%; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; text-align:left; line-height:19px; font-size:12px; margin:0; padding:0; background:#eeeeee; color: #555555;">
<table class="body" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:left; height:100%; width:100%; line-height:19px; font-size:12px; background:#eeeeee; margin:0; padding:0; " bgcolor="#EEEEEE">
<tbody>
<tr style="vertical-align:top; text-align:left; padding:0; " align="left">
<td class="center" align="center" valign="top" style="word-break:break-word; -webkit-hyphens:auto; -moz-hyphens:auto; hyphens:auto; border-collapse:collapse !important; vertical-align:top; text-align:center; font-weight:normal; line-height:19px; font-size:12px; margin:0; padding:0; ">
<center style="width:100%; min-width:600px; ">
<table class="container" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:inherit; width:600px; background:#ffffff; margin:0 auto; padding:0; " bgcolor="#FFFFFF">
<tbody>
<tr style="vertical-align:top; text-align:left; padding:0; " align="left">
<td class="center" style="word-break:break-word; -webkit-hyphens:auto; -moz-hyphens:auto; hyphens:auto; vertical-align:top; text-align:left; margin:0; padding:0;" align="left" valign="top" width="600">
<table class="row" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:left; width:100%; position:relative; display:block; padding:0px; ">
<tbody>
<tr style="vertical-align:top; text-align:left; padding:0; " align="left">
<td class="wrapper last center" style="word-break:break-word; -webkit-hyphens:auto; -moz-hyphens:auto; hyphens:auto; border-collapse:collapse !important; vertical-align:top; text-align:left; position:relative; color:#555555; line-height:19px; -webkit-transition:font-size 1s ease-in-out !important; font-size:12px; margin:0; padding:0px; " align="left" valign="top">
<table class="twelve columns center desktop-only" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:left; width:600px; padding:0; display:table !important; ">
<tbody>
<tr style="vertical-align:top; text-align:left; padding:0; " align="left">
<td class="center" style="word-break:break-word; -webkit-hyphens:auto; -moz-hyphens:auto; hyphens:auto; border-collapse:collapse !important; vertical-align:top; text-align:left; color:#555555; line-height:19px; -webkit-transition:font-size 1s ease-in-out !important; font-size:12px; margin:0; padding:0px; " align="left" valign="top">
<div class="mktEditable" id="logo" style="" mktoname="logo">
<p style="margin:0px;"> <img src="http://info.eoriginal.com/rs/907-BBE-942/images/nl-header-digest-general-v2.1.jpg" alt="eO Logo White.png" constrain="true" imagepreview="false" style="max-width: 600px;" /> </p>
</div></td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
<table class="container mktoContainer" id="template-wrapper" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:inherit; width:600px; background:#ffffff; margin:0 auto; padding:0; " bgcolor="#FFFFFF">
<tr class="mktoModule" id="title-date" mktoname="title/date">
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tbody>
<tr bgcolor="#2EA049">
<td style="color:#ffffff; padding: 10px 40px" align="left" valign="middle">
<div class="mktEditable" id="title" style="" mktoname="title-date">
<p style="margin: 0px;">Volume 4 | Issue 11 | 2018</p>
</div> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr style="vertical-align:top; text-align:left; padding:0; color: #555555;" align="left" class="mktoModule" id="content-general" mktoname="general content">
<td style="padding: 20px 40px">
<div class="mktEditable" id="intro" style="margin-top: 20px;" mktoname="intro">
<h3 style="color: #88c34d; text-align: center;">Trust the Asset. Trust the Transaction.™</h3>
<p>More and more players across industries are realizing the advantages of digital transformation, making it a competitive necessity for companies to harness digital solutions. Our own rapid growth mirrors this trend, with eOriginal recently being named one of the fastest growing companies in the country.</p>
<p>Entering into 2019, eOriginal knows becoming part of the auto finance digital ecosystem is essential to achieving your business goals. To take full advantage of this continued growth, please join our upcoming webinar which is focus on the auto finance industry. Learn more about digital best practices and how originators and lenders can prioritize tech stack building and expansion.</p>
</div> </td>
</tr>
<tr bgcolor="#353937" style="color: #FFFFFF; background-image: url(http://info.eoriginal.com/rs/907-BBE-942/images/nl-indent-separator-v2.1.jpg); background-repeat: no-repeat; background-position: 0px 50%;" class="mktoModule" id="mod-subsection-title" mktoname="subsection-title">
<td valign="middle" style="padding: 10px 40px;">
<div class="mktEditable" id="title-subsection" mktoname="title-subsection" style="display:inline-block;">
<p style="margin: 0px; display: inline;"><b>eOriginal Named to Deloitte's Technology Fast 500™ </b></p>
</div> </td>
</tr>
<tr style="vertical-align:top; text-align:left; padding:0; color: #555555;" align="left" class="mktoModule" id="mod-subsection-left-imgf16aafbb-fc4e-4e27-b799-256623b49daa" mktoname="mod-subsection-left-img-1">
<td style="padding: 20px 40px">
<div class="mktEditable" id="content-subsection-left-imgf16aafbb-fc4e-4e27-b799-256623b49daa" mktoname="content-subsection-left-img">
<table class="columns">
<tbody>
<tr valign="top">
<td width="260" class="pad-right-10"> <p class="no-spacing"><img src="https://www.eoriginal.com/wp-content/uploads/2017/07/Random-image-_0005_iStock-511197926-1024x683.jpg" width="100%" /></p> </td>
<td width="260"> <p class="no-spacing">For the second consecutive year, eOriginal was named to Deloitte’s Technology Fast 500™, a ranking of the 500 fastest growing technology, media, telecommunications, life sciences and energy tech companies in North America. eOriginal's growth of 266 percent reaffirms its status as a leader in digital lending transformation and management.</p> <p class="no-spacing"><b>Read more</b></p> </td>
</tr>
</tbody>
</table>
</div> </td>
</tr>
<tr bgcolor="#353937" style="color: #FFFFFF; background-image: url(http://info.eoriginal.com/rs/907-BBE-942/images/nl-indent-separator-v2.1.jpg); background-repeat: no-repeat; background-position: 0px 50%;" class="mktoModule" id="mod-subsection-titlef7e9c286-1eb5-44f6-9d0b-5b28ac2afd8d" mktoname="subsection-title-1">
<td valign="middle" style="padding: 10px 40px;">
<div class="mktEditable" id="title-subsectionf7e9c286-1eb5-44f6-9d0b-5b28ac2afd8d" mktoname="title-subsection" style="display:inline-block;">
<p style="margin: 0px; display: inline;"><b>Live Webinar: Building an End-to-End eContracting Experience in Auto Finance</b></p>
</div> </td>
</tr>
<tr style="vertical-align:top; text-align:left; padding:0; color: #555555;" align="left" class="mktoModule" id="mod-subsection-right-img21690d4b-48d7-4fae-a245-7fbbe7765aba" mktoname="mod-subsection-right-img-1">
<td style="padding: 20px 40px">
<div class="mktEditable" id="content-subsection-right-img21690d4b-48d7-4fae-a245-7fbbe7765aba" mktoname="content-subsection-right-img">
<table class="columns">
<tbody>
<tr valign="top">
<td width="260" class="pad-right-10"> <p class="no-spacing">Whether you provide direct or indirect lending, meeting the demands of today’s auto finance market means going digital is no longer a matter of ‘if’ but ‘when’. Join defi SOLUTIONS Chief Operating Officer Lana Johnson and eOriginal's Director of FinTech Strategies John Jacobs for insights on end-to-end digital auto financing processes, from origination to asset monetization through warehouse financing or securitization. </p> <p class="no-spacing"><b>Register Now</b></p> </td>
<td width="260"> <p class="no-spacing"><br /></p> <p class="no-spacing"><img src="http://info.eoriginal.com/rs/907-BBE-942/images/Cover Defi Solutions.jpg" height="151" width="269" /></p> </td>
</tr>
</tbody>
</table>
</div> </td>
</tr>
<tr bgcolor="#353937" style="color: #FFFFFF; background-image: url(http://info.eoriginal.com/rs/907-BBE-942/images/nl-indent-separator-v2.1.jpg); background-repeat: no-repeat; background-position: 0px 50%;" class="mktoModule" id="mod-subsection-title3ccba291-3d31-4b47-8f3e-4c143fa31497" mktoname="subsection-title-clone">
<td valign="middle" style="padding: 10px 40px;">
<div class="mktEditable" id="title-subsection3ccba291-3d31-4b47-8f3e-4c143fa31497" mktoname="title-subsection" style="display:inline-block;">
<p style="margin: 0px; display: inline;"><b>Case Study: MotoLease Selects eOriginal to Digitally Transform Powersports Financing</b></p>
</div> </td>
</tr>
<tr style="vertical-align:top; text-align:left; padding:0; color: #555555;" align="left" class="mktoModule" id="mod-subsection-left-img" mktoname="mod-subsection-left-img">
<td style="padding: 20px 40px">
<div class="mktEditable" id="content-subsection-left-img" mktoname="content-subsection-left-img">
<table class="columns">
<tbody>
<tr valign="top">
<td width="260" class="pad-right-10"> <p class="no-spacing"><img src="http://info.eoriginal.com/rs/907-BBE-942/images/eO_Job-327_CS_MotoLease_COVER_01112018.png" width="178" height="252" style="display: block; margin-left: auto; margin-right: auto;" /></p> </td>
<td width="260"> <p class="no-spacing">Driven by a vision to disrupt the powersports leasing segment, MotoLease turned to eOriginal to adopt best practices in eSignature and digital asset management. This case study highlights how transformative digital lending technology drove the company's dramatic growth to corner 75 percent of the powersports leasing market. <b>Read more</b></p> </td>
</tr>
</tbody>
</table>
</div> </td>
</tr>
</table>
<table class="container" style="border-spacing:0; border-collapse:collapse; vertical-align:top; text-align:inherit; width:600px; background:#ffffff; margin:0 auto; padding:0; " bgcolor="#FFFFFF">
<tbody>
<tr bgcolor="#2EA049">
<td class="two-column" style="font-size: 0; text-align: center;">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="50%" valign="top">
<![endif]-->
<div class="rcolumn" style="width: 100%; max-width: 295px; display: inline-block; vertical-align: top;">
<table width="100%">
<tbody>
<tr>
<td class="inner mobile-center" style="font-size: 10px; color: #FFFFFF; padding: 20px 40px;"> eOriginal.com </td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="50%" valign="top">
<![endif]-->
<div class="rcolumn" style="width: 100%; max-width: 295px; display: inline-block; vertical-align: top;">
<table width="100%">
<tbody>
<tr>
<td class="inner" style="font-size: 10px; color: #FFFFFF; padding: 10px 40px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 100%">
<tbody>
<tr>
<td align="left" valign="middle" width="50"><img alt="Twitter" src="https://eoriginal.wise-portal.com/newsletter/public/social-twitter-icon.png" style="color: #FFFFFF; font-size: 12px; " width="40" height="40" /></td>
<td align="left" valign="middle" width="50"><img alt="LinkedIn" src="https://eoriginal.wise-portal.com/newsletter/public/social-linkedin-icon.png" style="color: #FFFFFF; font-size: 12px; " width="40" height="40" /></td>
<td align="left" valign="middle" width="50"><img alt="Facebook" src="https://eoriginal.wise-portal.com/newsletter/public/social-facebook-icon.png" style="color: #FFFFFF; font-size: 12px;" width="40" height="40" /></td>
<td align="left" valign="middle" width="50"><img alt="Blog" src="https://eoriginal.wise-portal.com/newsletter/public/social-blog-icon.png" style="color: #FFFFFF; font-size: 12px; " width="40" height="40" /></td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]--> </td>
</tr>
<tr bgcolor="#353937">
<td class="two-column" style="font-size: 0; text-align: center;">
<!--[if (gte mso 9)|(IE)]>
<table width="100%">
<tr>
<td width="50%" valign="top">
<![endif]-->
<div class="rcolumn" style="width: 100%; max-width: 295px; display: inline-block; vertical-align: top;">
<table width="100%">
<tbody>
<tr>
<td class="inner mobile-center" style="font-size: 10px; color: #FFFFFF; padding: 10px 40px;"> <img src="http://info.eoriginal.com/rs/907-BBE-942/images/nl-footer-logo-v2.2.png" width="200" /><br /><br /> <span>© 2018 eOriginal, Inc. All rights reserved.</span> </td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td><td width="50%" valign="top">
<![endif]-->
<div class="rcolumn" style="width: 100%; max-width: 295px; display: inline-block; vertical-align: top;">
<table width="100%">
<tbody>
<tr>
<td class="inner mobile-center" style="font-size: 10px; color: #FFFFFF; padding: 10px 40px;"> The Warehouse at Camden Yards<br /> 351 W. Camden St., Suite 800<br /> Baltimore, MD 21201<br /><br /> SALES <span style="color: #2EA049">1-866-935-1776</span><br />SUPPORT <span style="color: #2EA049">1-866-364-3578</span> </td>
</tr>
</tbody>
</table>
</div>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]--> </td>
</tr>
</tbody>
</table>
</center></td>
</tr>
</tbody>
</table>
</body>
</html>
There isn't really anything you can do to prevent this. It's well known across email development that forwarding trashes any and all email layouts in any number of ways depending on the client being used.
Best bet is to try and avoid suggesting users forward the email on and provide a 'send to a friend' landing page instead. Also informing colleagues/clients of the same and making sure they don't forward between each other. Alternatives for them are to send any tests on as attachments OR sending tests directly from your ESP.
Useful Litmus blog post going into the issue a bit more here

Responsive Table in Email Template not working in case of mobile view while checking in mobile through email

Please help me out in getting proper view in case of mobile view while code is sent through an extension to gmail account and then checking in mobile.
Here is my complete code :
I'm trying to get mobile view as shown in figure1 i.e.,mobile
but when i'm checking it in mobile only the width of the table is getting adjusted but not getting as shown in above image.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>1973 Online</title>
<style>
/* Element selectors */
body {
width: 100% !important;
-webkit-text-size-adjust: none;
-ms-text-size-adjust: none;
margin: 0;
padding: 0;
background-color: #f8f8f8
}
img {
outline: none;
text-decoration: none;
border: none;
display: block;
-ms-interpolation-mode: bicubic;
}
span {font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif;}
a {text-decoration: none !important;color: #00A1DD}
.white {text-decoration: none !important;color: #ffffff !important;}
.black {text-decoration: none !important;color: #000000 !important;}
.red {text-decoration: none !important;color: #e53e2f !important;}
.appleLinks a {color: #000000;text-decoration: none}
.appleLinksWhite a {color: #ffffff;text-decoration: none}
#media only screen and (max-width: 495px) {
/*Hide*/
table[class="hide"] {display: none !important}
tr[class="hide"] {display: none !important;}
td[class="hide"] {display: none !important;}
img[class="hide"] { display: none !important;}
span[class="hide"] {display: none !important;}
table[class="table40"] {width: 44% !important; font-size: 12px !important}
table[class="table40"] td {padding: 6px !important}
table[class="table60"] {width: 56% !important;}
td[class="heromob"] {background:url(https://s3.amazonaws.com/seagateglobal/2016/2016-01-18-NASPortfolio/images/20160118-NASPortfolio-heroimage-mob.jpg) no-repeat center #098fc9 !important; vertical-align: top; padding-top: 10px !important; padding-left: 0px !important; text-align: center}
td[class="center-text"] {text-align:center !important}
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#333333">
<tr>
<td style="font-size:0px"> </td>
<td width="600" align="center" style="font-size:0px">
<table cellpadding="0" cellspacing="0" width="100%" border="0" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#333333" bgcolor="#FFFFFF">
<tr>
<td width="600" height="15" bgcolor="#e1e1e1" style="height:15px; line-height:15px; font-size:0px"> </td>
</tr>
<tr>
<td bgcolor="#e1e1e1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="30"> </td>
<td valign="bottom">
<table width="23%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#919292" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table40">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#e1e1e1"> </td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 1</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 2</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 3</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">Category 4</td>
</tr>
</tbody>
</table>
<!--[if mso]>
<table width="100%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#919292" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff" class="table40">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#e1e1e1"> </strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">Workload Rate</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">Internal Data Rate</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">MTBF</td>
</tr>
<tr>
<td align="center">Limited Warranty</td>
</tr>
</tbody>
</table>
<![endif]-->
<!--[if mso]></td><td><![endif]-->
<table width="25%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#6fbcde" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292"><strong>Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">180TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">159-216MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">1 million hours</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">3 years</td>
</tr>
</tbody>
</table>
<!--[if mso]>
<table width="100%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#6fbcde" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff;" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292">Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">180TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">159-216MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">1 million hours</td>
</tr>
<tr>
<td align="center">3 years</td>
</tr>
</tbody>
</table>
<![endif]-->
<!--[if mso]></td><td style="display:none"><![endif]-->
<table width="0%" border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#919292" style="font-size: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table40">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#e1e1e1"><strong> </strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 1</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 2</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 3</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">Category 4</td>
</tr>
</tbody>
</table>
<!--[if mso]></td><td><![endif]-->
<table width="25%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#199cd4" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292"><strong>Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">300TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">216-230MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">1.2 million hours</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">5 years</td>
</tr>
</tbody>
</table>
<!--[if mso]>
<table width="100%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#199cd4" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292"><strong>Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">300TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">216-230MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">1.2 million hours</td>
</tr>
<tr>
<td align="center">5 years</td>
</tr>
</tbody>
</table>
<![endif]-->
<!--[if mso]></td><td style="display:none"><![endif]-->
<table width="0%" border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#919292" style="font-size: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table40">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#e1e1e1"><strong> </strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 1</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 2</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Category 3</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">Category 4</td>
</tr>
</tbody>
</table>
<!--[if mso]></td><td><![endif]-->
<table width="25%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#0c619d" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff; mso-hide:all" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292"><strong>Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">550TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">Up to 237MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4;color:#FFFFFF">2 million hours</td>
</tr>
<tr>
<td align="center" style="color:#FFFFFF">5 years</td>
</tr>
</tbody>
</table>
<!--[if mso]>
<table width="100%" border="0" cellspacing="0" cellpadding="6" align="left" bgcolor="#0c619d" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, Tahoma, sans-serif; color:#ffffff" class="table60">
<tbody>
<tr>
<td bgcolor="#e1e1e1" align="center" style="color:#919292"><strong>Title</strong></td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">550TB/Year</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">Up to 237MB/s</td>
</tr>
<tr>
<td align="center" style="border-bottom: 1px solid #b4b4b4">2 million hours</td>
</tr>
<tr>
<td align="center">5 years</td>
</tr>
</tbody>
</table>
<![endif]-->
</td>
<td width="30"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td bgcolor="#e1e1e1" height="15" style="height:15px; line-height:15px; font-size:0px"> </td>
</tr>
</table>
</td>
<td style="font-size:0px"> </td>
</tr>
</table>
</body>
</html>
I need to get as shown in the below image in case of mobile view:
[mobileview][1]
And in case of desktop i'll be getting as shown in below image:
[desktopview][2]
[1]: https://i.stack.imgur.com/VpRCm.png
[2]: https://i.stack.imgur.com/NpY5u.png

CSS Line Dividor

I'm trying to organize two sets of information in a particular way. I have a very crude mock-up here:
https://imgur.com/a/LrSCg
I have everything working except for the diving line between the two sets of info. I've tried setting up the entire thing as a table and then setting the appropriate border styles, but that didn't work out so well.
Here's what I currently have that gets me everything except the middle dividing line:
<table style="margin: 0 auto; border: 1px solid black; table-layout: fixed">
<tr>
<td>
<img id="left_image" class="images" alt="left_image" height="auto" width="300" style="border: 2px solid #5b5b5b">
</td>
<td style="display:block;">
<div style="float: left; margin: 20px 0 0 20px;">
<table>
<tr>
<td style="width: 75px;">Name:</td><td><span id="left_name" style="font-weight: bold"></span></td>
</tr>
<tr>
<td style="width: 75px;">Category:</td>
<td><span id="left_category" style="font-weight: bold"></span></td>
</tr>
<tr>
<td style="width: 75px;">ID:</td>
<td><span id="left_id" style="font-weight: bold;"></span></td>
</tr>
</table>
</div>
<hr>
<div style="float: right; margin: 100px 20px 0 0;">
<table>
<tr>
<td style="width: 75px;">Name:</td>
<td><span id="right_name" style="font-weight: bold"></span></td>
</tr>
<tr>
<td style="width: 75px;">Category:</td>
<td><span id="right_category" style="font-weight: bold"></span></td>
</tr>
<tr>
<td style="width: 75px;">ID:</td>
<td><span id="right_id" style="font-weight: bold"></span></td>
</tr>
</table>
</div>
</td>
<td>
<img id="right_image" class="images" alt="right_image" height="auto" width="300" style="border: 2px solid #5b5b5b">
</td>
</tr>
<tr>
<td style="text-align: center;">
<button class="btn4 btn4-confirm" onclick="selectLeftID()">Select Left</button>
</td>
<td></td>
<td style="text-align: center;">
<button class="btn4 btn4-confirm" onclick="electRightID()">Select Right</button>
</td>
</tr>
</table>
This is just experimental code, it hasn't been cleaned up yet, so please ignore all the in-line styling.
Here's a sloppy example I threw together: https://jsfiddle.net/33pc23w0/2/
I would like to make the line in code and not use any images since I'd like the elements to be flexible in size. Any suggestions on the middle lines?
Here's a quick solution. I set the main container to relative position and added two absolute position divs with appropriate borders and dimensions to handle the dividers.
.main-container {
width: 800px;
position: relative;
}
.divider-top {
position: absolute;
width: 150px;
height: 150px;
left: 300px;
border: 2px solid black;
border-left: 0px;
border-top: 0px;
}
.divider-bottom {
position: absolute;
width: 150px;
height: 167px;
top: 150px;
left: 300px;
border: 0px;
border-left: 2px solid black;
}
.details_images {
display: block;
margin: auto;
margin-top: 5px;
margin-bottom: 5px;
border-radius: 10px;
}
.btn4 {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
width: 150px;
height: 50px;
}
.btn4.focus,
.btn4:focus,
.btn4:hover {
color: #333;
text-decoration: none;
}
.btn4-confirm {
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c;
}
.btn4-confirm:active {
color: #fff;
background-color: #449d44;
border-color: #398439;
}
<div class="main-container">
<div class="divider-top"></div>
<div class="divider-bottom"></div>
<table style="width: 100%; border: 1px solid black; table-layout: fixed">
<tr>
<td>
<img id="left_image" class="images" alt="left_image" height="auto" width="200" src="https://catalogue.millsarchive.org/images/generic-icons/blank.png" style="border: 2px solid #5b5b5b">
</td>
<td style="display:block;">
<div style="float: left; margin: 20px 0 0 20px;">
<table>
<tr>
<td style="width: 75px;">Name:</td>
<td><span id="left_name" style="font-weight: bold">Blah</span></td>
</tr>
<tr>
<td style="width: 75px;">Category:</td>
<td><span id="left_category" style="font-weight: bold">Blah</span></td>
</tr>
<tr>
<td style="width: 75px;">ID:</td>
<td><span id="left_id" style="font-weight: bold;">Blah</span></td>
</tr>
</table>
</div>
<div style="float: right; margin: 100px 20px 0 0;">
<table>
<tr>
<td style="width: 75px;">Name:</td>
<td><span id="right_name" style="font-weight: bold">Blah</span></td>
</tr>
<tr>
<td style="width: 75px;">Category:</td>
<td><span id="right_category" style="font-weight: bold">Blah</span></td>
</tr>
<tr>
<td style="width: 75px;">ID:</td>
<td><span id="right_id" style="font-weight: bold">Blah</span></td>
</tr>
</table>
</div>
</td>
<td>
<img id="right_image" class="images" alt="right_image" height="auto" width="200" src="https://catalogue.millsarchive.org/images/generic-icons/blank.png" style="border: 2px solid #5b5b5b">
</td>
</tr>
<tr>
<td style="text-align: center;">
<button class="btn4 btn4-confirm" onclick="selectLeftID()">Select Left</button>
</td>
<td></td>
<td style="text-align: center;">
<button class="btn4 btn4-confirm" onclick="electRightID()">Select Right</button>
</td>
</tr>
</table>
</div>

Printing with CSS & fixed header/footer in Chrome: intermittent render issues

I'm trying to add some custom formatting to an e-commerce receipt for printing, with a fixed header and footer to appear on every page printed. The problem is, it seems to intermittently work. Sometimes it loads fine, others, the header appears near the middle of the page rather than at the top. Sometimes just canceling the print dialog box and reopening it has changed how it loads.
Examples:
Correct:
Incorrect:
Incorrect:
Is this some kind of chrome rendering issue?
Full code below:
body{
background: #FFFFFF;
font-size: 12pt;
}
.bold {
font-weight:bold;
}
.clr {
clear: both;
}
.invoice-title {
font-size: 14pt;
color:#734B3A;
margin:25px 0 15px 0;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
}
table {
width: 100%;
}
th {
text-align: left;
border-bottom:1px solid #EEE;
}
.variation {
font-size: 11px;
}
#main_container {
width:100%;
margin:0 0 30px 0;
}
#main {
width:720px;
margin:auto;
}
#main .header_logo {
text-align: right;
margin:15px 0 15px 0;
font-size: 24px;
font-weight: bold;
color:#000000;
font-family: Arial, Helvetica, sans-serif;
}
#main .wrapper {
border:1px solid #EFECDC;
background-color:#FFFFFF;
}
#main .wrapper-table {
margin:0 0 0 0;
padding:25px 25px 25px 25px;
font-family:Arial, Helvetica, sans-serif;
}
.short_cell {
width: 90px;
}
#media all {
.page-break { display:none; }
}
#media print {
.page-break { display:block; page-break-before:always; }
.noprint { display: none; }
}
body{
margin-top: 145px;
}
#main .header_logo{
font-family: 'Sacramento', cursive;
color: #D79E32;
font-size: 3.5em;
font-weight: normal;
margin-bottom: 20px;
margin-top: 0px;
padding-top: 90px;
line-height: 0.6em;
padding-bottom: 10px;
border-bottom: #ade6df solid 10px;
position: fixed;
top: 0;
width: 715px;
background-color: #fff
}
#main .header_logo img{
max-height: 120px;
max-width: 120px;
float: left;
margin-top: -85px;
}
#main .wrapper{
border:none;
}
.footer {
background: #ade6df;
color: #fff;
text-align: center;
font-family: 'Open Sans', sans-serif;
padding: 5px 0;
font-weight: 300;
position: fixed;
bottom: 0;
width: 715px;
}
.footer a{
color: #fff;
text-decoration: none;
}
.footer .spacer {
font-size: 0.5em;
padding: 0 10px;
vertical-align: middle;
position: relative;
top: -2px;
}
.page-break{
height: 215px;
width: 100%;
}
.page-break:last-child{
display: none;
}
#media screen {
.footer {
bottom: 20px;
}
body{
margin-bottom: 30px;
}
}
<div style="main_container">
<div id="main">
<div class="header_logo">
<img src="/receipt_logo.jpg" alt="" />
My Company
</div>
<div class="clr"></div>
<div class="wrapper">
<div class="wrapper-table">
<table cellpadding="0" cellspacing="5" border="0" style="margin-left:5px;">
<tr>
<td class="invoice-title">Receipt</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><strong>Date:</strong> 9/13/2016</td>
</tr>
<tr>
<td><strong>Order Number:</strong> 123456789</td>
</tr>
<tr><td><strong>Email:</strong> email#email.com</td></tr><tr><td><strong>Phone:</strong> 585-123-4567</td></tr><tr><td><strong>newsletter subscribe:</strong> 0</td></tr> <tr>
<td>
<table cellpadding="0" cellspacing="0" border="0"><tr>
<td valign="top" style="padding-right: 20px;"><strong>Invoice Address:</strong><br />
Jane J. Doe<br />123 Main Street<br />ANYTOWN, CA 12345<br />US<br /> </td>
<td valign="top"><strong>Shipping Address (Me):</strong><br />Jane J. Doe<br />123 Main Street<br />ANYTOWN, CA 12345<br />US<br />Method: Standard Shipping<br />Shipping: $6.99<br /> </td> </tr></table>
</td>
</tr>
</table>
<table cellpadding="5" cellspacing="5" border="0" style="margin-top:30px;">
<tr>
<th>Product</td>
<th class="short_cell">Price</td>
<th class="short_cell">Qty</td>
<th class="short_cell">Subtotal</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr class="page-break"></tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr style="margin-top:30px;">
<td> </td>
<td colspan="2" align="right">Shipping:</td>
<td class="short_cell bold">$6.99</td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="right">LAWN:</td>
<td class="short_cell bold">-$8.70</td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="right">Total:</td>
<td class="short_cell bold">$56.27</td>
</tr>
</table>
</div>
</div>
<div class="footer">
My company<span class="spacer">●</span>mycompany.com<span class="spacer">●</span>888-111-1234<span class="spacer">●</span>info#mycompany.com
</div>
</div>
</div>
<div class="page-break"></div>
There is .footer { position: fixed; } directive. I made it a HTML file with your CSS. I checked with Safari print, now that info is coming. But you need adjustment of padding, margin etc. Also footer div class is does not sound good near navigation. Also add that color on print CSS part, else it will be on white background. Here is the raw gist with what probably you wanted -- https://gist.githubusercontent.com/AbhishekGhosh/ddb08179d238ec36f48ee467e4916d42/raw/16e761809f357ba0d2ac085bc6746487451db3d4/stack0410.html . Save it as HTML file and open on your browser.
Note : Edited.
<!DOCTYPE html>
<html>
<head>
<title>This is a title</title>
<style>body{
background: #FFFFFF;
font-size: 12pt;
}
.bold {
font-weight:bold;
}
.clr {
clear: both;
}
.invoice-title {
font-size: 14pt;
color:#734B3A;
margin:25px 0 15px 0;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
}
table {
width: 100%;
}
th {
text-align: left;
border-bottom:1px solid #EEE;
}
.variation {
font-size: 11px;
}
#main_container {
width:100%;
margin:0 0 30px 0;
}
#main {
width:720px;
margin:auto;
}
#main .header_logo {
text-align: right;
margin:15px 0 15px 0;
font-size: 24px;
font-weight: bold;
color:#000000;
font-family: Arial, Helvetica, sans-serif;
}
#main .wrapper {
border:1px solid #EFECDC;
background-color:#FFFFFF;
}
#main .wrapper-table {
margin:0 0 0 0;
padding:25px 25px 25px 25px;
font-family:Arial, Helvetica, sans-serif;
}
.short_cell {
width: 90px;
}
#media all {
.page-break { display:none; }
}
#media print {
.page-break { display:block; page-break-before:always; }
.noprint { display: none; }
}
body{
margin-top: 145px;
}
#main .header_logo{
font-family: 'Sacramento', cursive;
color: #D79E32;
font-size: 3.5em;
font-weight: normal;
margin-bottom: 20px;
margin-top: 0px;
padding-top: 90px;
line-height: 0.6em;
padding-bottom: 10px;
border-bottom: #ade6df solid 10px;
position: fixed;
top: 0;
width: 715px;
background-color: #fff
}
#main .header_logo img{
max-height: 120px;
max-width: 120px;
float: left;
margin-top: -85px;
}
#main .wrapper{
border:none;
}
.footer {
background: #ade6df;
color: #fff;
text-align: center;
font-family: 'Open Sans', sans-serif;
padding: 5px 0;
font-weight: 300;
#position: fixed;
bottom: 0;
width: 715px;
}
.footer a{
color: #fff;
text-decoration: none;
}
.footer .spacer {
font-size: 0.5em;
padding: 0 10px;
vertical-align: middle;
position: relative;
top: -2px;
}
.page-break{
height: 215px;
width: 100%;
}
.page-break:last-child{
display: none;
}
#media screen {
.footer {
bottom: 20px;
}
body{
margin-bottom: 30px;
}
}</style>
</head>
<body>
<div style="main_container">
<div id="main">
<div class="header_logo">
<img src="/receipt_logo.jpg" alt="" />
My Company
</div>
<div class="clr"></div>
<div class="wrapper">
<div class="wrapper-table">
<table cellpadding="0" cellspacing="5" border="0" style="margin-left:5px;">
<tr>
<td class="invoice-title">Receipt</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><strong>Date:</strong> 9/13/2016</td>
</tr>
<tr>
<td><strong>Order Number:</strong> 123456789</td>
</tr>
<tr><td><strong>Email:</strong> email#email.com</td></tr><tr><td><strong>Phone:</strong> 585-123-4567</td></tr><tr><td><strong>newsletter subscribe:</strong> 0</td></tr> <tr>
<td>
<table cellpadding="0" cellspacing="0" border="0"><tr>
<td valign="top" style="padding-right: 20px;"><strong>Invoice Address:</strong><br />
Jane J. Doe<br />123 Main Street<br />ANYTOWN, CA 12345<br />US<br /> </td>
<td valign="top"><strong>Shipping Address (Me):</strong><br />Jane J. Doe<br />123 Main Street<br />ANYTOWN, CA 12345<br />US<br />Method: Standard Shipping<br />Shipping: $6.99<br /> </td> </tr></table>
</td>
</tr>
</table>
<table cellpadding="5" cellspacing="5" border="0" style="margin-top:30px;">
<tr>
<th>Product</td>
<th class="short_cell">Price</td>
<th class="short_cell">Qty</td>
<th class="short_cell">Subtotal</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr class="page-break"></tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$24.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$24.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$7.99</td>
<td class="short_cell">1</td>
<td class="short_cell">$7.99</td>
</tr>
<tr>
<td><div>Product goes here</div><div class="variation">Ship To: Me</div></td>
<td class="short_cell">$25.00</td>
<td class="short_cell">1</td>
<td class="short_cell">$25.00</td>
</tr>
<tr style="margin-top:30px;">
<td> </td>
<td colspan="2" align="right">Shipping:</td>
<td class="short_cell bold">$6.99</td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="right">LAWN:</td>
<td class="short_cell bold">-$8.70</td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="right">Total:</td>
<td class="short_cell bold">$56.27</td>
</tr>
</table>
</div>
</div>
<div class="footer">
My company<span class="spacer">●</span>mycompany.com<span class="spacer">●</span>888-111-1234<span class="spacer">●</span>info#mycompany.com
</div>
</div>
</div>
<div class="page-break"></div>
</body>
</html>

Resources