August 29th, 2012, 01:59 PM
Table spacing issue
i am developing an html email. to do this i used two separate tables and now there is spacing between them. i cut images to post in the tables that seems to be causing the issue. however i have tried everything i know including looking online for solutions.
SOlutions tried :
- setting the cellspacing to 0
- setting the cellpadding to 0
- setting the border to 0
- reducing the height of the table so there should no spacing between the table edge and imagg
August 29th, 2012, 02:09 PM
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--top of email header-->
<table align="center" style="width:600px; height:243x; boarder-collapse: collapse;" cellpadding="0" cellspacing="0">
<td> <img src="images/header1.jpg" ></td>
<table bgcolor="#000000"height="457px" cellpadding="0" border="collapse" cellspacing="0" style="border-collapse:collapse;" >
<td width="386px" valign="top">
<td width="214px" valign="top"><img src="images/side.jpg" > </td>
August 29th, 2012, 02:41 PM
There are numerous errors in your code, including the spelling of border, an unmatched-closing table tag, use of deprecated (obsolete in HTML5) attributes (center, valign, bgcolor).
I suggest you fix these first. Validate!. Otherwise, you cannot expect it to behave.
Once you've fixed everything you should study CSS and probably remove the tables' margins.
August 29th, 2012, 02:47 PM
Thank you for your help and for hurting my feelings JK JK.
i corrected the errors and vailitated. thank you
so what your saying you can use table for html 5
i thought it was flexible? please elaberate
August 29th, 2012, 03:03 PM
is a starting point, as in this page: w3schools