Hey All
For some reason I can't get the content of my page to center, I have put all of the content inside a table with 100% width and then centered the content in that table. However when I view in IE it's all shifted to the left, yet when I open the page in Dreamweaver it's in the center. I have posted the code below, can someone tell me what I am missing? The annoying part is I get the feeling its something really simple, one of those things thats easily overlooked or something along those lines.
Thanks
For some reason I can't get the content of my page to center, I have put all of the content inside a table with 100% width and then centered the content in that table. However when I view in IE it's all shifted to the left, yet when I open the page in Dreamweaver it's in the center. I have posted the code below, can someone tell me what I am missing? The annoying part is I get the feeling its something really simple, one of those things thats easily overlooked or something along those lines.
Thanks
Code:
<body background="assets/images/center_cloud.jpg" bgcolor="#FFFFFF" text="#000000">
<table width="718">
<tr>
<td width="708" align "center">
<table width="710" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="112" height="32"> </td>
<td width="598" valign="top"><strong><font size="-1" face="Arial, Helvetica, sans-serif">If
you would like us to contact you regarding any issues with air conditioning,
please complete the form below and we will contact you as soon as
possible. </font></strong></td>
</tr>
</table>
<form name="air_form" action="/cgi-bin/form/form.pl" method="POST">
<input type="hidden" name="email" value="form@mysite.co.uk">
<input type="hidden" name="realname" value="my_site">
<input type="hidden" name="recipient" value="it@mysite.co.uk">
<input type="hidden" name="redirect" value="[URL unfurl="true"]http://www.mysite.ltd.uk/thankyou_page.html">[/URL]
<table width="488" border="0" cellpadding="0" cellspacing="0"><!--DWLayoutTable-->
<tr>
<td width="135" height="24" valign="middle"> <strong><font size="-1" face="Arial, Helvetica, sans-serif">Title:
</font></strong></td>
<td colspan="2" valign="top"> <select name="s_unfav">
<option value="Mr">Mr</option>
<option value="Mrs">Mrs</option>
<option value="Miss">Miss</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
</select> </td>
<td width="53"> </td>
</tr>
<tr>
<td rowspan="2" valign="middle"> <font size="-1"><strong>Name: </strong></font></td>
<td height="22" colspan="2" valign="top"> <input name="name" type=text size="30" maxlength="40">
</td>
<td> </td>
</tr>
<tr>
<td colspan="2" rowspan="2" valign="top"> <input name="Email" type=text size="30" maxlength="40">
</td>
<td height="2"></td>
</tr>
<tr>
<td height="20" valign="middle"> <strong><font size="-1">Email: </font></strong></td>
<td></td>
</tr>
<tr>
<td height="22" valign="middle"> <font size="-1"><strong>Street Address:
</strong></font></td>
<td colspan="2" valign="top"> <input name="street" type=text size="50" maxlength="75">
</td>
<td></td>
</tr>
<tr>
<td height="22" valign="middle"> <font size="-1"><strong>Town: </strong></font></td>
<td colspan="2" valign="top"> <input name="town" type=text size="50" maxlength="75">
</td>
<td></td>
</tr>
<tr>
<td height="22" valign="middle"> <strong><font size="-1">County: </font></strong></td>
<td colspan="2" valign="top"> <input name="county" type=text size="30" maxlength="45">
</td>
<td></td>
</tr>
<tr>
<td height="22" valign="middle"> <strong><font size="-1">Postcode:
</font></strong></td>
<td colspan="2" valign="top"> <input name="postcode" type=text size="25" maxlength="25">
</td>
<td></td>
</tr>
<tr>
<td height="22" valign="middle"> <strong><font size="-1">Telephone:
</font></strong></td>
<td colspan="2" valign="top"> <input name="telephone" type=text size="25" maxlength="25">
</td>
<td></td>
</tr>
<tr>
<td height="14"></td>
<td width="278"></td>
<td width="22"></td>
<td></td>
</tr>
<tr>
<td height="61"></td>
<td valign="top"> <p>
<label>
<input type="radio" name="query_type" value="radio">
<font size="-1"><strong>New Air Conditioning</strong></font></label>
<br>
<label>
<input type="radio" name="query_type" value="radio">
<strong><font size="-1">Maintenance of existing equipment</font></strong></label>
<br>
<label>
<input type="radio" name="query_type" value="radio">
<strong><font size="-1">Other (Please enter details below)</font></strong></label>
<br>
</p></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="14"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="18" colspan="4" valign="top"> <font size="-1"><strong>Please
enter any extra details below </strong></font></td>
</tr>
<tr>
<td height="120" colspan="4" valign="top"> <textarea name="information" cols="75" rows="5"></textarea>
</td>
</tr>
<tr>
<td height="17"></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="24" colspan="4" align="center" valign="top"><input name="Submit" type=Submit value="Submit Form">
<input type="reset" name="Submit2" value="Clear Form"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>