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 :
Ce tableau est effectivement centré dans Firefox, mais est aligné à gauche dans internet explorer.
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
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>
Je ne comprends pas.
Quelqu'un peut-il m'aider.
Merci par avance.
Ma configuration : Internet explorer 7 et Firefox 2
Partager