Couleur arriere plan dans un tableau

Résolu
Bonjour,
j ai créer un tableau et j aimerai que l arrière plan des cellules de la première ligne soit en couleur. Comment faire?

code:

<table>
<tr>
<th>nom</th>
<th>prenom</th>
</tr>

<tr>
<td>dupond</td>
<td>sandra</td>
</tr>
</table>

Merci
Configuration: Windows XP
Firefox 2.0.0.14

3 réponses

  • Votes
  • Date
  • Date décroissante
  1. Tout simplement : <tr bgcolor=...>
    1. Merci à tous pour votre coup de main sa marche avec bgcolor
  2. <table>
    <background="red">
    <tr>
    <th>nom</th>
    <th>prenom</th>
    </tr>

    <tr>
    <td>dupond</td>
    <td>sandra</td>
    </tr>
    </table>

    essai ca je ne sais pas s'il faut mettre body avec background.
    1. sa marche pas mai ça marche avec bgcolor.
      Merci pour ton aide.
  3. Slt!

    fait un clic droit sur la cellule concernée ou les cellules (après selection), ensuite format de cellule enfin otion motif et choisi ta couleur.

    bye