je m'emmele dans le css et les tableaux html et j'aurai besoin d'un peu d'aide.
Le but est de construire un tableau avec des lignes d'élements. Pour chaque ligne, on a 2 valeurs par mois.
Concernant les colonnes, j'ai un premier découpage par année puis par mois puis enfin dans un mois les 2 valeurs.
Je cherche à fixer les largeurs des colonnes à 150px pour la 1ère des valeurs, 50 pour la 2e.
alors voilà j'ai un tableau comme suit :
Code : Tout sélectionner
<table>
<!-- entete -->
<tr><td ROWSPAN="2">ELEMENTS</td>
<td colspan="24" STYLE="width:2400px;">2007</td>
<td colspan="24" STYLE="width:2400px;">2008</td>
</tr>
<tr><td colspan="2" STYLE="width:200px;">janvier</td><td colspan="2" STYLE="width:200px;">fevrier</td>.....
</tr>
<!-- contenu tableau -->
<tr><td>element 1</td>
<td STYLE="width:150px;">valeur 1.1</td>
<td STYLE="width:50px;">valeur 1.2</td>
<td STYLE="width:150px;">valeur 2.1</td>
<td STYLE="width:50px;">valeur 2.2</td>
....
</tr>
....
</table>
Ou me suis je trompé?