div, table et text-align : center
Bonjour,
J'ai un div qui contient une table. Le css de mon div précise texte-lign : center;
IE (une fois n'est pas coutume) centre bien ma table alors que FF la positionne à gauche.
Voici le code reduit au plus simple :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Validation</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=utf-8" />
<style text="text/css">
#formulaire_verification{
text-align : center;
border : solid #000 1px;
}
</style>
</head>
<body>
<div id="formulaire_verification">
<table method="post" action="inscription.php" border="1" >
<tr>
<td class="texte">champ 1 :</td>
<td><input type="text" id="validation_code" name = "validation_code"></td>
</tr>
</table>
</div>
</body>
</html> |
Si quelqu'un sait d'ou vient le problème je suis preneur.