Gaetch
mercredi 02 juillet 2008 à 15:14
Voilà ce que j'ai fait :
Code
table
{
width : 90%;
margin : auto;
border-collapse : collapse;
}
table tr th, table tr td
{
font-family : trebuchet ms, sans-serif;
font-size : 10pt;
}
table tr th
{
background-color : #62cbed;
color : #ffffff;
}
table tr td
{
border-top : 1px solid #62cbed;
}
Et donc après j'ai fait un test, en HTML je fais donc :
Code
<table>
<tr>
[color="#ff0000"][b]<th width="20%">Titre Col 1</th>[/b][/color]
<th>Titre Col 2</th>
</tr>
<tr>
<td>Bla A
<td><div class="parStandard"/>AC/DC, Anaïs, Arctic Monkeys, Ben Harper, Camille, Cranberries, Deep Purple, Depeche Mode, Eminem, Evanescence, Francis Cabrel, Garbage, Genesis, Gorillaz, Gwen Stefani, IAM, Indochine, Jeanne Cherhal, Justice, Kate Bush, Keren Ann, Kylie Minogue, Lady Sovereign, Limp Bizkit, Linkin Park, Mademoiselle K, Madonna, Massive Attack, MC Solaar, Melissa Mars, Michael Jackson, Muse, Mylène Farmer, Nightwish, Nine Inch Nail, OK Go, One-T, Pink, Placebo, Police, Portishead, Pravda, Prodigy, Puddle of Mudd, Queen, Queen of the Stone Age, Rage Against the Machine, Rammstein, Raoul Sinier, Rihanna, Rob Dougan, RPZ, Rufus Wainwright, Saïan Supa Crew, Samuel Barber, Scorpions, Sean Paul, Shakira, Shurik'n, Stabbing Westward, Supertramp, System of a Down, t.A.T.u., Telephone, Tété, Texas, The Hoosiers, The Killers, The Dø, TTC, Vangelis, Yael Naim, Yelle, Yes, Yuki Kajiura, Zazie</td>
</tr>
<tr>
<td>Bla C</td>
<td>Bla D</td>
</tr>
<tr>
<td>Bla E</td>
<td>Bla F</td>
</tr>
<tr>
<td>Bla G</td>
<td>Bla H</td>
</tr>
</table>
Voilà ça marche j'ai le tableau que je voulais j'arrive même à justifier une cellule en mettant un div (est-ce que c'est bien ?) mais je voulais savoir si j'avais le droit de faire mon
<th width="20%">Titre Col 1</th> pour définir ponctuellement une taille à ma colonne oui si ça se fait pas (sachant que ça marche). En fait je veux savoir si c'est de la "bonne programmation"