tableau non centré quand je modifie mes pages en XHTML
Bonjour,
je suis en train de modifier mes pages en XHTML. Et quand je corrige une erreur, le tableau se décale mais il n'y a plus d'erreurs.
*document type does not allow element "tr" here.
Citation:
<table style="border-collapse: collapse;cellspacing:0 ;cellpadding:0;width:100%; border:0">
<tr>
<td width="100%">
<script language="javascript" type="text/javascript">
document.write(top);
</script></td>
<tr> <td width="100%" style="bgcolor:#2492ff;colspan:5 ;valign;top">
<table style="border-collapse: collapse; bordercolor:#111111 ;cellspacing:0 ;cellpadding:0; width:100%; border:0">
<tr>
<td width="60%" height="24">
<p class="texte" style="margin-left: 5px"><b><font style="color:#ffffff" />
centre de formation à distance soumis au
contrôle pédagogique de l´état</b></p>
</td>
<td width="40%">
<table style="border-collapse: collapse;bordercolor:#111111;
cellspacing:0;cellpadding:0;width:100%;border:0">
<tbody>
<tr>
<td width="100%">
<p class="texte"
style="margin-left: 5px; text-align: right"><b><font style="
color=#ffffff" /><font size="2" />contact : <font style="
color:#ffffff;size:2" />08 203 203 75</b><font style="
color:#ffffff" /> <span style="font-size: 7pt">(numéro
indigo 0.15€/min)
<script type="text/javascript">
<!--
xt_param = 's=164629&p=paramédical_social';
xt_r = document.referrer;
xt_h = new date();
xt_i = '<img width="1" height="1" src="http://logi7.xiti.com/hit.xiti?'+xt_param;
xt_i += '&hl='+xt_h.gethours()+'x'+xt_h.getminutes()+'x'+xt_h.getseconds();
if(parsefloat(navigator.appversion)>=4)
{xt_s=screen;xt_i+='&r='+xt_s.width+'x'+xt_s.height+'x'+xt_s.pixeldepth+'x'+xt_s.colordepth;}
document.write(xt_i+'&ref='+xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" >');
//-->
</script>
<img width="1" alt="" height="1" src="http://logi7.xiti.com/hit.xiti?s=164629&p=paramédical_social" /></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
je corrige cette erreur en encadrant le tr
Citation:
<table style="border-collapse: collapse;cellspacing:0 ;cellpadding:0;width:100%; border:0">
<tr>
<td width="100%">
<script language="javascript" type="text/javascript">
document.write(top);
</script></td>
<td><table><tr>
<td width="100%" style="bgcolor:#2492ff;colspan:5 ;valign;top">
<table style="border-collapse: collapse; bordercolor:#111111 ;cellspacing:0 ;cellpadding:0; width:100%; border:0">
<tr>
<td width="60%" height="24">
<p class="texte" style="margin-left: 5px"><b><font style="color:#ffffff" />
centre de formation à distance soumis au
contrôle pédagogique de l´état</b></p>
</td>
<td width="40%">
<table style="border-collapse: collapse;bordercolor:#111111;
cellspacing:0;cellpadding:0;width:100%;border:0">
<tbody>
<tr>
<td width="100%">
<p class="texte"
style="margin-left: 5px; text-align: right"><b><font style="
color=#ffffff" /><font size="2" />contact : <font style="
color:#ffffff;size:2" />08 203 203 75</b><font style="
color:#ffffff" /> <span style="font-size: 7pt">(numéro
indigo 0.15€/min)
<script type="text/javascript">
<!--
xt_param = 's=164629&p=paramédical_social';
xt_r = document.referrer;
xt_h = new date();
xt_i = '<img width="1" height="1" src="http://logi7.xiti.com/hit.xiti?'+xt_param;
xt_i += '&hl='+xt_h.gethours()+'x'+xt_h.getminutes()+'x'+xt_h.getseconds();
if(parsefloat(navigator.appversion)>=4)
{xt_s=screen;xt_i+='&r='+xt_s.width+'x'+xt_s.height+'x'+xt_s.pixeldepth+'x'+xt_s.colordepth;}
document.write(xt_i+'&ref='+xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" >');
//-->
</script>
<img width="1" alt="" height="1" src="http://logi7.xiti.com/hit.xiti?s=164629&p=paramédical_social" /></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td> </tr>
</table>
Merci.
Re: tableau non centré quand je modifie mes pages en XHTML
Citation:
Envoyé par Linoa
document type does not allow element "tr" here
C'est normal, tu ne fermes pas la balise <tr> et tu en ouvre une
Tu fais quelque chose du type
Code:
1 2 3 4 5 6 7 8
| <table>
<tr>
<td>...</td>
<td>...</td>
<tr>
<td>...</td>
<td>...</td>
</table> |
Il faut fermer le tr avant d'en ouvrir un autre :wink: