css
Publié : 03 août 2004, 16:46
Bonjour,
Voici mon code HTML
Si j'écris en css
c'est bien le titre de la colonne qui change de couleur. Comment changer les lignes d'une colonne ?
Voici mon code HTML
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>Annuaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/a.css" rel="stylesheet" media="screen" type="text/css" />
</head>
<body>
<table summary="Coordonnées" class="annuaire">
<caption>Coordonnées</caption>
<thead>
<th id="societe" abbr="Adresse">Société</th>
<th id="adresse" abbr="Adresse">Adr.</th>
<th id="civilite" abbr="civilite">Civ.</th>
<th id="prenom" abbr="Prénom">Prénom</th>
<th id="nom" abbr="Nom">Nom</th>
<th id="telephone" abbr="Téléphone">Tél.</th>
</thead>
<tfoot>
</tfoot>
<tbody>
<tr>
<td headers="societe">n1</td>
<td headers="adresse">a1</td>
<td headers="civilite">c1</td>
<td headers="prenom">pn1</td>
<td headers="nom">n1</td>
<td headers="telephone">t1</td>
</tr>
<tr>
<td headers="societe">nc2</td>
<td headers="adresse">a2</td>
<td headers="civilite">c2</td>
<td headers="prenom">pn2</td>
<td headers="nom">n2</td>
<td headers="telephone">t2</td>
</tr>
</tbody>
</table>
</body>
</html>
Code : Tout sélectionner
#telephone
{
color: red;
}