J'ai un problème avec la largeur des tableaux.
Si je met 2 tableaux en width 100% avec un nombre de cellules différent, ils ne possèdent pas la même taille.
Je vous donne un exemple :
$content = "<page>"; $content .= "<table border='1' style='width:100%; border:1px solid black; border-collapse:collapse;'>"; $content .= "<tr>"; $content .= "<td width='12%' style=' width:12%;'>"; $content .= "1"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%;'>"; $content .= "2"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%;'>"; $content .= "3"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%; '>"; $content .= "4"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%; '>"; $content .= "5"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%; '>"; $content .= "6"; $content .= "</td>"; $content .= "<td width='12%' style=' width:12%; '>"; $content .= "7"; $content .= "</td>"; $content .= "<td width='14%' style=' width:14%; '>"; $content .= "8"; $content .= "</td>"; $content .= "</tr>"; $content .= "</table>"; $content .= "<table border='1' style='width:100%; border:1px solid black; border-collapse:collapse;'>"; $content .= "<tr>"; $content .= "<td width='50%' style=' width:50%; '>"; $content .= "1"; $content .= "</td>"; $content .= "<td width='50%' style=' width:50%; '>"; $content .= "2"; $content .= "</td>"; $content .= "</tr>"; $content .= "</table>"; $content .= "</page>";

Ici, le second tableau est plus grand que le premier, pourquoi?
La largeur du tableau est-elle fonction du nombre de cellules?
Merci de vos réponses.
Nicolas