Usando il tuo codice (aggiungendo il doctype, rimuovendo quel div in head e spostando il foglio di stile prima della chiusura di head):
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Registrazione cliente</title>
<link rel="stylesheet" type="text/css" href="cont.css" />
<style type="text/css">
<!--
#main {
text-align:center;
}
h2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #0033CC;
}
form table {
width:580px;
border:3px solid #0033cc;
background-color:#cccccc;
margin:0 auto;
}
form td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #0033CC;
border:1px solid #0033cc;
}
-->
</style>
</head>
<body>
<div id="main">
<?php include("menu.htm") ?>
<div id="logo">
[img]LOGO.gif[/img]
</div>
<div class="contenitore">
<h2>Aggiungi nuovo cliente</h2>
<form method="post" action="registra.php">
<table>
<tr>
<td width="264">Codice cliente:</td>
<td width="300"><input type="text" size="50" name="idcliente" /></td>
</tr>
<tr>
<td>Nome:</td>
<td><input type="text" size="50" name="nome" /></td>
</tr>
<tr>
<td>Cognome:</td>
<td><input type="text" size="50" name="cognome" /></td>
</tr>
<tr>
<td>Codice Fiscale:</td>
<td><input type="text" size="50" name="codicefiscale" /></td>
</tr>
<tr>
<td>Cev:</td>
<td><input type="text" size="50" name="cev" /></td>
</tr>
</table>
<input type="submit" value="Conferma" />
<input type="reset" value="Reset" />
</form>
</div>
</div>
</body>
</html>
se vuoi lavorare senza tabelle e costruire un form più accessibile (l'esempio non rende precisamente l'aspetto del form con la tabella, ma può essere migliorato coi css):
codice:
<div style="width:580px;text-align:right; border:3px solid #0033cc;background-color:#cccccc;margin:0 auto;font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 16px; color: #0033CC;">
<form method="post" action="registra.php" style="width:520px;text-align:right;margin:10px auto; line-height:26px;">
<label for="idcliente">Codice cliente:</label>
<input type="text" size="50" name="idcliente" />
<label for="nome">Nome:</label>
<input type="text" size="50" name="nome" />
<label for="cognome">Cognome:</label>
<input type="text" size="50" name="cognome" />
<label for="codicefiscale">Codice Fiscale:</label></td>
<input type="text" size="50" name="codicefiscale" />
<label for="cev">Cev:</label>
<input type="text" size="50" name="cev" />
</form>
</div>
per far prima ho messo delle dichiarazioni di stile in linea