CSS et liens

Fermé
Arno - 20 juil. 2009 à 17:09
jeangilles Messages postés 816 Date d'inscription samedi 21 juin 2008 Statut Membre Dernière intervention 17 juillet 2012 - 20 juil. 2009 à 17:14
Bonjour,

je veux afficher des liens en gris, qui changent de couleur quand on passe dessus. Quelqu'un peut il me dire pourquoi le code suivant ne marche pas ?

Le html:

<?xml version="1.0" encoding="iso-8859-1"?>
<!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">
<head>

<link rel="stylesheet" media="screen" type="text/css" title="Design" href="design.css" />

</head>

<body>
<table>

<tr>
<td class="toutengris">
<a href="circulaire/circulaire.htm" >-Circulaires</a><br/>
<a href="conv_collectives.htm">-Les conventions collectives</a><br/>

</td>
</tr>
</table>

</body>

</html>


Le fichier css:

.toutengris
{
font-family: "Arial", "Helvetica", "sans-serif";
text-decoration: none;
color: #989898;
font-size: 11px;
}

.toutengris:hover
{
font-family: "Arial", "Helvetica", "sans-serif";
text-decoration: none;
color: #F7BC3A;
font-size: 11px;
}


Merci pour vos réponses !

1 réponse

jeangilles Messages postés 816 Date d'inscription samedi 21 juin 2008 Statut Membre Dernière intervention 17 juillet 2012 186
20 juil. 2009 à 17:14
je peux me tromper, mais personnellement j'aurais mis

.toutengris a
{
font-family: "Arial", "Helvetica", "sans-serif";
text-decoration: none;
color: #989898;
font-size: 11px;
}

.toutengris a:hover
{
font-family: "Arial", "Helvetica", "sans-serif";
text-decoration: none;
color: #F7BC3A;
font-size: 11px;
}
0