aligning a table center in php
Posted: Mon Sep 27, 2010 5:33 am
hi
im trying to get my table to be in the middle of the page also want it to be a certain distance from the top of the webpage.
any ideas how to do this
this is my code
im trying to get my table to be in the middle of the page also want it to be a certain distance from the top of the webpage.
any ideas how to do this
this is my code
Code: Select all
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="formHolder" align="right">
<form name="form1" method="post" action="contactformprocess.php" >
<table align="right" width="100%" border="0" cellspacing="0" cellpadding="6" >
<tr>
<td><label for="email">
<div align="right">Email Address:</div>
</label>
</td>
<td><div align="left">
<input name="email" type="text" id="email" size="35" maxlength="100">
</div></td>
</tr>
<tr>
<td><label for="name">
<div align="right">Name:</div>
</label>
</td>
<td><div align="left">
<input name="name" type="text" id="name" size="35" maxlength="80">
</div></td>
</tr>
<tr>
<td><label for="phone">
<div align="right">Phone Number:</div>
</label>
</td>
<td><div align="left">
<input name="phone" type="text" id="phone" size="35" maxlength="12">
</div></td>
</tr>
<tr>
<td><div align="right">Response:</div></td>
<td><p align="left">
<label>
<input type="radio" name="response" value="Yes I am interested in a meeting. Please contact me to arrange a meeting" id="budget_0">
Yes I am interested in a meeting. Please contact me to arrange a meeting</label>
<br>
<label>
<input type="radio" name="response" value=" Yes I am interested in a meeting but at a later date. Please contact me in a months time" id="budget_1">
Yes I am interested in a meeting but at a later date. Please contact me in a months time</label>
<br>
<label>
<input type="radio" name="response" value=" No I do not require a meeting" id="budget_2">
No I do not require a meeting</label>
<br>
</p></td>
</tr>
<tr>
<tr>
<td><div align="right">
<label for="clear"></label>
<input type="reset" name="clear" id="clear" value="Reset Form">
</div></td>
<td><div align="right">
<label for="submit"></label>
<div align="left">
<input type="submit" name="submit" id="submit" value="Send Email!">
</div>
</div></td>
</tr>
</table>
</form>
<p align="center"> </p>
</div>
</body>
</html>