J'ai créé un site familial avec des photos.
Je ne connais rien au langage HTML
J'utilise Kompozer dans sa forme graphique et donc je n'écris aucune ligne de code.
Sur une des pages, j'ai mis dans des tableaux deux photos.
J'ai voulu centrer les photos sur la page.
A la sortie (en consultation) la première photo est cadrée à gauche, la seconde est bien au centre. Pourquoi la première photo n'est-elle pas centrée ?
Voici le code généré par Kompozer
Code : Tout sélectionner
</table><table
style="background-color: rgb(255, 204, 204); width: 10%; text-align: left; margin-left: auto; margin-right: auto;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr align="center">
<td><img style="width: 600px; height: 1165px;"
alt="reine" src="../photos/Durand_ReineSultana_01%5B1%5D.jpg"></td>
</tr>
<tr align="center">
<td><span style="color: rgb(0, 0, 153);">Reine
Sultana Durand</span></td>
</tr>
</tbody>
</table>
<br>
<div style="text-align: center;">
<table
style="margin-left: auto; width: 10%; margin-right: auto; background-color: rgb(255, 204, 204); text-align: left;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr align="center">
<td><img style="width: 600px; height: 833px;"
alt="reine et karine"
src="../photos/Durand_ReineSultana_Boumendilkarine%5B1%5D.jpg"></td>
</tr>
<tr align="center">
<td><span style="color: rgb(0, 0, 153);">Reine
Sultana Durand avec sa petite fille Karine Boumendil sur ses genoux</span></td>
</tr>
</tbody>
</table>
Message envoyé avec : Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90; FDM)