Affichage sous IE/Firefox
Bonjour, je débute dans la création de site et j'ai un problème bizarre.
Lorsque je veux faire un tableau centré, du genre :
Code:
1 2 3 4 5 6 7 8 9 10
| <table
style="width: 50%; height: 30px; text-align: left; margin-left: auto; margin-right: auto;"
border="2" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td></td>
<td></td>
</tr>
</tbody>
</table> |
Ce tableau est effectivement centré dans Firefox, mais est aligné à gauche dans internet explorer.
Je ne comprends pas.
Quelqu'un peut-il m'aider.
Merci par avance.
Ma configuration : Internet explorer 7 et Firefox 2