OP + IE + FF = kas tête !!!

Fermé
vipvipvip Messages postés 1 Date d'inscription mercredi 28 février 2007 Statut Membre Dernière intervention 28 février 2007 - 28 févr. 2007 à 02:59
mrud Messages postés 216 Date d'inscription mardi 7 février 2006 Statut Membre Dernière intervention 19 mai 2010 - 28 févr. 2007 à 03:23
Bonjour je demande de l'aide merci d'avance!

Comment centrer le tableau dans la balise <div></div> pour obtenir une configuration cohérente sur firefox ? merci d'avance!

(voici le code à copier-coller dans le bloc note avec extension =html à ouvrir sous OP IE puis FF)


<div style="border: 2px ridge #ddf ;margin-right:150px;margin-left:150px;padding:0px 0px;">

<p style="margin-top:-13px; margin-left:5px;float:left;">
<input type="checkbox" name="chkterms" id="i_chk" >
<span style="padding:0px 0px; background-color:#fff;color:#00c;font-family:sans-serif;font-size:18px; ">
<strong><a href="book.html">titre du livre ou de la revue</strong></a></span></p>

<p style="margin-top:-10px; margin-right:5px;
float:right;font-family:sans-serif;font-size:14px">
<span style="padding:0px 0px; background-color:#fff;">code librairie</span></p>

<table style="margin-top:10px;font-family:sans-serif;font-size:13px;padding:0px 0px;" width="675" border="1" Cellspacing="0" height="100">

<tr >
<td rowspan="4"><img src =" \mini_default.gif" width=80px height=80px alt="Image" /></a></td>
<td align="left">Info1</td>
<td align="center">Info2</td>
<td align="center">Info3</td>
<td rowspan="4" align="center" width="175px"><fieldset ><legend >fieldset</legend>Info-auteur
</fieldset></td>
</tr>

<tr>
<td align="left">Info4</td>
<td align="center">Info5</td>
<td align="right">Info6</td>
</tr>

<tr >
<td colspan="2">Info7</td>
<td align="right">Info8</td>
</tr>

<tr align="left" >
<td colspan="3" width="420px">Info9</td>
</tr>

<tr align="center">
<td colspan="5">Info10</td>
</tr>

</table>

1 réponse

mrud Messages postés 216 Date d'inscription mardi 7 février 2006 Statut Membre Dernière intervention 19 mai 2010 100
28 févr. 2007 à 03:23
salut,

t'as oublier d' "annuler" ton float avec un clear:both;

<table style="clear:both;margin-top:10px;font-family:sans-serif;font-size:13px;padding:0px 0px;" width="675" border="1" Cellspacing="0" height="100">
0