css - How do i get rid of white space around image and table cells in HTML email -


i have pre-designed html email have sliced , coded using komodo edit. content within table display: block , border-collapse: collapse; have been added tables inline-css , line-height: 0px; cells inline-css. have been using emailonacid test html email , seems happening looks fine on every email program except outlook. outlook addining white space sliced images causing surrounding content/images become out of line.

<table id="table_01" style="border: 1px solid #d6d6d7; font-family: sans-serif; font-size: 14px; border-collapse: collapse;" width="800" height="1501" align="center" border="0" cellpadding="0" cellspacing="0"> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_01.jpg" width="800" height="312" alt=""></td> </tr> <tr>     <td colspan="6" style="width: 800; height:199px; padding: 20px 10px 0px 15px;">     <p> text goes here</p>             </td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_03.jpg" width="800" height="37" alt=""></td> </tr> <tr>     <td colspan="2">         <img style="display: block;" src="images/edm_personalised_02_04.jpg" width="180" height="47" alt=""></td>     <td colspan="2" style="width: 135px; height: 47; font-size: 12px; text-transform: uppercase;">     text here             <br/>             <span style="font-weight: bold;">&#163;#xx.xx#</span>             </td>     <td colspan="2">         <img style="display: block;" src="images/edm_personalised_02_06.jpg" width="485" height="47" alt=""></td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_07.jpg" width="800" height="88" alt=""></td> </tr> <tr>     <td colspan="3" style="width: 228px; height: 21px; font-size: 12px; text-transform: uppercase; ">                  &nbsp;                 &nbsp;                 &nbsp;             text here             </td>     <td colspan="3">         <img style="display: block;" src="images/edm_personalised_02_09.jpg" width="572" height="21" alt=""></td> </tr> <tr>     <td style="width:" 90px;  height: 21px; font-size: 12px;">     <span style="font-weight: bold;">                 &nbsp;                 &nbsp;                 &#163;#xx.xx#</span>    </td>     <td colspan="5">         <img style="display: block;" src="images/edm_personalised_02_11.jpg" width="710" height="21" alt=""></td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_12.jpg" width="800" height="140" alt=""></td> </tr> <tr>     <td colspan="5">         <img style="display: block;" src="images/edm_personalised_02_13.jpg" width="605" height="48" alt=""></td>     <td style="width: 195px; height: 48px; font-size: 12px;text-transform: uppercase;">     text here             <br/>             <span style="font-weight: bold; ">&#163;#xx.xx#</span>             </td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_15.jpg" width="800" height="66" alt=""></td> </tr> <tr>     <td colspan="6" style="width: 800px; height: 145px; font-size: 24px; text-align: center;">     #dealername#             <br/>             #contact_number#</td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_17.jpg" width="800" height="329" alt=""></td> </tr> <tr>     <td colspan="6">         <img style="display: block;" src="images/edm_personalised_02_18.jpg" width="800" height="58" alt=""></td> </tr> <tr>     <td>         <img style="display: block;" src="images/spacer.gif" width="90" height="1" alt=""></td>     <td>         <img style="display: block;" src="images/spacer.gif" width="90" height="1" alt=""></td>     <td>         <img style="display: block;" src="images/spacer.gif" width="48" height="1" alt=""></td>     <td>         <img style="display: block;" src="images/spacer.gif" width="87" height="1" alt=""></td>     <td>         <img style="display: block;" src="images/spacer.gif" width="290" height="1" alt=""></td>     <td>         <img style="display: block;" src="images/spacer.gif" width="195" height="1" alt=""></td> </tr> 

is there anyway of getting rid of spaces?

try style="line-height: 0px;" on table cells.

also if widths , heights on table cells , images correct , set properly.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -